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
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1
Balas
1548
Tampilan
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)
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
Get the values of one2many field
Diselesaikan
|
|
1
Jun 22
|
2437 | |
|
1
Apr 24
|
1310 | ||
|
1
Okt 23
|
1452 | ||
|
1
Mei 23
|
1949 | ||
|
0
Sep 22
|
1934 |