summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-04-05 02:07:44 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-04-05 02:07:44 +0000
commitc5ae35bc79a54b2431965765473120ca9fd9cb70 (patch)
treef33dc4ef6816ed85feb757c672f1c8b5bb1bd0fd /indoteknik_custom
parentce8c895990a235bc9e597268e8317101676f54a6 (diff)
parent1a04612df978951dbcba10e7a535284a1e776db1 (diff)
Merged in feature/request-by-abl (pull request #137)
Feature/request by abl
Diffstat (limited to 'indoteknik_custom')
-rw-r--r--indoteknik_custom/models/res_partner.py1
-rw-r--r--indoteknik_custom/views/res_partner.xml1
2 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/res_partner.py b/indoteknik_custom/models/res_partner.py
index 467d3be9..5a62596d 100644
--- a/indoteknik_custom/models/res_partner.py
+++ b/indoteknik_custom/models/res_partner.py
@@ -25,6 +25,7 @@ class ResPartner(models.Model):
pakta_integritas = fields.Boolean(string='Pakta Integritas')
use_so_approval = fields.Boolean(string='Use SO Approval')
+ use_only_ready_stock = fields.Boolean(string='Use Only Ready Stock')
web_role = fields.Selection([
('manager', 'Manager'),
('director', 'Director')
diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml
index 370fcf7b..e7b8517a 100644
--- a/indoteknik_custom/views/res_partner.xml
+++ b/indoteknik_custom/views/res_partner.xml
@@ -28,6 +28,7 @@
</group>
<field name="vat" position="after">
<field name="use_so_approval" attrs="{'invisible': [('parent_id', '!=', False), ('company_type', '!=', 'company')]}" />
+ <field name="use_only_ready_stock" attrs="{'invisible': [('parent_id', '!=', False), ('company_type', '!=', 'company')]}" />
<field name="web_role" attrs="{'invisible': ['|', ('parent_id', '=', False), ('company_type', '=', 'company')]}" />
</field>
</field>