Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: How to update field context by xml
by
diogo.cordeiro
Hi Alex!
try using the following context:
<attribute name="context">{'default_partner_id': partner_id}</attribute>
I hope it helps...
On Mon, Apr 10, 2017 at 5:08 PM, Alex Comba <alex.comba@agilebg.com> wrote:
Hi Ray,thanks for your quick answer!But what I meant is kept all values passed to the context by the two modules.module 1, set invoice_line_ids context as follows:<attribute name="context">{'partner_id': partner_id}</attribute>module 2, set invoice_line_ids context as follows:<attribute name="context">{'fiscal_position_id': fiscal_position_id, 'type': type, 'journal_id': journal_id, 'default_invoice_id': id}</attribute> Expected behavior:invoice_line_ids context is equal to {'partner_id': partner_id, 'fiscal_position_id': fiscal_position_id, 'type': type, 'journal_id': journal_id, 'default_invoice_id': id} Thanks,--Alex Comba
Tel (CH): +41 91 210 23 40______________________________
_________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
Reference
-
How to update field context by xml
byAGILE BUSINESS GROUP ITALIA SRL, Alex Comba.-
Re: How to update field context by xml
byAGILE BUSINESS GROUP ITALIA SRL, Alex Comba. -
Re: How to update field context by xml
byAGILE BUSINESS GROUP ITALIA SRL, Alex Comba. -
Re: How to update field context by xml
byAGILE BUSINESS GROUP ITALIA SRL, Alex Comba. -
Re: How to update field context by xml
byAGILE BUSINESS GROUP ITALIA SRL, Alex Comba. -
Re: How to update field context by xml
by Jay Vora <vora.jay@serpentcs.com> - 10/04/2017 20:59:24 - 0
-