diff options
| author | Indoteknik . <andrifebriyadiputra@gmail.com> | 2025-05-07 09:57:44 +0700 |
|---|---|---|
| committer | Indoteknik . <andrifebriyadiputra@gmail.com> | 2025-05-07 09:57:44 +0700 |
| commit | d3df18ba29101fbce6a249915436d741a70ad810 (patch) | |
| tree | 3503cba4a9ae798a303cad422375e3f22fb65a98 | |
| parent | 258c9b0717a02dcd9cce3eb7703c33cf55d60813 (diff) | |
(andri) tidak bisa edit data product jika sudah status PO (meskipun sudah di unlock)
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index d6ad2408..920268bc 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -140,7 +140,7 @@ </field> <field name="order_line" position="attributes"> - <attribute name="attrs">{'readonly': ['|', ('state', 'in', ['done', 'cancel']), ('has_active_invoice', '=', True)]}</attribute> + <attribute name="attrs">{'readonly': ['|', ('state', 'in', ['purchase', 'done', 'cancel']), ('has_active_invoice', '=', True)]}</attribute> </field> <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='price_unit']" position="attributes"> |
