mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
new option allow to set different payment mode for the contracts generated from the sale order than the one will be used for invoices.
16 lines
438 B
Python
16 lines
438 B
Python
# Copyright 2020 ACSONE SA/NV
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResConfigSettings(models.TransientModel):
|
|
|
|
_inherit = 'res.config.settings'
|
|
|
|
specific_contract_payment_mode = fields.Boolean(
|
|
related="company_id.specific_contract_payment_mode",
|
|
string="Specific payment mode for contracts created from sale orders",
|
|
readonly=False
|
|
)
|