Created
January 7, 2015 08:36
-
-
Save PritishC/b6f473318b526f451c63 to your computer and use it in GitHub Desktop.
Button update SaleLine
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
cls._buttons.update({ | |
'update_product': { | |
'invisible': Eval('_parent_sale', {}).get('state').in_( | |
['processing', 'cancel', 'done'] | |
), | |
'readonly': ~Eval('_parent_sale', {}).get('state').in_( | |
['draft', 'confirmed', 'quotation'] | |
), | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment