Created
May 3, 2018 14:24
-
-
Save danypr92/9e545a0fadc58a670f1d0bee4467d70e to your computer and use it in GitHub Desktop.
States required
This file contains 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