Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1446 Zobrazení

I'm using the Partner Affiliate module and have extended sale.order to include a many2one partner_affiliate_id field. Now, in the Sale Order Form, when creating a new Partner Affiliate, I need to include the partner_affiliate_id and partner_id (to be set as the affiliate's parent_id) in the vals that are passed to the res.partner create() method.


How can I add these fields to vals?

Avatar
Zrušit
Nejlepší odpověď

One method is that you can send the partner_affiliate_id​ in the context fromsale.order​ and get that value in create​ method of res.partner​ like `affiliate_partner_id = self._context.get('partner_affiliate_id​')`.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
kvě 24
2214
2
dub 24
2000
0
dub 24
933
2
lis 21
2305
0
zář 24
1244