diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-02-02 14:07:43 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-02-02 14:07:43 +0700 |
| commit | c26ea43e1d8c3c5bfffb94bc1432589a9f2815c9 (patch) | |
| tree | 86b02e1b4d362617b168f4cb0a5777be483d07fb /indoteknik_custom/views/purchase_order.xml | |
| parent | 8bc43445f1d0b70d54d0a45830e04d0fcc406fbe (diff) | |
| parent | f5edc62d22c9a3973261ad289a11e189f0866f52 (diff) | |
Merge branch 'production' of bitbucket.org:altafixco/indoteknik-addons into production
Diffstat (limited to 'indoteknik_custom/views/purchase_order.xml')
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index 48443057..a6f28ffa 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -52,12 +52,12 @@ </field> <field name="product_id" position="before"> <field name="line_no" attrs="{'readonly': 1}" optional="hide"/> - <field name="delete_line"/> </field> <field name="product_id" position="attributes"> <attribute name="options">{'no_create': True}</attribute> </field> <field name="product_qty" position="before"> + <field name="is_edit_product_qty" readonly="1" optional="hide"/> <field name="qty_onhand" readonly="1" optional="hide"/> <field name="qty_incoming" readonly="1" optional="hide"/> <field name="qty_outgoing" readonly="1" optional="hide"/> @@ -102,7 +102,7 @@ </xpath> <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_qty']" position="attributes"> - <attribute name="attrs">{'readonly': [], 'required': True}</attribute> + <attribute name="attrs">{'readonly': [('is_edit_product_qty', '=', False)], 'required': True}</attribute> </xpath> <xpath expr="//form/sheet/notebook/page[@name='purchase_delivery_invoice']" position="before"> @@ -213,4 +213,13 @@ <field name="code">action = records.open_form_multi_confirm_po()</field> </record> </data> + <data> + <record id="purchase_order_multi_cancel_ir_actions_server" model="ir.actions.server"> + <field name="name">Cancel PO</field> + <field name="model_id" ref="purchase.model_purchase_order"/> + <field name="binding_model_id" ref="purchase.model_purchase_order"/> + <field name="state">code</field> + <field name="code">action = records.open_form_multi_cancel()</field> + </record> + </data> </odoo>
\ No newline at end of file |
