[FIX] account: invoice partner name
Before this commit, in the list of invoices the customers were displayed using only their names and not the company that they belong. For instance, if 'Brandon Freeman' is part of the 'Azure Interior' company, only his name was shown. Now, the company names is also shown. In our example, the customer will be displayed as : 'Azure Interior, Brandon Freeman'. This behaviour was already the case in version 12. opw-2179722 closes odoo/odoo#43824 X-original-commit: ca57cdeb80729a3e3b4bc2cc91376b625e1934ed Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
This commit is contained in:
@@ -1109,7 +1109,7 @@ class AccountMove(models.Model):
|
||||
@api.depends('partner_id', 'invoice_source_email')
|
||||
def _compute_invoice_partner_display_info(self):
|
||||
for move in self:
|
||||
vendor_display_name = move.partner_id.name
|
||||
vendor_display_name = move.partner_id.display_name
|
||||
if not vendor_display_name:
|
||||
if move.invoice_source_email:
|
||||
vendor_display_name = _('@From: ') + move.invoice_source_email
|
||||
|
||||
Reference in New Issue
Block a user