summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/product_pricelist.xml3
-rwxr-xr-xindoteknik_custom/views/product_template.xml1
-rw-r--r--indoteknik_custom/views/stock_picking.xml9
3 files changed, 12 insertions, 1 deletions
diff --git a/indoteknik_custom/views/product_pricelist.xml b/indoteknik_custom/views/product_pricelist.xml
index 18e9835a..3ff6854f 100644
--- a/indoteknik_custom/views/product_pricelist.xml
+++ b/indoteknik_custom/views/product_pricelist.xml
@@ -13,6 +13,9 @@
<field name="banner" widget="image" attrs="{
'invisible': [('is_flash_sale', '=', False)]
}" />
+ <field name="banner_mobile" widget="image" attrs="{
+ 'invisible': [('is_flash_sale', '=', False)]
+ }" />
<field name="start_date" attrs="{
'invisible': [('is_flash_sale', '=', False)],
'required': [('is_flash_sale', '=', True)]
diff --git a/indoteknik_custom/views/product_template.xml b/indoteknik_custom/views/product_template.xml
index d97359b6..0e774012 100755
--- a/indoteknik_custom/views/product_template.xml
+++ b/indoteknik_custom/views/product_template.xml
@@ -45,6 +45,7 @@
<field name="website_ribbon_id" position="after">
<field name="last_calculate_rating" attrs="{'readonly': [('type', '=', 'product')]}"/>
<field name="product_rating"/>
+ <field name="search_rank"/>
<field name="web_price_sorting" attrs="{'readonly': [('type', '=', 'product')]}"/>
<field name="solr_flag"/>
</field>
diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml
index d53bf5b5..ce70fdd8 100644
--- a/indoteknik_custom/views/stock_picking.xml
+++ b/indoteknik_custom/views/stock_picking.xml
@@ -10,6 +10,12 @@
<button name="ask_approval"
string="Ask Approval"
type="object"
+ attrs="{'invisible': [('is_internal_use', '=', False)]}"
+ />
+ <button name="ask_return_approval"
+ string="Ask Return/Acc"
+ type="object"
+ attrs="{'invisible': ['|', ('state', '=', 'draft'), ('state', '=', 'cancel'), ('approval_return_status', '=', 'pengajuan1')]}"
/>
</button>
<div class="oe_title" position="after">
@@ -34,7 +40,8 @@
<field name="real_shipping_id"/>
</field>
<field name="origin" position="after">
- <field name="approval_status"/>
+ <field name="approval_status" attrs="{'invisible': [('is_internal_use', '=', False)]}"/>
+ <field name="approval_return_status" attrs="{'invisible': [('approval_return_status', '=', False)]}"/>
<field name="summary_qty_operation"/>
<field name="count_line_operation"/>
<field name="account_id"