mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
18 lines
549 B
Python
18 lines
549 B
Python
# Copyright 2023 Domatix - Carlos Martínez
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
from odoo import models
|
|
|
|
|
|
class SaleOrderLine(models.Model):
|
|
_inherit = "sale.order.line"
|
|
|
|
def get_subscription_line_values(self):
|
|
return {
|
|
"product_id": self.product_id.id,
|
|
"name": self.product_id.name,
|
|
"product_uom_qty": self.product_uom_qty,
|
|
"price_unit": self.price_unit,
|
|
"discount": self.discount,
|
|
"price_subtotal": self.price_subtotal,
|
|
}
|