Pular para o conteúdo
Menu
Esta pergunta foi sinalizada

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
nov. 24
1811
5
jul. 24
93377
1
dez. 23
3174
0
mai. 23
5
1
mai. 22
3851