Skip to content

Conversation

@Nikul-OSI
Copy link
Contributor

@Nikul-OSI Nikul-OSI commented Aug 20, 2024

@Nikul-OSI Nikul-OSI force-pushed the 17_add_sale_blanket_order_tier_validation branch from 4903a4b to a61d983 Compare August 20, 2024 06:50
def action_confirm(self):
"""Set the state to 'Open' when clicking confirmed instead of during compute."""
for rec in self:
rec.write({"state": "open"})
Copy link
Member

Choose a reason for hiding this comment

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

FYI I did OCA/server-ux#939 so that tier validations can be applied to computed state fields as in this model.

Copy link
Member

Choose a reason for hiding this comment

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

Would you consider reviewing that change and refactoring this module to work with it? You wouldn't have to jump through hoops like you do in the code above.

Copy link
Member

Choose a reason for hiding this comment

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

I did the refactoring in ursais#14. What do you think?

@rousseldenis
Copy link
Contributor

@Nikul-OSI Could you rebase ?

@rousseldenis rousseldenis added this to the 17.0 milestone Sep 16, 2024
@Nikul-OSI Nikul-OSI force-pushed the 17_add_sale_blanket_order_tier_validation branch from a61d983 to 1ff1f88 Compare September 23, 2024 05:18
@Nikul-OSI
Copy link
Contributor Author

@Nikul-OSI Could you rebase ?

Done

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.

3 participants