📜  在销售订单行中添加字段 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:28.125000             🧑  作者: Mango

代码示例1
For that you need to inherit sale.order.line object and use
xpath to display in sale order form view. 

In PY:-

class SaleOrderLine(models.Model):

     _inherit = 'sale.order.line'



     x_field = fields.Char('X Field')



In Xml:-


    sale.order.view.inherit1
    sale.order
    
    
        
            
        
    




This fields shows after Description in the sale order line.



Hope it will helps you.

Thanks,