Files
odoo-usability/company_code/readme/USAGE.rst
2018-12-13 15:59:18 +01:00

14 lines
278 B
ReStructuredText

To display your company code with `name_get()` just
write this in your custom code according to your model
```python
class ResPartner(models.Model):
_inherit = 'res.partner'
def name_get(self):
return self.env['res.company']._add_company_code(super())
```