Merge lp:~openerp-dev/openobject-addons/trunk-bug-1170916-vja into lp:openobject-addons

Proposed by Quentin THEURET @Amaris
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1170916-vja
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
account_voucher/account_voucher.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1170916-vja
Reviewer Review Type Date Requested Status
DJ Patel (OpenERP) (community) Approve
OpenERP Core Team Pending
Review via email: mp+165836@code.launchpad.net
To post a comment you must log in.
Revision history for this message
DJ Patel (OpenERP) (mdi-openerp) :
review: Approve

Unmerged revisions

8690. By Vishmita Jadeja (openerp)

[IMP]improve context

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_voucher/account_voucher.py'
2--- account_voucher/account_voucher.py 2013-05-21 12:23:59 +0000
3+++ account_voucher/account_voucher.py 2013-05-27 08:23:27 +0000
4@@ -217,7 +217,7 @@
5 if context.get('type', 'sale') in ('purchase', 'payment'):
6 nodes = doc.xpath("//field[@name='partner_id']")
7 for node in nodes:
8- node.set('context', "{'search_default_supplier': 1}")
9+ node.set('context', "{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}")
10 if context.get('invoice_type','') in ('in_invoice', 'in_refund'):
11 node.set('string', _("Supplier"))
12 res['arch'] = etree.tostring(doc)

Subscribers

People subscribed via source and target branches

to all changes: