summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/res_partner.xml
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-05-10 07:43:40 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-05-10 07:43:40 +0000
commite2cf27c1fc540ad24b457d23c89ddd1ea4e6034a (patch)
treea635964dbd0b9729c1d161e16ca7e8dabb02a3c8 /indoteknik_custom/views/res_partner.xml
parentcb9ae6021dd4858372ed78d16ab491226c95f1d2 (diff)
parent844339e517540826f6990456a63945dc879e37d5 (diff)
Merged in dev/request-by-abl (pull request #141)
Dev/request by abl
Diffstat (limited to 'indoteknik_custom/views/res_partner.xml')
-rw-r--r--indoteknik_custom/views/res_partner.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml
index 4c481e8a..59d33f29 100644
--- a/indoteknik_custom/views/res_partner.xml
+++ b/indoteknik_custom/views/res_partner.xml
@@ -32,6 +32,11 @@
<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>
+ <xpath expr="//field[@name='child_ids']/form//field[@name='name']" position="before">
+ <field name="parent_id" invisible="1" />
+ <field name="main_parent_id" invisible="1" />
+ <field name="site_id" attrs="{'readonly': [('parent_id', '=', False)]}" domain="[('partner_id', '=', main_parent_id)]" context="{'default_partner_id': active_id}" />
+ </xpath>
</field>
</record>
</data>