[IMP] account: Display 'Draft Invoice' instead of false on name_get
name_get() override when payment in draft display the result false. screenshot : https://drive.google.com/file/d/1dT22ysXmSOJvXMhzhyh_0tVW9z_v3b-s/view?usp=drivesdk closes odoo/odoo#27537
This commit is contained in:
committed by
Yannick Tivisse
parent
e12229f1d7
commit
3272d2a384
@@ -392,6 +392,10 @@ class account_payment(models.Model):
|
||||
_description = "Payments"
|
||||
_order = "payment_date desc, name desc"
|
||||
|
||||
@api.multi
|
||||
def name_get(self):
|
||||
return [(payment.id, payment.name or _('Draft Payment')) for payment in self]
|
||||
|
||||
@api.multi
|
||||
@api.depends('move_line_ids.reconciled')
|
||||
def _get_move_reconciled(self):
|
||||
|
||||
Reference in New Issue
Block a user