summaryrefslogtreecommitdiff
path: root/addons/project
diff options
context:
space:
mode:
authorRémy Voet (ryv) <ryv@odoo.com>2020-10-12 08:56:03 +0000
committerRémy Voet (ryv) <ryv@odoo.com>2020-10-12 08:56:03 +0000
commit74780e95a2a3db9d9875aea7e644bf064ecf6b46 (patch)
tree20956d5efd42b4d706eccdc3b77f0c38c8312473 /addons/project
parent3c823390beed5f5cfc2e7bb03a65f2775c0be72e (diff)
[FIX] purchase: fix state of extra product
As explained in issues-59664, the commit f18bdc4fcf2b6b0bdb7699c3b2aa38d332301a84 add readonly attribute in the `purchase.order.line` state field to avoid to save bad `state` in the server (then the state of the PO line != PO line). But it breaks the feature to add product when the PO is already confirm (the state will be 'purchase' and the `product_id` is readonly when state == 'purchase'). To fix both issues, add a `default_state` in the context. It will "bypass" the attrs of `product_id` and the state of PO ('draft') line won't be save because it is readonly. resolve #59664 closes odoo/odoo#59720 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Diffstat (limited to 'addons/project')
0 files changed, 0 insertions, 0 deletions