Add static legal terms on company for invoice and sale

Add product_supplier_code on purchase.order.line
This commit is contained in:
Alexis de Lattre
2021-12-03 17:27:03 +00:00
parent 40b79890fe
commit 6d496ba302
10 changed files with 106 additions and 0 deletions

View File

@@ -2,3 +2,4 @@ from . import sale_order
from . import account_move
from . import product_template
from . import res_partner
from . import res_company

View File

@@ -0,0 +1,13 @@
# Copyright 2021 Akretion France (https://akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResCompany(models.Model):
_inherit = 'res.company'
# Similar to the field static_invoice_terms in account_usability
static_sale_terms = fields.Text(
translate=True, string="Legal Terms on Quotation")