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
    • Artificial Intelligence
    • 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
    • Property 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
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

Restore accidentally deleted 'valuation' field in Odoo 8

Subscribe

Get notified when there's activity on this post

This question has been flagged
salesviewsproductxmlodooV8
5390 Views
Avatar
Jitendra Varma

Accidentally deleted a valuation field from xml. Unable to figure out how to fix it?

I have done inventory valuation for stockable product. And accidentally I have deleted its reference form products view. I am not able to remove the warehouse app and install if again it gives the below error. Its been over a week to figure out how to fix it and I don't want to drop the table. Looks like the answer is in the error its self but unable to figure it out.


Odoo Server Error

Traceback (most recent call last):

  File "/opt/odoo/odoo/openerp/http.py", line 546, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/opt/odoo/odoo/openerp/http.py", line 583, in dispatch

    result = self._call_function(**self.params)

  File "/opt/odoo/odoo/openerp/http.py", line 319, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/opt/odoo/odoo/openerp/service/model.py", line 118, in wrapper

    return f(dbname, *args, **kwargs)

  File "/opt/odoo/odoo/openerp/http.py", line 316, in checked_call

    return self.endpoint(*a, **kw)

  File "/opt/odoo/odoo/openerp/http.py", line 812, in __call__

    return self.method(*args, **kw)

  File "/opt/odoo/odoo/openerp/http.py", line 412, in response_wrap

    response = f(*args, **kw)

  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 948, in call_button

    action = self._call_kw(model, method, args, {})

  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 936, in _call_kw

    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

  File "/opt/odoo/odoo/openerp/api.py", line 268, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/odoo/odoo/openerp/addons/base/module/module.py", line 447, in button_immediate_install

    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)

  File "/opt/odoo/odoo/openerp/api.py", line 268, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/odoo/odoo/openerp/addons/base/module/module.py", line 495, in _button_immediate_function

    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)

  File "/opt/odoo/odoo/openerp/modules/registry.py", line 370, in new

    openerp.modules.load_modules(registry._db, force_demo, status, update_module)

  File "/opt/odoo/odoo/openerp/modules/loading.py", line 355, in load_modules

    loaded_modules, update_module)

  File "/opt/odoo/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 "/opt/odoo/odoo/openerp/modules/loading.py", line 176, in load_module_graph

    _load_data(cr, module_name, idref, mode, kind='data')

  File "/opt/odoo/odoo/openerp/modules/loading.py", line 118, in _load_data

    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)

  File "/opt/odoo/odoo/openerp/tools/convert.py", line 897, in convert_file

    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)

  File "/opt/odoo/odoo/openerp/tools/convert.py", line 983, in convert_xml_import

    obj.parse(doc.getroot(), mode=mode)

  File "/opt/odoo/odoo/openerp/tools/convert.py", line 849, in parse

    self._tags[rec.tag](self.cr, rec, n, mode=mode)

  File "/opt/odoo/odoo/openerp/tools/convert.py", line 759, 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 "/opt/odoo/odoo/openerp/api.py", line 268, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/odoo/odoo/openerp/addons/base/ir/ir_model.py", line 1069, in _update

    res_id = model_obj.create(cr, uid, values, context=context)

  File "/opt/odoo/odoo/openerp/api.py", line 268, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 263, in create

    context=context)

  File "/opt/odoo/odoo/openerp/api.py", line 268, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/odoo/odoo/openerp/api.py", line 372, in old_api

    result = method(recs, *args, **kwargs)

  File "/opt/odoo/odoo/openerp/models.py", line 4101, in create

    record = self.browse(self._create(old_vals))

  File "/opt/odoo/odoo/openerp/api.py", line 266, in wrapper

    return new_api(self, *args, **kwargs)

  File "/opt/odoo/odoo/openerp/api.py", line 508, in new_api

    result = method(self._model, cr, uid, *args, **old_kwargs)

  File "/opt/odoo/odoo/openerp/models.py", line 4298, in _create

    recs._validate_fields(vals)

  File "/opt/odoo/odoo/openerp/api.py", line 266, in wrapper

    return new_api(self, *args, **kwargs)

  File "/opt/odoo/odoo/openerp/models.py", line 1275, in _validate_fields

    raise ValidationError('\n'.join(errors))

