Update USAGE.rst

This commit is contained in:
David Beal
2018-12-13 15:59:18 +01:00
committed by GitHub
parent fe06c37cd5
commit 1607dd6597

View File

@@ -3,9 +3,11 @@ write this in your custom code according to your model
```python ```python
class ResPartner(models.Model): class ResPartner(models.Model):
_inherit = 'res.partner' _inherit = 'res.partner'
def name_get(self): def name_get(self):
return self.env['res.company']._add_company_code(super()) return self.env['res.company']._add_company_code(super())
``` ```