Merge lp:~openerp-dev/openobject-addons/trunk-bug-1076904-amb into lp:openobject-addons

Proposed by Amit Bhavsar (Open ERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1076904-amb
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
sale/sale_view.xml (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1076904-amb
Reviewer Review Type Date Requested Status
Amit Parik (community) Approve
OpenERP Core Team Pending
Review via email: mp+137188@code.launchpad.net

Description of the change

Hello,

Produce : When create the partner from Sale order form (partner_shipping_id). At that time partner_id not set into parent_id and due to parent_id - "type" field not show in the form.

Fix : add the context at sale_view.xml.

Thanks

To post a comment you must log in.
Revision history for this message
Amit Parik (amit-parik) :
review: Approve

Unmerged revisions

8174. By Amit Bhavsar (Open ERP)

[Fix] sale : Add context on partner_shipping_id

8173. By Amit Bhavsar (Open ERP)

[Fix] sale : Add context on partner_shipping_id

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sale/sale_view.xml'
2--- sale/sale_view.xml 2012-11-29 09:08:01 +0000
3+++ sale/sale_view.xml 2012-11-30 13:19:22 +0000
4@@ -192,7 +192,7 @@
5 <group>
6 <field name="partner_id" on_change="onchange_partner_id(partner_id, context)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}'/>
7 <field name="partner_invoice_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'invoice'}"/>
8- <field name="partner_shipping_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'delivery'}"/>
9+ <field name="partner_shipping_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'delivery', 'default_parent_id':partner_id}"/>
10 <field name="project_id" context="{'partner_id':partner_id, 'pricelist_id':pricelist_id, 'default_name':name}" groups="sale.group_analytic_accounting" domain="[('type','in',['view','normal','contract'])]"/>
11 </group>
12 <group>

Subscribers

People subscribed via source and target branches

to all changes: