跳至内容
菜单
此问题已终结
1 回复
1609 查看

How can I access the one2many field in sale.order model (order_line) and change the quantity for example. Appreciate your time

形象
丢弃
最佳答案

Hello,

I assume that you are talking about replacing a field in sales order lines using a custom module? If that's so, you can try to inherit the sale.order.lines model and later just rename the field.

class CustomSaleOrdeLines(models.Model):
    _inherit = sale.order.line

    product_uom_qty = fields.Float("Ordered Qty Edited")


Best regards,

Altela (altelasoftware.com)

形象
丢弃
相关帖文 回复 查看 活动
1
6月 22
2494
1
4月 24
1346
1
10月 23
1471
1
5月 23
1994
0
9月 22
1979