使用name_search
我在产品模板中添加了字段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')
尝试在帐户发票上使用它来选择产品