class Wtgpurchase(models.Model):
_inherit = 'produenter code herect.template'
code_article = fields.Char(string='code_article')
class WtgFacture2(models.Model):
_inherit='account.invoice'
code_article_id = fields.Many2one('product.template', string='code article')
_depends = {
'product.template': ['code_article'], }
<record model="ir.ui.view" id="view_order_form_inherited55">
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="code_article_id.code_article" />
</field></field>
</record>
vue account.invoice form
[view_id:1432,xml_id:wtg24.view_order_form_inherited54,型号:account.invoice,parent_id:539]
“无”,同时解析/home/khaled/Bureau/eclipse-installer/workspace/wtg_modules/wtg_addons/wtg24/views/wtg_bill.xml:26,