You may replace Field('product', db.product), by Field('product',
'reference product'),It may help and it is a better practice. Richard On Mon, Mar 23, 2015 at 9:16 AM, KPlusPlus <[email protected]> wrote: > Thanks for noticing that , I've fixed it , but the problem still persist > and it indecats it's in format='%(name)s') > > > Here is the updated code > # -*- coding: utf-8 -*- > #Products Table > db.define_table=('product', > Field('name', notnull=True, unique=True), > Field('prices', 'double'), > Field('description', 'text'), > Field('image', 'upload'), > Field('sortable', 'integer'), > auth.signature, > format='%(name)s') > > #Sales Table > db.define_table=('sale', > Field('invoice'), > Field('creditcard'), > Field('buyer', db.auth_user), > Field('product', db.product), > Field('quantity', 'integer'), > Field('price', 'double'), > Field('shipped', 'boolean', default=False), > auth.signature) > > #session.cart = session.cart or {} > > > > > On Monday, March 23, 2015 at 10:01:33 AM UTC+3, Nico de Groot wrote: >> >> It's a typing error: field is misspelled as filed... > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > 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/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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/d/optout.

