summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Mac Rouillon <nicomacr@users.noreply.github.com>2016-12-19 13:34:51 -0300
committerMartin Trigaux <mart-e@users.noreply.github.com>2016-12-19 17:34:51 +0100
commit202a2e6959e3be2708b01cc3f65231663b6466f7 (patch)
treef3b21e053a873cafe90223b45a1addf5c6e6863d
parent000d8eba12bf082d5b18f6e4ec159d80d973b85d (diff)
[FIX] account_voucher: filter suppliers in voucher selection
[FIX] account_voucher: filter suppliers in voucher selection Closes #12440
-rw-r--r--addons/account_voucher/voucher_payment_receipt_view.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account_voucher/voucher_payment_receipt_view.xml b/addons/account_voucher/voucher_payment_receipt_view.xml
index e4c05fc1c9b..610bc5447cf 100644
--- a/addons/account_voucher/voucher_payment_receipt_view.xml
+++ b/addons/account_voucher/voucher_payment_receipt_view.xml
@@ -141,7 +141,7 @@
<field name="type" invisible="True"/>
<group>
<group>
- <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"/>
+ <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}" domain="[('supplier','=',True)]" string="Supplier"/>
<field name="currency_id" invisible="1"/>
<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"}'/>
<field name="journal_id"