mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
19 lines
439 B
Python
19 lines
439 B
Python
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
# Copyright 2021 Xtendoo - Manuel Calero
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class StockQuant(models.Model):
|
|
_inherit = "stock.quant"
|
|
|
|
expiration_date = fields.Datetime(
|
|
related="lot_id.expiration_date",
|
|
)
|
|
use_date = fields.Datetime(
|
|
related="lot_id.use_date",
|
|
)
|
|
alert_date = fields.Datetime(
|
|
related="lot_id.alert_date",
|
|
)
|