Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

ValueError: Invalid field 'is_template' in leaf "<osv.ExtendedLeaf: ('is_template', '=', True) on sale_order (ctx: )>" How can i

to
By
samba
on 8/13/14, 10:22 AM 3,175 views

I have created a Database with openerp-7. I have installed many csutom modules in this DB. Rescently i have downloaded odoo-7.0. When i click on sales menu, i am getting this error. Please help me.

download and install this module, it will resolve that issue. quotation_template

Kitsikpui Elliot Elikplim
on 1/22/15, 12:52 PM
1
klacus
On 8/17/14, 2:20 AM

Here is a methode to patch your system if any field is missing. I used this offen before :-)

 

1. create new folder in your addons. Nem like repair_temp

2. create a 3 new file.

- __init.__.py

 import sale

- openerp.py

{
    "name" : "Missing field",
    "version" : "0.1",
    "author" : "You name",
    "website" : "",
    "category" : "Generic Modules/Others",
    "depends" : ["base",'sale'],
    "description" : """repair missing field""",
    "init_xml" : [],
    "demo_xml" : [],
    'update_xml': [],
    "images" : [],   
    "installable": True
}

- sale.py

class sale_order(osv.osv):

    _name = 'sale_order'
    _inherit = 'sale_order'
    _columns = {

                'is_template':fields.boolean('Template?'), 
               
            }    
   

sale_order()    

3. Install your patch module

>refresh the modules list in technical section, or Settings

Install your new module, which name must be the folder name.

Please note I didn't test it, just wrote down, please note that I use 6.1 so may it not works as well in 7.0 or 8.0.  if you have any problem, please comment the trouble. U can get more info about the system if you start the Erp with --debug key.

 

 

1
Abegail Sanchez
On 8/14/14, 12:25 AM

Check if you have is_template field in that model or that field doesn't exist.

Thankyou Abegail, the field is_template Not exist! What i have to do now?. How can i add that field in sales_order

samba
on 8/16/14, 1:29 AM

I have installed Sales module with odoo-7.0 code. There is no "is_template" in sales_order table

samba
on 8/16/14, 1:42 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 8/13/14, 10:22 AM
Seen: 3175 times
Last updated: 3/16/15, 8:10 AM