On 18 mar, 00:11, "mr.freeze" <[email protected]> wrote: > I think you need to do: > > def sales(): > rows = db(db.sales.id>0).select() > rows = rows.setvirtualfields(sales=Sales()) > return dict(rows=rows) > > And remove this: > db.sales.virtualfields.append(Sales())
works well, but what I meant is that you must write the name of the table: return self.****sales****.item_total * self.****sales****.tax_percentage if not set, the same error occurs Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

