summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/res_partner.xml
diff options
context:
space:
mode:
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>