forked from odoo/odoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] sale: add lines on a confirmed sale order.
When using the editable list on the sale order form, it was not possible to add a new line on a confirmed sale order, while it should (when `Allow to edit sales order` is chosen in the Sales settings). The reason was that the fields `tax_id` and `product_id` were set as readonly when the SO state was not draft. When using the popup/dialog view, it worked by luck, because the line `state`, which is a stored related field to the sale order state, was not correctly computed, and was seen as `draft`, while it should actually be `sale`, for a confirmed sale order. We change the readonly condition of these fields, which is now based on the fact wether or not the line is already invoiced or not, which makes more sense. opw-651573
- Loading branch information
1 parent
4f9c9ad
commit a5e737f
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters