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.
This commit is contained in:
Alexis de Lattre
2018-05-22 16:47:10 +02:00
committed by Pedro M. Baeza
parent 20eacf0447
commit aacd1899ba
2 changed files with 3 additions and 2 deletions

View File

@@ -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):

View File

@@ -97,7 +97,8 @@
<field name="model">account.payment.order</field>
<field name="arch" type="xml">
<search string="Search Payment Orders">
<field name="description"/>
<field name="description" filter_domain="['|', ('name', 'ilike', self), ('description', 'ilike', self)]" string="Name or Description"/>
<field name="journal_id"/>
<filter name="draft" string="Draft" domain="[('state', '=', 'draft')]"/>
<filter name="open" string="Confirmed" domain="[('state', '=', 'open')]"/>
<filter name="generated" string="File Generated" domain="[('state', '=', 'generated')]"/>