How can I access the one2many field in sale.order model (order_line) and change the quantity for example. Appreciate your time
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухоблік
- Склад
- PoS
- Проект
- MRP
Це запитання позначене
1
Відповісти
2300
Переглядів
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)
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація| Related Posts | Відповіді | Переглядів | Дія | |
|---|---|---|---|---|
|
Get the values of one2many field
Вирішено
|
|
1
черв. 22
|
3198 | |
|
|
1
квіт. 24
|
2099 | ||
|
|
1
жовт. 23
|
2246 | ||
|
|
1
трав. 23
|
2632 | ||
|
|
0
вер. 22
|
2669 |