20 lines
534 B
Python
20 lines
534 B
Python
|
from trytond.model import fields
|
||
|
from trytond.pool import PoolMeta
|
||
|
|
||
|
__all__ = ['Configuration']
|
||
|
|
||
|
|
||
|
class Configuration:
|
||
|
__metaclass__ = PoolMeta
|
||
|
__name__ = 'production.configuration'
|
||
|
check_state_operation = fields.Selection([
|
||
|
(None, ''),
|
||
|
('user_warning', 'User Warning'),
|
||
|
('user_error', 'User Error'),
|
||
|
], 'Check State Operation',
|
||
|
help='Check state operation when done a production')
|
||
|
|
||
|
@staticmethod
|
||
|
def default_check_state_operation():
|
||
|
return 'user_error'
|