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
- Project
- MRP
この質問にフラグが付けられました
1
返信
1697
ビュー
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
|
2580 | ||
|
1
4月 24
|
1392 | ||
|
1
10月 23
|
1576 | ||
|
1
5月 23
|
2042 | ||
|
0
9月 22
|
2064 |