Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
1
sale_order_line_price_history/models/__init__.py
Executable file
1
sale_order_line_price_history/models/__init__.py
Executable file
@@ -0,0 +1 @@
|
||||
from . import sale_order_line
|
||||
11
sale_order_line_price_history/models/sale_order_line.py
Executable file
11
sale_order_line_price_history/models/sale_order_line.py
Executable file
@@ -0,0 +1,11 @@
|
||||
# Copyright 2021 Tecnativa - David Vidal
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class SaleOrderLine(models.Model):
|
||||
_inherit = "sale.order.line"
|
||||
|
||||
# In core this a related field. We need to trigger its value on view, so we can
|
||||
# have it even when we're in a NewId
|
||||
order_partner_id = fields.Many2one(depends=["product_id"])
|
||||
Reference in New Issue
Block a user