Created
May 3, 2018 14:24
States required
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Contract: | |
""" | |
This overwrite of class Contract extend functionality of Contract | |
vanilla model. | |
Add the necessary functions to represent a ISP Contract. | |
""" | |
__metaclass__ = PoolMeta | |
__name__ = 'contract' | |
equipment_received = fields.Boolean('Equipment Received', states={ | |
'required': Eval('state') in ['activation_scheduled', 'introduced'] | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Debes utilizar el operador in de PYSON y no el estandard de python