mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
14 lines
432 B
Python
14 lines
432 B
Python
# Copyright 2022 Comunitea Servicios Tecnológicos S.L. (https://comunitea.com)
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
|
|
|
from odoo import models
|
|
|
|
|
|
class AccountMove(models.Model):
|
|
_inherit = "account.move"
|
|
|
|
def _prepare_asset_vals(self, aml):
|
|
res = super()._prepare_asset_vals(aml)
|
|
res.update({"pms_property_id": aml.pms_property_id or self.pms_property_id})
|
|
return res
|