Hell Community,
I want to filter partners as is_company=True in many2one field
Here is my code :
<notebook>
<page string="Distributor Line">
<field name="distributor_line" widget="one2many" nolabel="1">
<tree editable="bottom">
<field name="partner_id" string="Customer Name"
on_change="on_change_partner(partner_id)"/>
<field name="x_cus_phone"/>
<field name="x_cus_email"/>
</tree>
</field>
</page>
</notebook>
in py file :
'partner_id': fields.many2one('res.partner', 'Customer Name', ondelete='cascade', select=True),
Does any one help me please.
Thanks in advance