Files
odoo-usability/company_code/readme/USAGE.rst
2021-11-26 18:57:02 +03:00

14 lines
277 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())
```