How can I access the one2many field in sale.order model (order_line) and change the quantity for example. Appreciate your time
لقد تم الإبلاغ عن هذا السؤال
1
الرد
3122
أدوات العرض
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)
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
Get the values of one2many field
تم الحل
|
|
1
يونيو 22
|
3994 | |
|
|
1
أبريل 24
|
2875 | ||
|
|
1
أكتوبر 23
|
2962 | ||
|
|
1
مايو 23
|
3298 | ||
|
|
0
سبتمبر 22
|
3514 |