Odoo Help


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

on 8/13/14, 10:22 AM 5,267 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
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 = {



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.



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

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

on 8/16/14, 1:42 AM

Ankit H Gandhi(AHG)

--Ankit H Gandhi(AHG)--

| 6 5 6
Baroda, India
--Ankit H Gandhi(AHG)--

Learning Python..

Ankit H Gandhi(AHG)
On 1/20/18, 8:25 AM

Hello Samba,

I have face same issue and I solved out that.


You need check action of that model using below query.

select name,domain,id from ir_act_window where res_model='your.modelname';

Now update domain field value with remove unnecessary domain condition 

update ir_act_window set domain='[new condition]' where id=Give id;

Hope above solution will be help

Best Thanks,

Ankit H Gandhi.

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 8/13/14, 10:22 AM
Seen: 5267 times
Last updated: 1/20/18, 8:25 AM