Skip to content

Instantly share code, notes, and snippets.

Created January 28, 2013 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4658581 to your computer and use it in GitHub Desktop.
Save anonymous/4658581 to your computer and use it in GitHub Desktop.
self.quantity = copy.copy(self.quantity)
if not self.quantity.on_change:
self.quantity.on_change = ['_parent_sale.product_listing']
else:
if '_parent_sale.product_listing' not in self.quantity.on_change:
self.quantity.on_change += ['_parent_sale.product_listing']
self._reset_columns()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment