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

I want to know how I can move a value from a new field from stock.picking to the stock.move ?

Thanks

الصورة الرمزية
إهمال
أفضل إجابة

I would suggest to create a related field using picking_id (reference to stock_picking) inside stock_move by inheriting it.

example:

suppose need to pull origin field from stock_picking to stock_move.

write here


picking_origin = fields.Integer(related='picking_id.origin', string="Origin');

الصورة الرمزية
إهمال
الكاتب

so in stock_move I made a field like this ? I will try that later.

الكاتب

I have made it with overriding 5 methods from the original stock modul. I don't see an other way to manage that

will you please share some more information , i did not get this ,

I have made it with overriding 5 methods from the original stock modul. ?

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 17
3756
2
مايو 25
4942
2
مايو 23
2479
0
يناير 23
1536
1
أغسطس 21
4231