在odoo12的文本字段中自动完成

2024-05-21 06:07:15 发布

您现在位置:Python中文网/ 问答频道 /正文

  • 使用name_search在odoo12的文本字段中自动完成

    我在产品模板中添加了一个字段code_artcile,我正在尝试 使用它来选择产品。你知道吗

    class AccountInvoiceInherited2(models.Model):
    
       _inherit = 'account.invoice.line'
       code_article_id = fields.Char(string='code article',store=True,related='product_id.code_article')
    

    尝试使用它来选择产品


Tags: name文本模板idsearchmodelodoo12产品