Skip to Content
Menu
This question has been flagged

class CompanyBranch(models.Model): 

_name = 'company.branch'    

_inherit = 'res.parnter'

is_branch = fields.Boolean(        string=u'Is Branch', )






<record id="view_company_branch_form_inherited" model="ir.ui.view">            

<field name="name">view.company.branch inherited</field>            

<field name="model">company.branch</field> 

<field name="inherit_id" ref="base.view_partner_form" />            

<field name="type">form</field>            

<field name="mode">extension</field>            

<field name="priority" eval="1" />            

<field name="active" eval="True" />            

<field name="arch" type="xml">                

<xpath expr="//field[@name='vat']" position="after">                    

<field name="is_branch"></field>                

</xpath>            

</field>        

</record>

ERROR: external id not found in the system



Avatar
Discard
Related Posts Replies Views Activity
1
Nov 24
103
5
Jul 24
86821
1
Dec 23
1814
0
May 23
5
1
May 22
1822