Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP][BR_deliverable] Added Smart Buttons and Search views for DL and RL #113

Conversation

sudhir-serpentcs
Copy link
Contributor

@sudhir-serpentcs sudhir-serpentcs commented Apr 10, 2017

@victormartinelicocorp @elicoidal

Added Smart buttons for Resource Lines and Deliverble Lines also added Search views

@elicoidal elicoidal changed the title [Add/IMP] Added Smart Buttons and Search views [IMP][BR_deliverable] Added Smart Buttons and Search views for DL and RL Apr 10, 2017
@elicoidal elicoidal added this to the 8.0 milestone Apr 10, 2017
@elicoidal
Copy link
Contributor

Please fix travis

@elicoidal
Copy link
Contributor

elicoidal commented Apr 10, 2017

@sudhir-serpentcs

Here is the result of my initial functional tests:

In DL tree view:

  • remove Currency
  • Add BR (in place of currency)

In DL Form View

  • Currency should be after the total
  • BR field should be before the product
  • Have 2 columns:
    • first one with BR+Product+Qty+unit+sales Price+total+currency
    • second: Name
  • In RL sub form: remove the root task category field ( @victormartinelicocorp not sure about the usage)
  • In RL sub form: hide the BR field

In RL Tree view

  • Move the BR in first place
  • Add the DL after the BR

No tests on prices yet.

@sudhir-serpentcs sudhir-serpentcs changed the title [IMP][BR_deliverable] Added Smart Buttons and Search views for DL and RL [WIP/IMP][BR_deliverable] Added Smart Buttons and Search views for DL and RL Apr 10, 2017
@sudhir-serpentcs sudhir-serpentcs force-pushed the 8.0-19830-BR000800-deliverable_lines_and_resource_lines_independent branch from 38a50d3 to e68ca3b Compare April 10, 2017 14:37
@sudhir-serpentcs sudhir-serpentcs force-pushed the 8.0-19830-BR000800-deliverable_lines_and_resource_lines_independent branch 2 times, most recently from 3aaee5d to 03bd0d0 Compare April 11, 2017 14:34
@sudhir-serpentcs
Copy link
Contributor Author

@elicoidal @victormartinelicocorp
please review code

@sudhir-serpentcs sudhir-serpentcs force-pushed the 8.0-19830-BR000800-deliverable_lines_and_resource_lines_independent branch from 5fe2db5 to b104fa7 Compare April 12, 2017 06:34
@elicoidal
Copy link
Contributor

elicoidal commented Apr 12, 2017

@sudhir-serpentcs thanks for the update, getting good.
I have updated comment #113 (comment) with progress.

Besides here are some new finding:
RL view:

  • In RL tree view: should not see the task category field (To be ignored as the module will be removed later @victormartinelicocorp )
  • in RL tree view: add the graph/pivot view
  • In RL tree view, in the field, only the deliverable lines from the selected BR should appear
  • In RL tree view you should not be able to select a BR if state is not draft/confirmed.

DL view

  • in DL tree view: add the graph/pivot view
  • In DL form view you should not be able to select a BR if state is not draft/confirmed.
  • In DL, BR should be mandatory
  • In DL, I cannot see anymore the cost and prices at RL level
  • In DL, I cannot see anymore the Sales and prices at RL level
    In DL, I cannot see the fields Category (but this is maybe due to inheritence)

Misc:

  • Add menu entry for Deliverable lines and Resources lines below BR entry



class BusinessRequirementResource(models.Model):
_name = "business.requirement.resource"
_description = "Business Requirement Resource"

@api.model
def default_get(self, fields):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sudhir-serpentcs Not blocking but could you explain we is need to modify defaul_get?

Copy link
Contributor Author

@sudhir-serpentcs sudhir-serpentcs Apr 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@victormartinelicocorp
will be removed from next commit

)

@api.model
def fields_view_get(self, view_id=None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sudhir-serpentcs The same for this fields_view_get

Copy link
Contributor Author

@sudhir-serpentcs sudhir-serpentcs Apr 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@victormartinelicocorp

access rules for #103

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sudhir-serpentcs Please do the more specif you can the PR. I wish to see that on separated PR and for the proper module.

And by they way this could be done IMO simpler like is actually done:

Draft Confirmed Approved SH Appr. In prog
Cust. Story V X X X X
Actually works as the requirement see the states param

    business_requirement = fields.Html(
        'Customer Story',
        readonly=True,
        states={'draft': [('readonly', False)]}
    )

Do still think need to overwrite fields_view_get ?
I would call it editable rules instead of access rules

cc @elicoidal

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sudhir-serpentcs Sorry but my comment for the unnecessary explanation.

I want to reformulate my question this it's done #103
What is exactly is fixed by overwrite the function?

)

