-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
[17.0][IMP] account_credit_control: Allow to create credit control lines with the maximum level for one control run #432
Conversation
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.
Minor changes
@@ -32,6 +35,11 @@ class CreditControlPolicy(models.Model): | |||
help="This policy will be active only for the selected accounts", | |||
) | |||
active = fields.Boolean(default=True) | |||
apply_max_policy_level = fields.Boolean( | |||
string="Apply max policy level", | |||
help="Apply max policy lavel for one partner in a credit control run execution " |
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.
help="Apply max policy lavel for one partner in a credit control run execution " | |
help="Apply max policy level for one partner in a credit control run execution " |
default_apply_max_policy_level = fields.Boolean( | ||
string="Apply max policy level", | ||
default_model="credit.control.policy", | ||
help="Apply max policy lavel for one partner in a credit control run execution " |
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.
help="Apply max policy lavel for one partner in a credit control run execution " | |
help="Apply max policy level for one partner in a credit control run execution " |
<field name="invoice_id" /> | ||
<field name="partner_id" /> | ||
<field name="partner_id" readonly="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.
<field name="partner_id" readonly="true" /> | |
<field name="partner_id" readonly="True" /> |
It probably works correctly, but the usual way is to use it with a capital T or readonly="1"
.
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.
Could you please add a test to cover this use case?
f2df5f6
to
10cac52
Compare
Changes done!! |
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.
Tested and working as expected, just a minor change.
…the maximum level for one control run Some ux improvements and minor fixes
10cac52
to
ed0fbf4
Compare
This PR has the |
/ocabot merge minor |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 1e909d6. Thanks a lot for contributing to OCA. ❤️ |
cc @Tecnativa TT55185
ping @carlosdauden @carlos-lopez-tecnativa