-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
[18.0][MIG] purchase_no_rfq: Migration to 18.0 #2483
base: 18.0
Are you sure you want to change the base?
[18.0][MIG] purchase_no_rfq: Migration to 18.0 #2483
Conversation
…tion concept in purchase workflow Co-authored-by: Hpar <[email protected]>
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_no_rfq Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_no_rfq/
Currently translated at 100.0% (7 of 7 strings) Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_no_rfq Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_no_rfq/pt_BR/
Currently translated at 100.0% (7 of 7 strings) Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_no_rfq Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_no_rfq/it/
Currently translated at 100.0% (7 of 7 strings) Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_no_rfq Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_no_rfq/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: purchase-workflow-17.0/purchase-workflow-17.0-purchase_no_rfq Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_no_rfq/
Currently translated at 100.0% (7 of 7 strings) Translation: purchase-workflow-17.0/purchase-workflow-17.0-purchase_no_rfq Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_no_rfq/it/
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.
LG, small remarks
class PurchaseOrder(models.Model): | ||
_inherit = "purchase.order" | ||
|
||
state = fields.Selection(selection_add=[("draft", "Draft"), ("sent", "Sent")]) |
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.
I would add a comment explaining we are renaming user labels here (I thought we were adding draft
and sent
states which are already defined in purchase
module).
state = fields.Selection(selection_add=[("draft", "Draft"), ("sent", "Sent")]) | ||
|
||
def print_quotation(self): | ||
orders = self.filtered(lambda x: x.state == "draft") |
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.
Add a comment saying we are overloading this method (so breaking inheritance).
b2226d5
to
9d930cb
Compare
@sebalix, Thank you for your insightful comment, which has helped improve the understanding of the code. I’ve added a comment in the code for better clarity. |
No description provided.