![](/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.