ParseError: "ValidateError

Field(s) `arch` failed against a constraint: Invalid view definition


Error details:

Field `valuation` does not exist


Error context:

View `product.template.stock.property.form.inherit`

[view_id: 1030, xml_id: n/a, model: product.template, parent_id: 254]" while parsing /opt/odoo/odoo/addons/stock/product_view.xml:98, near

<record id="view_template_property_form" model="ir.ui.view">

            <field name="name">product.template.stock.property.form.inherit</field>

            <field name="model">product.template</field>

            <field name="inherit_id" ref="product.product_template_form_view"/>

            <field name="arch" type="xml">

                <data><group name="sale_condition" position="inside">

                    <label for="sale_delay"/>

                    <div>

                        <field name="sale_delay" attrs="{'readonly':[('sale_ok','=',False)]}" class="oe_inline" style="vertical-align:baseline"/> days

                    </div>

                </group>

                <group name="status" position="before">

                    <group string="Stock and Expected Variations" attrs="{'invisible': [('type', '=', 'service')]}" groups="base.group_user">

                        <label for="qty_available"/>

                            <div>

                                <field name="qty_available" class="oe_inline"/>

                                <button name="%(action_view_change_product_quantity)d" string="&#8658; Update" type="action" class="oe_link"/>

                            </div>

                        <label for="incoming_qty"/>

                            <div>

                                <field name="incoming_qty" class="oe_inline"/>

                                <button string="&#8658; Request Procurement" name="%(stock.act_make_procurement)d" type="action" class="oe_link"/>

                            </div>

                        <field name="virtual_available"/>

                    </group>

                </group>

                <group name="status" position="after">

                    <group name="store" string="Storage Location" attrs="{'invisible':[('type','=','service')]}">

                        <field name="loc_rack"/>

                        <field name="loc_row"/>

                        <field name="loc_case"/>

                    </group>

                </group>

                <group name="status" position="before">

                    <group name="lot" groups="stock.group_production_lot" string="Lots" attrs="{'invisible':[('type','=','service')]}">

                        <field name="track_all" groups="stock.group_production_lot"/>

                        <field name="track_incoming" groups="stock.group_production_lot" attrs="{'invisible': [('track_all', '=', True)]}"/>

                        <field name="track_outgoing" groups="stock.group_production_lot" attrs="{'invisible': [('track_all', '=', True)]}"/>

                    </group>

                </group>

                <group name="weight" position="before">

                    <group name="store" groups="stock.group_locations" string="Counter-Part Locations Properties" attrs="{'invisible':[('type','=','service')]}">

                        <field name="property_stock_procurement" domain="[('usage','=','procurement')]"/>

                        <field name="property_stock_production" domain="[('usage','=','production')]"/>

                        <field name="property_stock_inventory" domain="[('usage','=','inventory')]"/>

                    </group>

                </group>

                <field name="product_manager" position="attributes">

                    <attribute name="context" translation="off">{'default_groups_ref': ['base.group_user', 'base.group_sale_manager', 'stock.group_stock_manager']}</attribute>

                </field>

                <group name="procurement_uom" position="after">

                   <group string="Supply Chain Information" attrs="{'invisible': [('type', '=', 'service')]}" groups="base.group_user">

                       <field name="route_ids" widget="many2many_checkboxes"/>

                   </group>

                </group>

            </data></field>

        </record>

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
when I add a new field before res.partner street , I never get a label why? Solved
partner views xml odooV8
Avatar
Avatar
1
Feb 17
4701
Problem with template.xml selection tag on a new many2one field
views product xml selection odoo9
Avatar
Avatar
1
Apr 21
10076
How to add the TreeView from stock.location to a notebook page inside the product FormView?
stock views module product odooV8
Avatar
Avatar
1
May 19
5073
How to add stock available for products in the product template of ODOO?
product xml template js odooV8
Avatar
Avatar
1
Apr 16
8624
How do I load a large set of XML registers in Odoo v8?
product xml xmlrpc importing odooV8
Avatar
Avatar
4
Dec 15
6178
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 Svenska ภาษาไทย 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