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

Does anyone knows how to get an id of a many2one field inside it's one2many? For example, In sale_order if i want to add a sale_order_line then i want to access first the current sale order. My purpose here is to manipulate some data to be set in sale_order_lin. This question actually is related with my previous question.


Thanks for any help.

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

Check the solution in your previous question

https://www.odoo.com/forum/help-1/question/how-to-filter-fields-in-one2many-base-on-its-many2one-89978#answer_90005

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

Thanks. It helped a lot.

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 15
6722
3
سبتمبر 18
5617
0
فبراير 16
3704
0
أغسطس 15
5534
1
مارس 15
528