Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Community: Framework

by
Skillteam, Houssine BAKKALI
- 04/28/2016 06:19:57
Omar,

reposting the same question again and again won't help getting an answer. I'm even tempted to delete mails from you as soon as they reach my mailbox...

Then you should try to understand what you're a doing cause there is probably no chance that a search method rise a sql error on a insert statement.

So once again read the documentation, you'll probably learn lot of thing and save the others time

2016-04-28 12:07 GMT+02:00 omar frikha <omarfrikha59@gmail.com>:
hi comminity,
I use this method ORM :
self.env products = [ ' product.Product '] . Search ( [ ( ' product_tmpl_id ', ' =' , self.product_template.id ) ] )

to get a product list
but this generate this error: 
openerp.sql_db: bad query: INSERT INTO "product_template" ("id", "list_price", "color", "uom_id", "sale_ok", "purchase_method", "purchase_ok", "sequence", "company_id", "track_service", "uom_po_id", "type", "sale_delay", "active", "categ_id", "rental", "tracking", "invoice_policy", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval('product_template_id_seq'), '1.00', 0, 1, true, 'receive', true, 1, 1, 'manual', 1, 'product', 7.0, true, 1, false, 'none', 'order', 1, 1, (now() at time zone 'UTC'), (now() at time zone 'UTC')) RETURNING id
Help me, please , thank you

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe