summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqdp-odoo <qdp@odoo.com>2016-09-29 21:40:57 +0200
committerqdp-odoo <qdp@odoo.com>2016-09-29 21:40:57 +0200
commit45e2a6abdcd456ece27b92b5bc01b6da9df91dd0 (patch)
tree84e874ea5f8295e390ad4f73037d720f0c776855
parent4b11e3e3a5f42fe1842b0b7405cac4908ee2dd97 (diff)
[FIX] account: fix bad domain on payment form view, preventing to validate a manual supplier payment
-rw-r--r--addons/account/views/account_payment_view.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account/views/account_payment_view.xml b/addons/account/views/account_payment_view.xml
index 1f93e62126e..dfa029a8c67 100644
--- a/addons/account/views/account_payment_view.xml
+++ b/addons/account/views/account_payment_view.xml
@@ -99,8 +99,8 @@
<field name="payment_type" widget="radio" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
<field name="partner_type" nolabel="1" widget="selection" string="" attrs="{'required': [('payment_type', 'in', ('inbound', 'outbound'))], 'invisible': [('payment_type', 'not in', ('inbound', 'outbound'))], 'readonly': [('state', '!=', 'draft')]}"/>
<div>
- <field name="partner_id" nolabel="1" attrs="{'required': [('payment_type', '=', 'outbound')], 'invisible': [('payment_type', '!=', 'outbound')], 'readonly': [('state', '!=', 'draft')]}" context="{'default_is_company': True, 'default_customer': True}" domain = "[('customer', '=', True)]"/>
- <field name="partner_id" nolabel="1" attrs="{'required': [('payment_type', '=', 'inbound')], 'invisible': [('payment_type', '!=', 'inbound')], 'readonly': [('state', '!=', 'draft')]}" context="{'default_is_company': True, 'default_supplier': True}" domain = "[('supplier', '=', True)]"/>
+ <field name="partner_id" nolabel="1" attrs="{'required': [('partner_type', '=', 'customer')], 'invisible': [('partner_type', '!=', 'customer')], 'readonly': [('state', '!=', 'draft')]}" context="{'default_is_company': True, 'default_customer': True}" domain = "[('customer', '=', True)]"/>
+ <field name="partner_id" nolabel="1" attrs="{'required': [('partner_type', '=', 'supplier')], 'invisible': [('partner_type', '!=', 'supplier')], 'readonly': [('state', '!=', 'draft')]}" context="{'default_is_company': True, 'default_supplier': True}" domain = "[('supplier', '=', True)]"/>
</div>
<field name="journal_id" widget="selection" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
<field name="destination_journal_id" widget="selection" attrs="{'required': [('payment_type', '=', 'transfer')], 'invisible': [('payment_type', '!=', 'transfer')], 'readonly': [('state', '!=', 'draft')]}"/>