Skip to content
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

Open
wants to merge 23 commits into
base: 18.0
Choose a base branch
from

Conversation

HeliconiaSolutions
Copy link

No description provided.

legalsylvain and others added 22 commits December 13, 2024 15:02
…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/
Copy link

@sebalix sebalix left a 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")])
Copy link

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")
Copy link

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).

@HeliconiaSolutions
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants