Radio is_coworker

This commit is contained in:
michel 2017-11-27 14:24:15 +01:00
parent 8c81f0eee6
commit 6a1e2cdd28
2 changed files with 8 additions and 1 deletions

View File

@ -9,6 +9,7 @@ class ResPartner(models.Model):
""" Coworker model """
_inherit = 'res.partner'
is_coworker = fields.Selection([('is_coworker', 'Is_coworker')])
company_ids = fields.One2many(
string="Company",

View File

@ -8,10 +8,16 @@
<field name="inherit_id" ref ="base.view_partner_form" />
<field name="arch" type="xml">
<field name="company_type" position="after">
<div class="oe_title">
<field name="is_coworker" widget="radio" class="oe_edit_only" options="{'horizontal': true}"/>
</div>
</field>
<field name="parent_id" position="after">
<field name="coworker_type" />
<field name="contact_date" />
</field>
<field name="email" position="after">