تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1674 أدوات العرض

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)

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 22
2571
1
أبريل 24
1379
1
أكتوبر 23
1563
1
مايو 23
2027
0
سبتمبر 22
2030