Browse Source

[10.0][FIX] Added is_company field for the domain constraint (#520)

pull/692/merge
Dave Burkholder 7 years ago
committed by OCA-git-bot
parent
commit
2e0b3de182
  1. 2
      partner_contact_job_position/__manifest__.py
  2. 1
      partner_contact_job_position/views/res_partner_view.xml

2
partner_contact_job_position/__manifest__.py

@ -8,7 +8,7 @@
{
"name": "Partner job position",
"summary": "Categorize job positions for contacts",
"version": "10.0.1.0.0",
"version": "10.0.1.0.1",
'category': 'Customer Relationship Management',
"website": "http://www.antiun.com",
'author': 'Serv. Tecnolog. Avanzados - Pedro M. Baeza, '

1
partner_contact_job_position/views/res_partner_view.xml

@ -13,6 +13,7 @@
</field>
<xpath expr="//field[@name='child_ids']/form//field[@name='function']"
position="before">
<field name="is_company" invisible="True"/>
<field name="job_position_id"
attrs="{'invisible': [('is_company','=', True)]}"
options='{"no_open": True}'/>

Loading…
Cancel
Save