mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
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:
committed by
Pedro M. Baeza
parent
20eacf0447
commit
aacd1899ba
@@ -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):
|
||||
|
||||
@@ -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')]"/>
|
||||
|
||||
Reference in New Issue
Block a user