Files
Odoo-18.0-20251222/sale_quotation_number/models/res_company.py
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

28 lines
800 B
Python
Executable File

# © 2010-2012 Andy Lu <andy.lu@elico-corp.com> (Elico Corp)
# © 2013 Agile Business Group sagl (<http://www.agilebg.com>)
# © 2017 valentin vinagre <valentin.vinagre@qubiq.es> (QubiQ)
# © 2020 Manuel Regidor <manuel.regidor@sygel.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
keep_name_so = fields.Boolean(
string="Use Same Enumeration",
help="If this is unchecked, quotations use a different sequence from "
"sale orders",
default=True,
)
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
keep_name_so = fields.Boolean(
related="company_id.keep_name_so",
readonly=False,
)