Skip to content
Snippets Groups Projects
Commit 96bbe252 authored by mafo-odoo's avatar mafo-odoo
Browse files

[FIX] purchase: no reset custom description in PO if qt change


Step to reproduce:
	Install purchase
	Create a purchase order
	Set a vendo and a product that has this vendor in its
	vendor list
	Set a product name in the line of the vendor in the product
	purchase section (you will need to add the field)
	Change the description of the product
	Change the quantity of the product

Expected behavior:
The description stay the custom input you just set

Current behavior:
The description is reset to its default value

Explanation:
When changing the quantity the vendor from the product vendors can change.
Then its vendor product name and code can change and thus the default
description in the purchase order. To solve that we need to differentiate
a custom description from a default one and only update the descritpion
when the quantity changes if the descritpion is a default one (and not a
sutom one)

opw-2827667

closes odoo/odoo#90764

X-original-commit: d5408b80
Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
Signed-off-by: default avatarFockedey Martin (mafo) <mafo@odoo.com>
parent 7c4d3cd4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment