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: traceback when choosing a product with warning as order.line. vx#35058 #329

Closed deivislaya closed 5 years ago

deivislaya commented 5 years ago

If a user chooses a product that has a blocking error message, the product is set to False. This is good, but we do not want the following to happen:

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 method name_get() and name of the product with sudo fails to search for it. Only work with admin user

We move the product_id removal at the end of the onchange.

related odoo/odoo#37988

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

moylop260 commented 5 years ago

It has created to odoo Could you add the url, please?

deivislaya commented 5 years ago

Pr related odoo/odoo#37988