mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Better strings
This commit is contained in:
committed by
Pedro M. Baeza
parent
22cd2f3c40
commit
062fe64acf
@@ -163,8 +163,9 @@ class PaymentOrder(models.Model):
|
||||
for paydict in group_paylines.values():
|
||||
# Block if a bank payment line is <= 0
|
||||
if paydict['total'] <= 0:
|
||||
raise exceptions.Warning(
|
||||
_("The amount for Partner '%s' is negative (%.2f) !")
|
||||
raise exceptions.Warning(_(
|
||||
"The amount for Partner '%s' is negative "
|
||||
"or null (%.2f) !")
|
||||
% (paydict['paylines'][0].partner_id.name,
|
||||
paydict['total']))
|
||||
vals = self._prepare_bank_payment_line(paydict['paylines'])
|
||||
|
||||
@@ -34,8 +34,8 @@ class PaymentOrderCreate(models.TransientModel):
|
||||
invoice = fields.Boolean(
|
||||
string='Linked to an Invoice or Refund')
|
||||
date_type = fields.Selection([
|
||||
('due', 'Due'),
|
||||
('move', 'Move'),
|
||||
('due', 'Due Date'),
|
||||
('move', 'Move Date'),
|
||||
], string="Type of Date Filter", required=True)
|
||||
duedate = fields.Date(required=False)
|
||||
move_date = fields.Date(
|
||||
|
||||
Reference in New Issue
Block a user