Browse Source
Merge pull request #514 from Eficent/9.0-fix-partner_contact_job_position
[9.0][FIX] partner_contact_job_position: error loading form view.
pull/530/head
Pedro M. Baeza
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
5 additions and
3 deletions
-
partner_contact_job_position/__openerp__.py
-
partner_contact_job_position/views/res_partner_view.xml
-
partner_sector/__openerp__.py
-
partner_sector/models/res_partner_sector.py
|
|
@ -6,7 +6,7 @@ |
|
|
|
{ |
|
|
|
"name": "Partner job position", |
|
|
|
"summary": "Categorize job positions for contacts", |
|
|
|
"version": "9.0.1.0.0", |
|
|
|
"version": "9.0.1.1.0", |
|
|
|
'category': 'Customer Relationship Management', |
|
|
|
"website": "http://www.tecnativa.com", |
|
|
|
'author': 'Tecnativa, ' |
|
|
|
|
|
@ -13,6 +13,7 @@ |
|
|
|
</field> |
|
|
|
<xpath expr="//field[@name='child_ids']/form//field[@name='function']" |
|
|
|
position="before"> |
|
|
|
<field name="is_company" invisible="1"/> |
|
|
|
<field name="job_position_id" |
|
|
|
attrs="{'invisible': [('is_company','=', True)]}" |
|
|
|
options='{"no_open": True}'/> |
|
|
|
|
|
@ -6,7 +6,7 @@ |
|
|
|
{ |
|
|
|
"name": "Partner Sector", |
|
|
|
"summary": "Add partner sectors", |
|
|
|
"version": "9.0.1.0.1", |
|
|
|
"version": "9.0.1.0.2", |
|
|
|
"category": "Customer Relationship Management", |
|
|
|
"website": "http://www.tecnativa.com", |
|
|
|
"author": "Tecnativa, Odoo Community Association (OCA)", |
|
|
|
|
|
@ -15,7 +15,8 @@ class ResPartnerSector(models.Model): |
|
|
|
_description = "Sector" |
|
|
|
|
|
|
|
name = fields.Char(required=True, translate=True) |
|
|
|
parent_id = fields.Many2one(comodel_name='res.partner.sector', |
|
|
|
parent_id = fields.Many2one(string='Parent', |
|
|
|
comodel_name='res.partner.sector', |
|
|
|
ondelete='restrict') |
|
|
|
child_ids = fields.One2many(comodel_name='res.partner.sector', |
|
|
|
inverse_name='parent_id', |
|
|
|