Skip to content

Commit

Permalink
[FIX] purchase_request: not allow to edit an approved purchase request
Browse files Browse the repository at this point in the history
This commit fixes the the following issue.

- Create a purchase request with some products and send it to approval
- The manager approves the purchase request.
- After the approval the user can add new products to the request and can abuse
  • Loading branch information
alan196 committed Jan 21, 2025
1 parent 3672021 commit 1faea85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion purchase_request/views/purchase_request_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
</group>
<notebook>
<page string="Products">
<field name="line_ids">
<field name="line_ids" readonly="state != 'draft'">
<tree
decoration-muted="cancelled == True"
editable="bottom"
Expand Down

0 comments on commit 1faea85

Please sign in to comment.