![](/img/trans.png)
[英]Add quantity on hand and the suppliers of product to sale order lines from product.template in Odoo 15
[英]Add Column to sale order lines from product.template in Odoo 15
继承sale.order.line 增加一个字段
default_code = fields.Char(string='Internal Reference ', related="product_id.default_code")
通过继承order_lines
视图在 xml 中添加此default_code
字段。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.