kalenislims/lims_analytic/lims.py

19 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']),
})