mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
20 lines
579 B
Python
20 lines
579 B
Python
# Copyright 2019 Camptocamp SA
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
|
|
|
|
from odoo import api, fields, models
|
|
|
|
|
|
class StockMove(models.Model):
|
|
_inherit = "stock.move"
|
|
|
|
location_move = fields.Boolean(
|
|
string="Part of move location",
|
|
help="Whether this move is a part of stock_location moves",
|
|
)
|
|
|
|
@api.depends("location_move")
|
|
def _compute_show_details_visible(self):
|
|
super()._compute_show_details_visible()
|
|
for move in self.filtered(lambda x: x.location_move):
|
|
move.show_details_visible = True
|