如何在odoo中将商品代码添加到帐户发票中

时间:2019-05-23 21:46:53

标签: python xml odoo

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,

0 个答案:

没有答案