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.xml17
1 files changed, 13 insertions, 4 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index f6e5a1a4..0e6b6792 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -27,7 +27,11 @@
<button name="delete_line" type="object" string="Delete " states="draft"/>
</button>
<button name="button_unlock" position="after">
- <button name="create_bill_dp" string="Create Bill DP" type="object" class="oe_highlight" attrs="{'invisible': [('state', 'not in', ('purchase', 'done'))]}"/>
+ <button name="create_bill_dp" string="Create Bill DP" type="object" class="oe_highlight" attrs="{'invisible': [('state', 'not in', ('purchase', 'done')), ('bills_pelunasan_id', '!=', False)]}"/>
+ </button>
+ <button name="button_unlock" position="after">
+ <button name="create_bill_pelunasan" string="Create Bill Pelunasan" type="object" class="oe_highlight" attrs="{'invisible': [('state', 'not in', ('purchase', 'done')), ('bills_pelunasan_id', '!=', False)]}"/>
+
</button>
<field name="date_order" position="before">
<field name="sale_order_id" attrs="{'readonly': [('state', 'not in', ['draft'])]}"/>
@@ -41,11 +45,12 @@
<field name="incoterm_id" position="after">
<field name="amount_total_without_service"/>
<field name="delivery_amt"/>
+ <field name="approve_by"/>
</field>
<field name="currency_id" position="after">
<field name="summary_qty_po"/>
<field name="count_line_product"/>
- <field name="payment_term_id" readonly="1"/>
+ <field name="payment_term_id"/>
</field>
<field name="amount_total" position="after">
<field name="total_margin"/>
@@ -64,10 +69,14 @@
<field name="qty_onhand" readonly="1" optional="hide"/>
<field name="qty_incoming" readonly="1" optional="hide"/>
<field name="qty_outgoing" readonly="1" optional="hide"/>
+ <field name="clean_website_description_product" readonly="1" optional="hide"/>
<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="suggest" readonly="1"/> -->
+ <!-- <field name="suggest" readonly="1"/> -->
+ </field>
+ <field name="product_id" position="before">
+ <field name="image_small" readonly="1" optional="hide" widget="image" height="50"/>
</field>
<field name="price_unit" position="after">
<field name="price_vendor" attrs="{'readonly': 1}" optional="hide"/>
@@ -95,6 +104,7 @@
<field name="approval_edit_line"/>
<field name="logbook_bill_id"/>
<field name="bills_dp_id" readonly="1"/>
+ <field name="bills_pelunasan_id" readonly="1"/>
</field>
<field name="order_line" position="attributes">
@@ -202,7 +212,6 @@
<field name="code">model.procure_calculation()</field>
<field name="state">code</field>
<field name="priority">75</field>
- <field name="active">True</field>
</record>
</data>
<data>