mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-24 10:32:06 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
27
odoo-bringout-oca-brand-brand/brand/readme/USAGE.md
Normal file
27
odoo-bringout-oca-brand-brand/brand/readme/USAGE.md
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
To use this module, you need to:
|
||||
|
||||
1. Go to Settings \> General Settings
|
||||
2. Select the brand use level
|
||||
3. Go to Settings \> Users & Companies \> Brands
|
||||
4. Add a new brand
|
||||
5. Install one of branding module (e.g. account_brand)
|
||||
6. Based on your choice for the brand use level, you will see a new
|
||||
field added to the branded object
|
||||
|
||||
To make a branded object, you need to:
|
||||
|
||||
1. Inherit from the res.brand.mixin
|
||||
``` python
|
||||
class YourModel(models.Model):
|
||||
_name = 'your.model'
|
||||
_inherit = ['your.model', 'res.brand.mixin']
|
||||
```
|
||||
|
||||
2. Add the brand field to the object form or tree view. The mixin will
|
||||
add the brand use level field automatically to the view and set the
|
||||
modifiers to the brand field. This will define its visibility and if
|
||||
it's required or not.
|
||||
|
||||
You can refer to the
|
||||
[account_brand](https://github.com/OCA/brand/blob/18.0/account_brand).
|
||||
for more details.
|
||||
Loading…
Add table
Add a link
Reference in a new issue