Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
19
sale_invoice_frequency/models/res_partner.py
Executable file
19
sale_invoice_frequency/models/res_partner.py
Executable file
@@ -0,0 +1,19 @@
|
||||
# Copyright 2023 Moduon Team S.L.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)
|
||||
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class ResPartner(models.Model):
|
||||
_inherit = "res.partner"
|
||||
|
||||
invoice_frequency_id = fields.Many2one(
|
||||
comodel_name="sale.invoice.frequency",
|
||||
string="Invoicing frequency",
|
||||
help="Invoicing frequency for this customer",
|
||||
)
|
||||
|
||||
@api.model
|
||||
def _commercial_fields(self):
|
||||
return super()._commercial_fields() + ["invoice_frequency_id"]
|
||||
Reference in New Issue
Block a user