-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
[IMP][BR_deliverable] Added Smart Buttons and Search views for DL and RL #113
Conversation
Please fix travis |
Here is the result of my initial functional tests:
In DL tree view:
In DL Form View
In RL Tree view
No tests on prices yet. |
…mproved code as per comments
38a50d3
to
e68ca3b
Compare
3aaee5d
to
03bd0d0
Compare
@elicoidal @victormartinelicocorp |
5fe2db5
to
b104fa7
Compare
@sudhir-serpentcs thanks for the update, getting good. Besides here are some new finding:
DL view
Misc:
|
|
||
|
||
class BusinessRequirementResource(models.Model): | ||
_name = "business.requirement.resource" | ||
_description = "Business Requirement Resource" | ||
|
||
@api.model | ||
def default_get(self, fields): |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
@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. |
There was a problem hiding this 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
a26fd71
to
bed0227
Compare
8b5bf30
to
e7f3596
Compare
@victormartinelicocorp @elicoidal @victormartinelicocorp by mistake fields_view_get removed from #ebe0f96 |
@sudhir-serpentcs I have made some tests but only few has been updated. Check #113 (comment) |
@pedrobaeza @dreispt let's know whether we can move on |
Please squash by author and logical set before merging |
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
… 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.
@victormartinelicocorp @elicoidal
Added Smart buttons for Resource Lines and Deliverble Lines also added Search views