@api.model
def fields_view_get(self, view_id=None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sudhir-serpentcs Please do the more specif you can the PR. I wish to see that on separated PR and for the proper module.

And by they way this could be done IMO simpler like is actually done:

Draft Confirmed Approved SH Appr. In prog
Cust. Story V X X X X
Actually works as the requirement see the states param

    business_requirement = fields.Html(
        'Customer Story',
        readonly=True,
        states={'draft': [('readonly', False)]}
    )

Do still think need to overwrite fields_view_get ?
I would call it editable rules instead of access rules

cc @elicoidal

@sudhir-serpentcs
Copy link
Contributor Author

@victormartinelicocorp I do agree with you but state field is not in the object. We need to make RL / DL R/O if BR is not in draft / confirmed state.

Copy link
Collaborator

@victormmtorres victormmtorres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sudhir-serpentcs Thanks for the explanation

@sudhir-serpentcs sudhir-serpentcs force-pushed the 8.0-19830-BR000800-deliverable_lines_and_resource_lines_independent branch from a26fd71 to bed0227 Compare April 12, 2017 12:04
@sudhir-serpentcs sudhir-serpentcs force-pushed the 8.0-19830-BR000800-deliverable_lines_and_resource_lines_independent branch from 8b5bf30 to e7f3596 Compare April 12, 2017 13:01
@sudhir-serpentcs
Copy link
Contributor Author

@victormartinelicocorp @elicoidal
please review code

@victormartinelicocorp by mistake fields_view_get removed from #ebe0f96
so i have revised on next commit #e7f3596

@elicoidal
Copy link
Contributor

@sudhir-serpentcs I have made some tests but only few has been updated. Check #113 (comment)

@elicoidal
Copy link
Contributor

@pedrobaeza @dreispt let's know whether we can move on

@pedrobaeza
Copy link
Member

Please squash by author and logical set before merging

@elicoidal elicoidal merged commit 8f0099d into OCA:8.0 Apr 19, 2017
@sudhir-serpentcs sudhir-serpentcs deleted the 8.0-19830-BR000800-deliverable_lines_and_resource_lines_independent branch July 11, 2017 06:00
ruter-lyu pushed a commit to ruter-lyu/business-requirement that referenced this pull request Mar 15, 2019
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
ruter-lyu pushed a commit to ruter-lyu/business-requirement that referenced this pull request Mar 15, 2019
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
ruter-lyu pushed a commit to ruter-lyu/business-requirement that referenced this pull request Mar 20, 2019
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
ruter-lyu pushed a commit to ruter-lyu/business-requirement that referenced this pull request Mar 20, 2019
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
ruter-lyu pushed a commit to ruter-lyu/business-requirement that referenced this pull request Mar 22, 2019
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 6, 2019
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 21, 2019
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 21, 2019
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 26, 2019
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jul 25, 2019
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Aug 9, 2019
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Aug 19, 2019
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
Tardo pushed a commit to Tecnativa/business-requirement that referenced this pull request Jan 27, 2020
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
Tardo pushed a commit to Tecnativa/business-requirement that referenced this pull request Mar 3, 2020
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
Tardo pushed a commit to Tecnativa/business-requirement that referenced this pull request Mar 5, 2020
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
Tardo pushed a commit to Tecnativa/business-requirement that referenced this pull request Mar 30, 2020
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Nov 11, 2021
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Nov 15, 2021
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Nov 15, 2021
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
MosabWadea pushed a commit to MosabWadea/business-requirement that referenced this pull request Mar 5, 2022
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
bizzappdev pushed a commit to BizzAppDev-Systems/business-requirement that referenced this pull request Mar 4, 2023
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
dreispt pushed a commit to dreispt/business-requirement that referenced this pull request Apr 27, 2024
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
dreispt pushed a commit to dreispt/business-requirement that referenced this pull request Apr 27, 2024
… RL (OCA#113)

* [Add/IMP] Added Smart Buttons and Search views

* [IMP]Fixed Travis

* [WIP] Count Rsource lines and Deliverble lines in smartbuttons also improved code as per comments

* [IMP]Improved access rules as per OCA#103 matrix

* [IMP]Fix Travis

* [IMP] Added graph/pivot views inDL/RL and improved code

* [IMP] fields_view_get by mistake removed method

* [IMP]Improved Code.

* [IMP]In DL Added Sales and prices at RL level.

* [IMP]Improved Indentation

* [IMP]Improved Code.

* [IMP]Improved Code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants