summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/purchase_order.xml
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-10-05 15:23:17 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-10-05 15:23:17 +0700
commit06a5c0c589a00c036684285766eeddbdd0c39fcb (patch)
tree434c4bda203401f861ea39a01e8643ae4d38ac6d /indoteknik_custom/views/purchase_order.xml
parent14cb30c3f2fb8b15baaf32ab9fca7bb9bda73845 (diff)
parent3abd0ca6790b9a278f9ddd52b063691b99d6916c (diff)
Merge branch 'master' of bitbucket.org:altafixco/indoteknik-addons
# Conflicts: # indoteknik_custom/models/__init__.py
Diffstat (limited to 'indoteknik_custom/views/purchase_order.xml')
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml37
1 files changed, 37 insertions, 0 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index f209d18a..a8b71d5a 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -14,8 +14,45 @@
attrs="{'invisible': ['|', ('sale_order_id', '=', False), ('state', 'not in', ['draft'])]}"
/>
</div>
+ <button id="draft_confirm" position="after">
+ <button name="po_approve"
+ string="Ask Approval"
+ type="object"
+ />
+ </button>
<field name="date_order" position="before">
<field name="sale_order_id" attrs="{'readonly': [('state', 'not in', ['draft'])]}"/>
+ <field name="approval_status"/>
+ </field>
+ <field name="amount_total" position="after">
+ <field name="total_margin"/>
+ <field name="total_so_margin"/>
+ <field name="total_percent_margin"/>
+ <field name="total_so_percent_margin"/>
+ </field>
+ </field>
+ </record>
+ </data>
+ <data>
+ <record id="rfq_order_tree_view_inherit" model="ir.ui.view">
+ <field name="name">Purchase</field>
+ <field name="model">purchase.order</field>
+ <field name="inherit_id" ref="purchase.purchase_order_kpis_tree"/>
+ <field name="arch" type="xml">
+ <field name="create_date" position="after">
+ <field name="approval_status" />
+ </field>
+ </field>
+ </record>
+ </data>
+ <data>
+ <record id="purchase_order_tree_view_inherit" model="ir.ui.view">
+ <field name="name">Purchase</field>
+ <field name="model">purchase.order</field>
+ <field name="inherit_id" ref="purchase.purchase_order_view_tree"/>
+ <field name="arch" type="xml">
+ <field name="invoice_status" position="after">
+ <field name="procurement_status" />
</field>
</field>
</record>