Files
Odoo-18.0-20251222/account_invoice_transmit_method/models/transmit_method.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

27 lines
980 B
Python

# Copyright 2017-2020 Akretion France (http://www.akretion.com)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class TransmitMethod(models.Model):
_name = "transmit.method"
_description = "Transmit Method of a document"
_order = "sequence, id"
name = fields.Char(required=True, translate=True)
code = fields.Char(
copy=False,
help="Do not modify the code of an existing Transmit Method "
"because it may be used to identify a particular transmit method.",
)
active = fields.Boolean(default=True)
sequence = fields.Integer(default=10)
customer_ok = fields.Boolean(string="Selectable on Customers", default=True)
supplier_ok = fields.Boolean(string="Selectable on Vendors", default=True)
_sql_constraints = [
("code_unique", "unique(code)", "This transmit method code already exists!")
]