summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-11-15 17:36:32 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-11-15 17:36:32 +0700
commit5102c2a866daec248e3903fbfb7b8bd87bb0ef52 (patch)
tree71c2d34088308a67d43b9780b9d3a94ee870ffab /indoteknik_custom/views
parentf6671dd4595af3c1075b27925f10c457854cecf8 (diff)
parent9d0dbdfe0e08ecab850860fa2b23ffb64fa6dae1 (diff)
Merge branch 'master' of bitbucket.org:altafixco/indoteknik-addons
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"