diff --git a/account_payment_mode/views/account_payment_mode.xml b/account_payment_mode/views/account_payment_mode.xml index aa67cb2ec..a7ecd70f2 100644 --- a/account_payment_mode/views/account_payment_mode.xml +++ b/account_payment_mode/views/account_payment_mode.xml @@ -11,12 +11,11 @@ - + + attrs="{'invisible': [('bank_account_link', '!=', 'fixed')], 'required': [('bank_account_link', '=', 'fixed')]}"/> diff --git a/account_payment_order/models/account_payment_line.py b/account_payment_order/models/account_payment_line.py index a938cc7c6..d01d4ff31 100644 --- a/account_payment_order/models/account_payment_line.py +++ b/account_payment_order/models/account_payment_line.py @@ -119,7 +119,7 @@ class AccountPaymentLine(models.Model): self.partner_id = False self.partner_bank_id = False self.amount_currency = 0.0 - self.currency_id = False + self.currency_id = self.env.user.company_id.currency_id self.communication = False def invoice_reference_type2communication_type(self): diff --git a/account_payment_order/views/account_payment_order.xml b/account_payment_order/views/account_payment_order.xml index 5d699245e..83bd71e0c 100644 --- a/account_payment_order/views/account_payment_order.xml +++ b/account_payment_order/views/account_payment_order.xml @@ -98,6 +98,8 @@ account.payment.order + +