From aacd1899ba10a7c5d4ad71c37780c784a951290c Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 22 May 2018 16:47:10 +0200 Subject: [PATCH] Several small usability improvements - when manually encoding a payment line, get company currency as default currency - Search on payment order numbers - Direct search on bank journal name in payment orders - remove widget="selection" on account.payement.mode : this object is rarely modified, so widget='selection' is not a time saver, but we miss the HTML link, which can be pretty convenient to check the configuration. --- account_payment_order/models/account_payment_line.py | 2 +- account_payment_order/views/account_payment_order.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/account_payment_order/models/account_payment_line.py b/account_payment_order/models/account_payment_line.py index eddfacb5d..b24c03a70 100644 --- a/account_payment_order/models/account_payment_line.py +++ b/account_payment_order/models/account_payment_line.py @@ -118,7 +118,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 c09d692a3..6d268f6c4 100644 --- a/account_payment_order/views/account_payment_order.xml +++ b/account_payment_order/views/account_payment_order.xml @@ -97,7 +97,8 @@ account.payment.order - + +