Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1633 Представления

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
2516
1
апр. 24
1361
1
окт. 23
1504
1
мая 23
2000
0
сент. 22
2000