Merge lp:~openerp-dev/openobject-addons/7.0-opw-596865-pna into lp:openobject-addons/7.0

Proposed by Pinakin Nayi (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-596865-pna
Merge into: lp:openobject-addons/7.0
Diff against target: 12 lines (+1/-1)
1 file modified
account_voucher/voucher_payment_receipt_view.xml (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-596865-pna
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+182036@code.launchpad.net

Description of the change

Hello Sir,

I improved account voucher for vendor form view and put domain so it will filter out only supplier.
To reproduce :
 - Go to Accounting Suppliers > Supplier Payment create new supplier payment and see in supplier field all the partners and contacts appear instead of suppliers only.

Thanks,
pna

To post a comment you must log in.

Unmerged revisions

9385. By Pinakin Nayi (OpenERP)

[FIX]account_voucher : add domain to display only supplier

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_voucher/voucher_payment_receipt_view.xml'
2--- account_voucher/voucher_payment_receipt_view.xml 2013-07-24 09:40:23 +0000
3+++ account_voucher/voucher_payment_receipt_view.xml 2013-08-26 06:14:27 +0000
4@@ -141,7 +141,7 @@
5 <field name="type" invisible="True"/>
6 <group>
7 <group>
8- <field name="partner_id" required="1" invisible="context.get('line_type', False)" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" context="{'invoice_currency':currency_id, 'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}" string="Supplier"/>
9+ <field name="partner_id" required="1" domain="[('supplier','=',True)]" invisible="context.get('line_type', False)" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" context="{'invoice_currency':currency_id, 'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}" string="Supplier"/>
10 <field name="currency_id" invisible="1"/>
11 <field name="amount" invisible="context.get('line_type', False)" on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)" class="oe_inline" widget='monetary' options='{"currency_field": "currency_id"}'/>
12 <field name="journal_id"