>
> db(db.product.id==key).update(quantity=db.product.quantity -
> value)
Here you probably want:
db(db.product.id==key).update(quantity=db.product(key).quantity - value)
db.product.quantity is a Field object, but you want to get the value of
that field for the particular record, which is db.product(key).quantity.
Anthony
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.