Update USAGE.rst
This commit is contained in:
@@ -3,9 +3,11 @@ 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())
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user