Skip to content

Instantly share code, notes, and snippets.

@PritishC

PritishC/update.py

Created Jan 7, 2015
Embed
What would you like to do?
Button update SaleLine
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