Jagdish Panchal (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-930528-jap into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #930528 in OpenERP Addons: "Customer drop down list always show
supplier..."
https://bugs.launchpad.net/openobject-addons/+bug/930528
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-930528-jap/+merge/93157
Hello
account_voucher: add the domain on the partner_id in
voucher_payment_receipt_view.xml and voucher_sales_purchase_view.xml
--fixes=lp:930528
Thanks,
JAP
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-930528-jap/+merge/93157
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-930528-jap.
=== modified file 'account_voucher/voucher_payment_receipt_view.xml'
--- account_voucher/voucher_payment_receipt_view.xml 2012-01-31 13:36:57 +0000
+++ account_voucher/voucher_payment_receipt_view.xml 2012-02-15 08:50:36 +0000
@@ -294,7 +294,7 @@
<field name="arch" type="xml">
<form string="Customer Payment">
<group col="6" colspan="4">
- <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)" string="Customer" context="{'search_default_customer': 1}"/>
+ <field name="partner_id" domain="[('customer','=',True)]" required="1" invisible="context.get('line_type', False)" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" string="Customer" context="{'search_default_customer': 1}"/>
<field name="currency_id" invisible="1"/>
<field name="amount"
invisible="context.get('line_type', False)"
=== modified file 'account_voucher/voucher_sales_purchase_view.xml'
--- account_voucher/voucher_sales_purchase_view.xml 2012-01-31 13:36:57 +0000
+++ account_voucher/voucher_sales_purchase_view.xml 2012-02-15 08:50:36 +0000
@@ -82,7 +82,7 @@
<field name="arch" type="xml">
<form string="Sales Receipt">
<group col="6" colspan="4">
- <field name="partner_id" required="1" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" string="Customer" context="{'search_default_customer': 1}"/>
+ <field name="partner_id" domain="[('customer','=',True)]" required="1" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" string="Customer" context="{'search_default_customer': 1}"/>
<field name="date" on_change="onchange_date(date, currency_id, currency_id, amount, company_id, context)"/>
<field name="journal_id" domain="[('type','in',['sale','sale_refund'])]" widget="selection" on_change="onchange_journal(journal_id, line_cr_ids, tax_id, partner_id, date, amount, type, company_id, context)"/>
<field name="number"/>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp