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

Good day people,


So I have a case where, I have a customer called Thomas TT LTD and the child contact is Bobo, Lex, and Tommy, the customer field is valued with Thomas TT LTD. I need to show the child contact on the crm.lead and also be able to add more child through this model. So basically it's like adding a function like Contact & Address notebook on res.partner but it's Contact & Address on crm.lead haha. Is there a way to do that? Thank you for the help :D

الصورة الرمزية
إهمال

All you need to do is to delare a related field in crm.lead model.

child_ids = fields.M2M(related='partner_id.child_ids', .... )

In crm.lead, if you add a child, it will automatically be added to partner childs too and vice versa.

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
يونيو 25
1686
1
سبتمبر 24
3584
1
أغسطس 24
1819
1
أغسطس 24
2115
0
أغسطس 24
252