Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
3
sale_commercial_partner/models/__init__.py
Executable file
3
sale_commercial_partner/models/__init__.py
Executable file
@@ -0,0 +1,3 @@
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import sale_order
|
||||
17
sale_commercial_partner/models/sale_order.py
Executable file
17
sale_commercial_partner/models/sale_order.py
Executable file
@@ -0,0 +1,17 @@
|
||||
# Copyright 2016-2022 Akretion France (http://www.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 SaleOrder(models.Model):
|
||||
_inherit = "sale.order"
|
||||
|
||||
commercial_partner_id = fields.Many2one(
|
||||
comodel_name="res.partner",
|
||||
string="Customer Entity",
|
||||
related="partner_id.commercial_partner_id",
|
||||
store=True,
|
||||
index=True,
|
||||
)
|
||||
Reference in New Issue
Block a user