summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/sale_order.xml
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views/sale_order.xml')
-rwxr-xr-xindoteknik_custom/views/sale_order.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index 69dafe62..79604e75 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -46,6 +46,12 @@
type="object"
string="Refund"
class="btn-primary" />
+
+ <button name="action_open_sjo"
+ type="object"
+ string="Request Sourcing"
+ class="btn-primary"
+ attrs="{'invisible': [('state', '!=', 'draft')]}"/>
</xpath>
<xpath expr="//sheet" position="before">
<field name="partner_is_cbd_locked" invisible="1"/>
@@ -77,6 +83,14 @@
attrs="{'invisible': [('refund_count', '=', 0)]}">
<field name="refund_count" widget="statinfo" string="Refund"/>
</button>
+
+ <button type="object"
+ name="action_view_related_sjo"
+ class="oe_stat_button"
+ icon="fa-briefcase"
+ attrs="{'invisible': [('sourcing_job_count', '=', 0)]}">
+ <field name="sourcing_job_count" widget="statinfo" string="SJO"/>
+ </button>
</div>
<field name="payment_term_id" position="after">
<field name="create_uid" invisible="1"/>