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?