summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/purchase_order.xml
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views/purchase_order.xml')
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml48
1 files changed, 47 insertions, 1 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index d22c3b5c..022937f4 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -20,6 +20,11 @@
type="object"
attrs="{'invisible': [('approval_status', '=', 'approved')]}"
/>
+ <button name="po_approve_unlock"
+ string="Ask Approval Unlock PO"
+ type="object"
+ attrs="{'invisible': [('approval_status_unlock', '=', 'approved')]}"
+ />
<button name="indoteknik_custom.action_view_uangmuka_pembelian" string="UangMuka"
type="action" attrs="{'invisible': [('approval_status', '!=', 'approved')]}"/>
</button>
@@ -43,6 +48,9 @@
<field name="revisi_po"/>
<field name="not_update_purchasepricelist"/>
</field>
+ <field name="approval_status" position="after">
+ <field name="approval_status_unlock" invisible="True"/>
+ </field>
<field name="incoterm_id" position="after">
<field name="amount_total_without_service"/>
<field name="delivery_amt"/>
@@ -52,6 +60,8 @@
<field name="summary_qty_po"/>
<field name="count_line_product"/>
<field name="payment_term_id"/>
+ <field name="total_cost_service" attrs="{'required': [('partner_id', 'in', [9688, 29712])]}"/>
+ <field name="total_delivery_amt" attrs="{'required': [('partner_id', 'in', [9688, 29712])]}"/>
</field>
<field name="amount_total" position="after">
<field name="total_margin"/>
@@ -59,6 +69,9 @@
<field name="total_percent_margin"/>
<field name="total_so_percent_margin"/>
</field>
+ <field name="partner_ref" position="before">
+ <field name="store_name" attrs="{'invisible': [('partner_id', 'not in', [9688, 29712])]}"/>
+ </field>
<field name="product_id" position="before">
<field name="line_no" attrs="{'readonly': 1}" optional="hide"/>
</field>
@@ -74,6 +87,13 @@
<field name="qty_available" readonly="1" optional="hide"/>
<field name="qty_reserved" readonly="1" optional="hide"/>
<field name="suggest" readonly="1" widget="badge" decoration-danger="suggest == 'harus beli'" decoration-success="suggest == 'masih cukup'"/>
+ <field name="delivery_amt" optional="hide"/>
+ <field name="delivery_amt_per_item" optional="hide"/>
+ <field name="contribution_delivery_amt" optional="hide"/>
+ <field name="cost_service" optional="hide"/>
+ <field name="cost_service_per_item" optional="hide"/>
+ <field name="contribution_cost_service" optional="hide"/>
+ <field name="ending_price" optional="hide"/>
<!-- <field name="suggest" readonly="1"/> -->
</field>
<field name="product_id" position="before">
@@ -137,7 +157,30 @@
</field>
</record>
</data>
-
+ <data>
+ <record id="view_purchase_order_unlock_wizard_form" model="ir.ui.view">
+ <field name="name">purchase.order.unlock.wizard.form</field>
+ <field name="model">purchase.order.unlock.wizard</field>
+ <field name="arch" type="xml">
+ <form string="Reject Reason">
+ <group>
+ <field name="alasan" widget="text"/>
+ </group>
+ <footer>
+ <button string="Confirm" type="object" name="confirm_reject" class="btn-primary"/>
+ <button string="Cancel" class="btn-secondary" special="cancel"/>
+ </footer>
+ </form>
+ </field>
+ </record>
+
+ <record id="action_purchase_order_unlock_wizard" model="ir.actions.act_window">
+ <field name="name">Reject Reason</field>
+ <field name="res_model">purchase.order.unlock.wizard</field>
+ <field name="view_mode">form</field>
+ <field name="target">new</field>
+ </record>
+ </data>
<data>
<record id="rfq_order_tree_view_inherit" model="ir.ui.view">
@@ -153,6 +196,9 @@
<field name="logbook_bill_id" optional="hide"/>
<field name="status_printed" optional="hide"/>
</field>
+ <field name="partner_id" position="after">
+ <field name="store_name" optional="hide"/>
+ </field>
</field>
</record>
</data>