-
-
Notifications
You must be signed in to change notification settings - Fork 152
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] [10.0] BR001208-T24350: Add field "Terms and Conditions" #266
Conversation
Hey @JoJoJoJoJoJoJo, thank you for your Pull Request. It looks like some users haven't signed our Contributor License Agreement, yet.
Appreciation of efforts, |
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.
LGTM: some details
Good job!
@@ -67,6 +67,12 @@ def _get_default_company(self): | |||
states={'draft': [('readonly', False)], | |||
'confirmed': [('readonly', False)]} | |||
) | |||
terms_and_conditions = fields.Html( | |||
'Terms and Conditions', | |||
read_only=True, |
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.
why readonly?
Shouldnot we add copy=true as well?
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.
default copy=True
@@ -63,6 +63,9 @@ | |||
<group string="Test Case"> | |||
<field name="test_case" nolabel="1" default_focus="0"/> |
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.
remove default_focus="0"
@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.
almost perfect!
On the functional tests:
- Only thing missing: the field should not be printed in the printout if it is empty.
@elicoidal update: |
@JoJoJoJoJoJoJo I understand then it is LGTM! |
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.
LGTM
cc @victormartinelicocorp |
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.
bump module version, the rest LGTM
@victormartinelicocorp |
Hey @JoJoJoJoJoJoJo, Appreciation of efforts, |
* [IMP] add terms and conditions field to the model and update the reprts * [FIX] spell issue and remove default_focus=0 in test case * [FIX] issue of empty field printed in the report * [FIX] upgrade version number
* [IMP] add terms and conditions field to the model and update the reprts * [FIX] spell issue and remove default_focus=0 in test case * [FIX] issue of empty field printed in the report * [FIX] upgrade version number
* [IMP] add terms and conditions field to the model and update the reprts * [FIX] spell issue and remove default_focus=0 in test case * [FIX] issue of empty field printed in the report * [FIX] upgrade version number
* [IMP] add terms and conditions field to the model and update the reprts * [FIX] spell issue and remove default_focus=0 in test case * [FIX] issue of empty field printed in the report * [FIX] upgrade version number
* [IMP] add terms and conditions field to the model and update the reprts * [FIX] spell issue and remove default_focus=0 in test case * [FIX] issue of empty field printed in the report * [FIX] upgrade version number
* [IMP] add terms and conditions field to the model and update the reprts * [FIX] spell issue and remove default_focus=0 in test case * [FIX] issue of empty field printed in the report * [FIX] upgrade version number
* [IMP] add terms and conditions field to the model and update the reprts * [FIX] spell issue and remove default_focus=0 in test case * [FIX] issue of empty field printed in the report * [FIX] upgrade version number
* [IMP] add terms and conditions field to the model and update the reprts * [FIX] spell issue and remove default_focus=0 in test case * [FIX] issue of empty field printed in the report * [FIX] upgrade version number
* [IMP] add terms and conditions field to the model and update the reprts * [FIX] spell issue and remove default_focus=0 in test case * [FIX] issue of empty field printed in the report * [FIX] upgrade version number
* [IMP] add terms and conditions field to the model and update the reprts * [FIX] spell issue and remove default_focus=0 in test case * [FIX] issue of empty field printed in the report * [FIX] upgrade version number
add field
terms_and_conditions
and amend the printout