Better strings

This commit is contained in:
Alexis de Lattre
2016-01-27 12:09:45 +01:00
committed by Pedro M. Baeza
parent 22cd2f3c40
commit 062fe64acf
2 changed files with 5 additions and 4 deletions

View File

@@ -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'])

View File

@@ -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(