mirror of
https://github.com/Kalenis/kalenislims.git
synced 2023-12-14 07:13:04 +01:00
18 lines
572 B
Python
18 lines
572 B
Python
# -*- coding: utf-8 -*-
|
|
# This file is part of lims_analytic module for Tryton.
|
|
# The COPYRIGHT file at the top level of this repository contains
|
|
# the full copyright notices and license terms.
|
|
|
|
from trytond.model import fields
|
|
from trytond.pyson import Eval
|
|
from trytond.pool import PoolMeta
|
|
|
|
|
|
class Location(metaclass=PoolMeta):
|
|
__name__ = 'stock.location'
|
|
|
|
cost_center = fields.Many2One('analytic_account.account', 'Cost center',
|
|
domain=[('type', '=', 'normal')],
|
|
states={
|
|
'invisible': ~Eval('type').in_(['storage']),
|
|
})
|