Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1836 Переглядів

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)

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
черв. 22
2708
1
квіт. 24
1553
1
жовт. 23
1676
1
трав. 23
2143
0
вер. 22
2223