summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/shipment_group.xml
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views/shipment_group.xml')
-rw-r--r--indoteknik_custom/views/shipment_group.xml16
1 files changed, 13 insertions, 3 deletions
diff --git a/indoteknik_custom/views/shipment_group.xml b/indoteknik_custom/views/shipment_group.xml
index e9eec41b..c3f79bda 100644
--- a/indoteknik_custom/views/shipment_group.xml
+++ b/indoteknik_custom/views/shipment_group.xml
@@ -7,6 +7,8 @@
<tree default_order="create_date desc">
<field name="number"/>
<field name="partner_id"/>
+ <field name="carrier_id"/>
+ <field name="total_colly_line"/>
</tree>
</field>
</record>
@@ -16,11 +18,10 @@
<field name="model">shipment.group.line</field>
<field name="arch" type="xml">
<tree editable="bottom">
- <field name="picking_id" required="1"/>
<field name="partner_id" readonly="1"/>
+ <field name="picking_id" required="1"/>
<field name="sale_id" readonly="1"/>
- <field name="shipping_paid_by" readonly="1"/>
- <field name="state" readonly="1"/>
+ <field name="total_colly" readonly="1"/>
</tree>
</field>
</record>
@@ -30,6 +31,13 @@
<field name="model">shipment.group</field>
<field name="arch" type="xml">
<form>
+ <header>
+ <button name="sync_api_shipping"
+ string="Sync API"
+ type="object"
+ attrs="{'invisible': [('carrier_id', 'not in', [151, 173])]}"
+ />
+ </header>
<sheet>
<group>
<group>
@@ -37,6 +45,8 @@
</group>
<group>
<field name="partner_id" readonly="1"/>
+ <field name="carrier_id" readonly="1"/>
+ <field name="total_colly_line" readonly="1"/>
</group>
</group>
<notebook>