Merge lp:~openerp-dev/openobject-addons/trunk-bug-1132950-pankti into lp:openobject-addons

Proposed by Pankti Shah(OpenERP Trainee)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1132950-pankti
Merge into: lp:openobject-addons
Diff against target: 25 lines (+2/-2)
2 files modified
account_voucher/account_voucher.py (+1/-1)
account_voucher/voucher_sales_purchase_view.xml (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1132950-pankti
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+157024@code.launchpad.net

Description of the change

Hello,
    It has been fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1132950-pankti branch.
    Revision num: 8660
    Revision ID: <email address hidden>

Thanks,
Pankti

To post a comment you must log in.

Unmerged revisions

8660. By Pankti Shah(OpenERP Trainee)

[FIX]Suppliers is save in the Suppliers page

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-02-14 10:06:28 +0000
3+++ account_voucher/account_voucher.py 2013-04-04 05:43:23 +0000
4@@ -205,7 +205,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', "{'search_default_supplier': 1, 'default_customer': 0, '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)
13
14=== modified file 'account_voucher/voucher_sales_purchase_view.xml'
15--- account_voucher/voucher_sales_purchase_view.xml 2013-02-25 14:20:35 +0000
16+++ account_voucher/voucher_sales_purchase_view.xml 2013-04-04 05:43:23 +0000
17@@ -221,7 +221,7 @@
18 <field name="type" invisible="True"/>
19 <group>
20 <group>
21- <field name="partner_id" domain="[('supplier','=',True)]" string="Supplier" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}" />
22+ <field name="partner_id" string="Supplier" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" />
23 <field name="name" colspan="2"/>
24 <field name="reference"/>
25 <field name="company_id" widget="selection" groups="base.group_multi_company"/>

Subscribers

People subscribed via source and target branches

to all changes: