mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-25 17:52:00 +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
22
odoo-bringout-oca-brand-brand/brand/models/res_company.py
Normal file
22
odoo-bringout-oca-brand-brand/brand/models/res_company.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright 2019 ACSONE SA/NV
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
BRAND_USE_LEVEL_NO_USE_LEVEL = "no"
|
||||
BRAND_USE_LEVEL_REQUIRED_LEVEL = "required"
|
||||
|
||||
BRAND_USE_LEVEL_SELECTION = [
|
||||
(BRAND_USE_LEVEL_NO_USE_LEVEL, "Do not use brands on business document"),
|
||||
("optional", "Optional"),
|
||||
(BRAND_USE_LEVEL_REQUIRED_LEVEL, "Required"),
|
||||
]
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
_inherit = "res.company"
|
||||
|
||||
brand_use_level = fields.Selection(
|
||||
selection=BRAND_USE_LEVEL_SELECTION,
|
||||
default=BRAND_USE_LEVEL_NO_USE_LEVEL,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue