Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

store=False brings error

Subscribe

Get notified when there's activity on this post

This question has been flagged
store=False
6398 Views
Avatar
Mathieu Laflamme

I added this field in res.partner:

 stock_owner_has_changed = fields.Boolean('Stock Owner Has Changed',
                                             store=False,
                                             help="This is to know if the change of stock owner was done on the UX")

I don't want to store this field in DB so I put store=False. But it crash... Set it to True and it runs!

Error:

2015-08-04 17:19:36,026 5288 INFO ? openerp.addons.report.models.report: Will use the Wkhtmltopdf binary at C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe
2015-08-04 17:19:37,295 5288 INFO ? openerp.http: HTTP Configuring static files
2015-08-04 17:19:45,240 5288 INFO odoo_8a openerp.modules.loading: loading 61 modules...
2015-08-04 17:19:53,072 5288 INFO odoo_8a openerp.modules.module: module isolate_stock_owners: creating or updating database tables
2015-08-04 17:19:53,217 5288 INFO odoo_8a openerp.addons.auth_crypt.auth_crypt: Hashing passwords, may be slow for databases with many users...
2015-08-04 17:19:53,391 5288 INFO odoo_8a openerp.modules.loading: loading isolate_stock_owners/views.xml
2015-08-04 17:19:54,377 5288 CRITICAL odoo_8a openerp.service.server: Failed to initialize database `odoo_8a`.
Traceback (most recent call last):
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\service\server.py", line 929, in preload_registries
    registry = RegistryManager.new(dbname, update_module=update_module)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\modules\registry.py", line 370, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\modules\loading.py", line 351, in load_modules
    force, status, report, loaded_modules, update_module)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\modules\loading.py", line 255, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\modules\loading.py", line 176, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='data')
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\modules\loading.py", line 118, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\tools\convert.py", line 901, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\tools\convert.py", line 987, in convert_xml_import
    obj.parse(doc.getroot(), mode=mode)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\tools\convert.py", line 853, in parse
    self._tags[rec.tag](self.cr, rec, n, mode=mode)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\tools\convert.py", line 763, in _tag_record
    id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\addons\base\ir\ir_model.py", line 1050, in _update
    model_obj.write(cr, uid, [res_id], values, context=context)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\addons\base\ir\ir_ui_view.py", line 282, in write
    context)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\api.py", line 363, in old_api
    result = method(recs, *args, **kwargs)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\models.py", line 3775, in write
    self._write(old_vals)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\api.py", line 239, in wrapper
    return new_api(self, *args, **kwargs)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\api.py", line 546, in new_api
    result = method(self._model, cr, uid, self.ids, *args, **kwargs)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\models.py", line 3946, in _write
    recs._validate_fields(vals)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\api.py", line 239, in wrapper
    return new_api(self, *args, **kwargs)
  File "C:\Users\laflammm\Desktop\GitHub\odoo\openerp\models.py", line 1270, in _validate_fields
    raise ValidationError('\n'.join(errors))
ParseError: "ValidateError
Field(s) `arch` failed against a constraint: Invalid view definition

Error details:
_description_searchable" while parsing file:///C:/Users/laflammm/Desktop/GitHub/odoo/addons_tc/isolate_stock_owners/views.xml:27, near
<record model="ir.ui.view" id="partner_stock_owner_inherit">
            <field name="name">partner.stock.owner.inherit</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <data><field name="user_id" position="after">
                    <field name="stock_owner_id" attrs="{'readonly':[('parent_id','!=',False)],'invisible':[('stock_owner','=',True)]}"/>                  
                </field>
                <xpath expr="//page[@name='sales_purchases']//field[@name='supplier']" position="after">
                    <field name="stock_owner"/>               
                </xpath>
            </data></field>
        </record>

The error is not funny, refering to my view that I didn't even touched.

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
How can Odoo store field's data if the field has property "Store=False" ?
field store=False
Avatar
Avatar
Avatar
4
Mar 20
7669
Is there any other way to access fields function that is not saved i.e it's store behaviour is False? Solved
fields.function store=False
Avatar
Avatar
1
Jun 15
5299
Create search function for non-stored compute function that depends on search_count
store=False computed-fields searchdomain
Avatar
Avatar
Avatar
2
Mar 24
4043
Store Related field to use it in domain, search view ...etc Solved
related_fields store=False store=True
Avatar
1
Dec 23
5646
how to save functional fields in openerp7?
store openerp7 function_field store=False
Avatar
0
Jul 19
3496
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now