简体   繁体   English

从 Odoo 15 中的 product.template 添加列到销售订单行

[英]Add Column to sale order lines from product.template in Odoo 15

Products in odoo have informations like name,type,price,Internal Reference ect.. odoo 中的产品具有名称、类型、价格、内部参考等信息。 在此处输入图像描述 I want to add Internal Reference of a product in sale order lines我想在销售订单行中添加产品的内部参考销售订单行

as you see in the picture we have in order lines product,description,qty,price ect.. i want to add Internal Reference to this infos.正如您在图片中看到的,我们有订单行产品、描述、数量、价格等。我想为这些信息添加内部参考。

how can i add Internal Reference from image 1 (product) to image 2 (Order lines)如何将图像 1(产品)的内部参考添加到图像 2(订单行)

inherit sale.order.line and add a field继承sale.order.line 增加一个字段

default_code = fields.Char(string='Internal Reference ', related="product_id.default_code")

add this default_code field in xml by inheriting the the order_lines view.通过继承order_lines视图在 xml 中添加此default_code字段。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从 Odoo 15 中的 product.template 添加手头数量和产品供应商到销售订单行 - Add quantity on hand and the suppliers of product to sale order lines from product.template in Odoo 15 字段未显示在product.template odoo8中 - Field is not showing in product.template odoo8 将product.product字段添加到product.template视图 - Odoo v8 - Add product.product fields to product.template view - Odoo v8 将按钮'action_open_quants'添加到继承的'product.template'模型-Odoo v8 - Add button 'action_open_quants' to inherited 'product.template' model - Odoo v8 计算方法未能分配 product.template 。 奥多14 - Compute method failed to assign product.template . Odoo 14 为什么我在 Odoo 中使用 product.template 时出错 - Why I have error in Odoo while using product.template 我可以根据Odoo中的销售订单值隐藏销售订单行中的字段列吗? - Can i hide the field's column from Sale order line Based on sale order value In Odoo? 如何从 Odoo 中的产品模板属性行创建产品变体? - How to create product variants from the product template attribute lines in Odoo? 如何在Odoo 8的sale.order.line中的onchange_product_id方法中添加功能? - How to add a functionality to onchange_product_id method in sale.order.line in Odoo 8? 如何使用 create function odoo 13 将产品添加到 sale.subscription 订单行 - how to add product to sale.subscription order line using the create function odoo 13
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM