Vauxoo / odoo

Fork of Odoo (formerly OpenERP). [This project is not publically mantained just born for internal usage with some little patches] go to official repository on github.com/odoo/odoo
https://www.odoo.com
Other
9 stars 9 forks source link

[FIX] sale: blocking message #331

Closed deivislaya closed 2 years ago

deivislaya commented 5 years ago

Backport of odoo/odoo#31456

When a blocking message is configured on a product, we force the removal of the product_id on the SO line. This causes a problem in the method _get_display_price. When the price list is configured with discount_policy != with_discount, get_product_price_rule is called with an empty self.product_id.

-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

hugho-ad commented 5 years ago

@deivislaya

did you open a pr to odoo/odoo?

deivislaya commented 5 years ago

@hugho-ad

Yes, I opened a pr to odoo/odoo odoo/odoo#37988