mirror of
https://gitlab.com/datalifeit/trytond-stock_party_warehouse
synced 2023-12-14 06:32:52 +01:00
19 lines
557 B
Python
19 lines
557 B
Python
# The COPYRIGHT file at the top level of this repository contains the full
|
|
# copyright notices and license terms.
|
|
from trytond.pool import PoolMeta
|
|
|
|
|
|
class Location(metaclass=PoolMeta):
|
|
__name__ = 'stock.location'
|
|
|
|
@classmethod
|
|
def __setup__(cls):
|
|
super().__setup__()
|
|
cls.parent.states.pop('invisible')
|
|
|
|
@classmethod
|
|
def _parent_domain(cls):
|
|
# TODO: Remove parent field in 6.2 version
|
|
parent_domain = super()._parent_domain()
|
|
parent_domain['warehouse'].append('view')
|
|
return parent_domain
|