Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
27
sale_quotation_number/models/res_company.py
Executable file
27
sale_quotation_number/models/res_company.py
Executable file
@@ -0,0 +1,27 @@
|
||||
# © 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,
|
||||
)
|
||||
Reference in New Issue
Block a user