* ADD module company_code * FIX doc * FIX doc * Update company_code/readme/USAGE.rst Co-Authored-By: bealdav <david.beal@akretion.com>
12 lines
276 B
ReStructuredText
12 lines
276 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())
|
|
```
|