Radio is_coworker
This commit is contained in:
parent
8c81f0eee6
commit
6a1e2cdd28
@ -9,6 +9,7 @@ class ResPartner(models.Model):
|
|||||||
""" Coworker model """
|
""" Coworker model """
|
||||||
_inherit = 'res.partner'
|
_inherit = 'res.partner'
|
||||||
|
|
||||||
|
is_coworker = fields.Selection([('is_coworker', 'Is_coworker')])
|
||||||
|
|
||||||
company_ids = fields.One2many(
|
company_ids = fields.One2many(
|
||||||
string="Company",
|
string="Company",
|
||||||
|
@ -8,10 +8,16 @@
|
|||||||
<field name="inherit_id" ref ="base.view_partner_form" />
|
<field name="inherit_id" ref ="base.view_partner_form" />
|
||||||
<field name="arch" type="xml">
|
<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="parent_id" position="after">
|
||||||
<field name="coworker_type" />
|
<field name="coworker_type" />
|
||||||
<field name="contact_date" />
|
<field name="contact_date" />
|
||||||
|
|
||||||
</field>
|
</field>
|
||||||
|
|
||||||
<field name="email" position="after">
|
<field name="email" position="after">
|
||||||
|
Loading…
Reference in New Issue
Block a user