ADD 12.0 module company_code (#77)

* ADD module company_code

* FIX doc

* FIX doc

* Update company_code/readme/USAGE.rst

Co-Authored-By: bealdav <david.beal@akretion.com>
This commit is contained in:
David Beal
2018-12-12 19:57:22 +01:00
committed by GitHub
parent 79d8f6edc5
commit fe06c37cd5
10 changed files with 573 additions and 0 deletions

View File

@@ -0,0 +1 @@
David Beal <david.beal@akretion.com>

View File

@@ -0,0 +1,2 @@
- add `code` field to company.
- update name_get with this field

View File

@@ -0,0 +1,11 @@
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())
```