SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Error:
  2. Odoo Server Error
  3.  
  4. Traceback (most recent call last):
  5.   File "/home/sbu/odoo/odoo/models.py", line 1135, in _validate_fields
  6.     check(self)
  7.   File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 367, in _check_xml
  8.     view_def = view.read_combined(['arch'])
  9.   File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 809, in read_combined
  10.     arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
  11.   File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 758, in apply_view_inheritance
  12.     source = self.apply_view_inheritance(source, view_id, model, root_id=root_id)
  13.   File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 758, in apply_view_inheritance
  14.     source = self.apply_view_inheritance(source, view_id, model, root_id=root_id)
  15.   File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 757, in apply_view_inheritance
  16.     source = self.apply_inheritance_specs(source, specs_tree, view_id)
  17.   File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 735, in apply_inheritance_specs
  18.     self.raise_view_error(_("Element '%s' cannot be located in parent view") % tag, inherit_id)
  19.   File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 573, in raise_view_error
  20.     raise ValueError(message)
  21. ValueError: Element '<xpath expr="//t[@t-set='head']">' cannot be located in parent view
  22.  
  23. Error context:
  24. View `no-js_fallback`
  25. [view_id: 568, xml_id: n/a, model: n/a, parent_id: 428]
  26.  
  27. During handling of the above exception, another exception occurred:
  28.  
  29. Traceback (most recent call last):
  30.   File "/home/sbu/odoo/odoo/tools/convert.py", line 708, in parse
  31.     self._tag_root(de)
  32.   File "/home/sbu/odoo/odoo/tools/convert.py", line 670, in _tag_root
  33.     f(rec)
  34.   File "/home/sbu/odoo/odoo/tools/convert.py", line 648, in _tag_template
  35.     return self._tag_record(record)
  36.   File "/home/sbu/odoo/odoo/tools/convert.py", line 575, in _tag_record
  37.     record = model._load_records([data], self.mode == 'update')
  38.   File "/home/sbu/odoo/odoo/models.py", line 3937, in _load_records
  39.     records = self._load_records_create([data['values'] for data in to_create])
  40.   File "/home/sbu/odoo/addons/website/models/ir_ui_view.py", line 141, in _load_records_create
  41.     records = super(View, self)._load_records_create(values)
  42.   File "/home/sbu/odoo/odoo/models.py", line 3851, in _load_records_create
  43.     return self.create(values)
  44.   File "<decorator-gen-30>", line 2, in create
  45.   File "/home/sbu/odoo/odoo/api.py", line 339, in _model_create_multi
  46.     return create(self, arg)
  47.   File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 451, in create
  48.     return super(View, self).create(vals_list)
  49.   File "<decorator-gen-3>", line 2, in create
  50.   File "/home/sbu/odoo/odoo/api.py", line 339, in _model_create_multi
  51.     return create(self, arg)
  52.   File "/home/sbu/odoo/odoo/models.py", line 3668, in create
  53.     fields[0].determine_inverse(batch_recs)
  54.   File "/home/sbu/odoo/odoo/fields.py", line 1162, in determine_inverse
  55.     getattr(records, self.inverse)()
  56.   File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 285, in _inverse_arch
  57.     view.write(data)
  58.   File "/home/sbu/odoo/addons/website/models/ir_ui_view.py", line 53, in write
  59.     return super(View, self).write(vals)
  60.   File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 469, in write
  61.     return super(View, self).write(self._compute_defaults(vals))
  62.   File "/home/sbu/odoo/odoo/models.py", line 3395, in write
  63.     self._write(store_vals)
  64.   File "/home/sbu/odoo/odoo/models.py", line 3529, in _write
  65.     self._validate_fields(vals)
  66.   File "/home/sbu/odoo/odoo/models.py", line 1139, in _validate_fields
  67.     raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e)))
  68. odoo.exceptions.ValidationError: ('Error while validating constraint\n\nElement \'<xpath expr="//t[@t-set=\'head\']">\' cannot be located in parent view\n\nError context:\nView `no-js_fallback`\n[view_id: 568, xml_id: n/a, model: n/a, parent_id: 428]', None)
  69.  
  70. During handling of the above exception, another exception occurred:
  71.  
  72. Traceback (most recent call last):
  73.   File "/home/sbu/odoo/odoo/http.py", line 631, in _handle_exception
  74.     return super(JsonRequest, self)._handle_exception(exception)
  75.   File "/home/sbu/odoo/odoo/http.py", line 325, in _handle_exception
  76.     raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  77.   File "/home/sbu/odoo/odoo/tools/pycompat.py", line 14, in reraise
  78.     raise value
  79.   File "/home/sbu/odoo/odoo/http.py", line 676, in dispatch
  80.     result = self._call_function(**self.params)
  81.   File "/home/sbu/odoo/odoo/http.py", line 357, in _call_function
  82.     return checked_call(self.db, *args, **kwargs)
  83.   File "/home/sbu/odoo/odoo/service/model.py", line 92, in wrapper
  84.     return f(dbname, *args, **kwargs)
  85.   File "/home/sbu/odoo/odoo/http.py", line 350, in checked_call
  86.     result = self.endpoint(*a, **kw)
  87.   File "/home/sbu/odoo/odoo/http.py", line 894, in __call__
  88.     return self.method(*args, **kw)
  89.   File "/home/sbu/odoo/odoo/http.py", line 522, in response_wrap
  90.     response = f(*args, **kw)
  91.   File "/home/sbu/odoo/addons/web/controllers/main.py", line 952, in call_button
  92.     action = self._call_kw(model, method, args, kwargs)
  93.   File "/home/sbu/odoo/addons/web/controllers/main.py", line 940, in _call_kw
  94.     return call_kw(request.env[model], method, args, kwargs)
  95.   File "/home/sbu/odoo/odoo/api.py", line 390, in call_kw
  96.     return _call_kw_multi(method, model, args, kwargs)
  97.   File "/home/sbu/odoo/odoo/api.py", line 377, in _call_kw_multi
  98.     result = method(recs, *args, **kwargs)
  99.   File "/home/sbu/odoo/addons/website_theme_install/models/ir_module_module.py", line 379, in button_choose_theme
  100.     next_action = self.button_immediate_install()
  101.   File "<decorator-gen-56>", line 2, in button_immediate_install
  102.   File "/home/sbu/odoo/odoo/addons/base/models/ir_module.py", line 71, in check_and_log
  103.     return method(self, *args, **kwargs)
  104.   File "/home/sbu/odoo/odoo/addons/base/models/ir_module.py", line 449, in button_immediate_install
  105.     return self._button_immediate_function(type(self).button_install)
  106.   File "/home/sbu/odoo/odoo/addons/base/models/ir_module.py", line 565, in _button_immediate_function
  107.     modules.registry.Registry.new(self._cr.dbname, update_module=True)
  108.   File "/home/sbu/odoo/odoo/modules/registry.py", line 86, in new
  109.     odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  110.   File "/home/sbu/odoo/odoo/modules/loading.py", line 434, in load_modules
  111.     loaded_modules, update_module, models_to_check)
  112.   File "/home/sbu/odoo/odoo/modules/loading.py", line 311, in load_marked_modules
  113.     perform_checks=perform_checks, models_to_check=models_to_check
  114.   File "/home/sbu/odoo/odoo/modules/loading.py", line 222, in load_module_graph
  115.     load_data(cr, idref, mode, kind='data', package=package, report=report)
  116.   File "/home/sbu/odoo/odoo/modules/loading.py", line 68, in load_data
  117.     tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
  118.   File "/home/sbu/odoo/odoo/tools/convert.py", line 732, in convert_file
  119.     convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  120.   File "/home/sbu/odoo/odoo/tools/convert.py", line 799, in convert_xml_import
  121.     obj.parse(doc.getroot())
  122.   File "/home/sbu/odoo/odoo/tools/convert.py", line 717, in parse
  123.     exc_info[2]
  124.   File "/home/sbu/odoo/odoo/tools/pycompat.py", line 13, in reraise
  125.     raise value.with_traceback(tb)
  126.   File "/home/sbu/odoo/odoo/tools/convert.py", line 708, in parse
  127.     self._tag_root(de)
  128.   File "/home/sbu/odoo/odoo/tools/convert.py", line 670, in _tag_root
  129.     f(rec)
  130.   File "/home/sbu/odoo/odoo/tools/convert.py", line 648, in _tag_template
  131.     return self._tag_record(record)
  132.   File "/home/sbu/odoo/odoo/tools/convert.py", line 575, in _tag_record
  133.     record = model._load_records([data], self.mode == 'update')
  134.   File "/home/sbu/odoo/odoo/models.py", line 3937, in _load_records
  135.     records = self._load_records_create([data['values'] for data in to_create])
  136.   File "/home/sbu/odoo/addons/website/models/ir_ui_view.py", line 141, in _load_records_create
  137.     records = super(View, self)._load_records_create(values)
  138.   File "/home/sbu/odoo/odoo/models.py", line 3851, in _load_records_create
  139.     return self.create(values)
  140.   File "<decorator-gen-30>", line 2, in create
  141.   File "/home/sbu/odoo/odoo/api.py", line 339, in _model_create_multi
  142.     return create(self, arg)
  143.   File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 451, in create
  144.     return super(View, self).create(vals_list)
  145.   File "<decorator-gen-3>", line 2, in create
  146.   File "/home/sbu/odoo/odoo/api.py", line 339, in _model_create_multi
  147.     return create(self, arg)
  148.   File "/home/sbu/odoo/odoo/models.py", line 3668, in create
  149.     fields[0].determine_inverse(batch_recs)
  150.   File "/home/sbu/odoo/odoo/fields.py", line 1162, in determine_inverse
  151.     getattr(records, self.inverse)()
  152.   File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 285, in _inverse_arch
  153.     view.write(data)
  154.   File "/home/sbu/odoo/addons/website/models/ir_ui_view.py", line 53, in write
  155.     return super(View, self).write(vals)
  156.   File "/home/sbu/odoo/odoo/addons/base/models/ir_ui_view.py", line 469, in write
  157.     return super(View, self).write(self._compute_defaults(vals))
  158.   File "/home/sbu/odoo/odoo/models.py", line 3395, in write
  159.     self._write(store_vals)
  160.   File "/home/sbu/odoo/odoo/models.py", line 3529, in _write
  161.     self._validate_fields(vals)
  162.   File "/home/sbu/odoo/odoo/models.py", line 1139, in _validate_fields
  163.     raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e)))
  164. odoo.tools.convert.ParseError: "Error while validating constraint
  165.  
  166. Element '<xpath expr="//t[@t-set='head']">' cannot be located in parent view
  167.  
  168. Error context:
  169. View `no-js_fallback`
  170. [view_id: 568, xml_id: n/a, model: n/a, parent_id: 428]
  171. None" while parsing /home/sbu/design-themes/website_animate/views/options.xml:2, near
  172. <odoo>
  173.     <template id="o_animate_options" inherit_id="website.snippet_options">
  174.         <xpath expr="." position="inside">
  175.             <t t-set="o_animate_elements" t-value="['.o_animable', 'section', 'img', '.fa', '[class^=\'col-md\']', '.btn']"/>
  176.             <t t-set="o_animate_selector" t-value="', '.join(o_animate_elements)"/>
  177.             <div data-js="o_animate" t-att-data-selector="o_animate_selector" data-exclude=".o_not-animable">
  178.                 <div class="dropdown-submenu o_anim_li">
  179.                     <a href="#" class="dropdown-item"><i class="fa fa-bolt"/>Animate</a>
  180.                     <div class="dropdown-menu">
  181.                         <a href="#" class="dropdown-item" data-select-class="">Disable animation</a>
  182.                         <div class="dropdown-divider"/>
  183.                         <div class="dropdown-submenu o_anim_entrance-fading_li">
  184.                             <a href="#" class="dropdown-item">Fading</a>
  185.                             <div class="dropdown-menu">
  186.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_fade_in">Fade In</a>
  187.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_fade_in_down">Fade In-Down</a>
  188.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_fade_in_left">Fade In-Left</a>
  189.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_fade_in_right">Fade In-Right</a>
  190.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_fade_in_up">Fade In-Up</a>
  191.                             </div>
  192.                         </div>
  193.                         <div class="dropdown-submenu o_anim_entrance-bounce_li">
  194.                             <a href="#" class="dropdown-item">Bouncing</a>
  195.                             <div class="dropdown-menu">
  196.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_bounce_in">Bounce In</a>
  197.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_bounce_in_down">Bounce In-Down</a>
  198.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_bounce_in_left">Bounce In-Left</a>
  199.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_bounce_in_right">Bounce In-Right</a>
  200.                             </div>
  201.                         </div>
  202.                         <div class="dropdown-submenu o_anim_entrance-rotate_li">
  203.                             <a href="#" class="dropdown-item">Rotating</a>
  204.                             <div class="dropdown-menu">
  205.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_rotate_in">Rotate In</a>
  206.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_rotate_in_down_left">Rotate In-Down-Left</a>
  207.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_rotate_in_down_right">Rotate In-Down-Right</a>
  208.                             </div>
  209.                         </div>
  210.                         <div class="dropdown-submenu o_anim_entrance-rotate_li">
  211.                             <a href="#" class="dropdown-item">Zoom</a>
  212.                             <div class="dropdown-menu">
  213.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_zoom_in">Zoom In</a>
  214.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_zoom_in_down">Zoom In-Down</a>
  215.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_zoom_in_left">Zoom In-Left</a>
  216.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_zoom_in_right">Zoom In-Right</a>
  217.                             </div>
  218.                         </div>
  219.                         <div class="dropdown-submenu o_anim_effects-attention_li">
  220.                             <a href="#" class="dropdown-item">Attention Seekers</a>
  221.                             <div class="dropdown-menu">
  222.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_flash">Flash</a>
  223.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_pulse">Pulse</a>
  224.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_shake">Shake</a>
  225.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_tada">Tada</a>
  226.                             </div>
  227.                         </div>
  228.                         <div class="dropdown-submenu o_anim_effects-flippers_li">
  229.                             <a href="#" class="dropdown-item">Flippers</a>
  230.                             <div class="dropdown-menu">
  231.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_flip_in_x">Flip-In-X</a>
  232.                                 <a href="#" class="dropdown-item" data-select-class="o_anim_flip_in_y">Flip-In-Y</a>
  233.                             </div>
  234.                         </div>
  235.                     </div>
  236.                 </div>
  237.             </div>
  238.             <div data-js="o_animate_duration" t-att-data-selector="o_animate_selector" data-exclude=".o_not-animable">
  239.                 <div class="dropdown-submenu d-none"> <!-- Visible only if an animation is active (js) -->
  240.                     <a href="#" class="dropdown-item"><i class="fa fa-hourglass-half"/>Animation Duration</a>
  241.                     <div class="dropdown-menu o_anim_ul_timing">
  242.                         <span class="timeline duration">
  243.                             <span>
  244.                                 <span simulate="delay"/>
  245.                             </span>
  246.                             <span>
  247.                                 <span simulate="duration"/>
  248.                             </span>
  249.                         </span>
  250.                         <a href="#" class="dropdown-item" data-select-class="o_anim_dur500">500ms</a>
  251.                         <a href="#" class="dropdown-item" data-select-class="">1000ms (default)</a>
  252.                         <a href="#" class="dropdown-item" data-select-class="o_anim_dur1500">1500ms</a>
  253.                         <a href="#" class="dropdown-item" data-select-class="o_anim_dur2000">2000ms</a>
  254.                         <a href="#" class="dropdown-item" data-select-class="o_anim_dur2500">2500ms</a>
  255.                         <a href="#" class="dropdown-item" data-select-class="o_anim_dur3000">3000ms</a>
  256.                     </div>
  257.                 </div>
  258.             </div>
  259.             <div data-js="o_animate_delay" t-att-data-selector="o_animate_selector" data-exclude=".o_not-animable">
  260.                 <div class="dropdown-submenu d-none"> <!-- Visible only if an animation is active (js) -->
  261.                     <a href="#" class="dropdown-item"><i class="fa fa-clock-o"/>Animation Delay</a>
  262.                     <div class="dropdown-menu o_anim_ul_timing">
  263.                         <span class="timeline delay">
  264.                             <span>
  265.                                 <span simulate="delay"/>
  266.                             </span>
  267.                             <span>
  268.                                 <span simulate="duration"/>
  269.                             </span>
  270.                         </span>
  271.                         <a href="#" class="dropdown-item" data-select-class="">No delay (default)</a>
  272.                         <a href="#" class="dropdown-item" data-select-class="o_anim_del500">500ms</a>
  273.                         <a href="#" class="dropdown-item" data-select-class="o_anim_del1000">1000ms</a>
  274.                         <a href="#" class="dropdown-item" data-select-class="o_anim_del1500">1500ms</a>
  275.                         <a href="#" class="dropdown-item" data-select-class="o_anim_del2000">2000ms</a>
  276.                         <a href="#" class="dropdown-item" data-select-class="o_anim_del2500">2500ms</a>
  277.                     </div>
  278.                 </div>
  279.             </div>
  280.             <div data-js="o_animate_options" t-att-data-selector="o_animate_selector" data-exclude=".o_not-animable">
  281.                 <div class="dropdown-submenu d-none"> <!-- Visible only if an animation is active (js) -->
  282.                     <a href="#" class="dropdown-item"><i class="fa fa-cogs"/>Animation Options</a>
  283.                     <div class="dropdown-menu o_anim_ul_options">
  284.                         <a href="#" class="dropdown-item" data-toggle-class="o_animate_both_scroll">Each time it becomes visible</a>
  285.                     </div>
  286.                 </div>
  287.             </div>
  288.         </xpath>
  289.     </template>
  290. </odoo>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top