In France, we like to display the civility (title) in front of the customer's name like this:
Mr. and Mrs. LASTNAME First name and First name
I want this to appear in address blocks on quotes and invoices in V14
How to ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
In France, we like to display the civility (title) in front of the customer's name like this:
Mr. and Mrs. LASTNAME First name and First name
I want this to appear in address blocks on quotes and invoices in V14
How to ?
For that you can override the name_get method in the 'res,partner' model to return the name plus the sur name if you have a field that contains the Mr. or Mrs. values. for example
class ResPartnerInherit(models.Model):
_inherit = 'res.partner'
sur_name = fields.Selection([('mr','Mr.'),('mrs','Mrs.')])
def name_get(self):
result = []
for rec in self:
result.append((rec.id, '%s - %s' % (rec.sur_name,rec.name)))
return result
Happy to help :) an upvote will be awesome
Create an account today to enjoy exclusive features and engage with our awesome community!
RegistráciaRelated Posts | Replies | Zobrazenia | Aktivita | |
---|---|---|---|---|
|
3
jan 20
|
6791 | ||
|
0
jan 16
|
3678 | ||
|
1
mar 15
|
4937 | ||
|
2
okt 23
|
2584 | ||
|
0
mar 15
|
4926 |