Skip to content

Instantly share code, notes, and snippets.

@ianjosephwilson
Last active December 16, 2015 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianjosephwilson/5496336 to your computer and use it in GitHub Desktop.
Save ianjosephwilson/5496336 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 158, in dispatch
result = rpc.result(meth(*args, **kwargs))
File "/trytond/model/modelview.py", line 239, in fields_view_get
result['field_childs'])
File "/trytond/model/modelview.py", line 353, in _view_look_dom_arch
fields_width=fields_width)
File "/trytond/model/modelview.py", line 489, in __view_look_dom
fields_width=fields_width, fields_attrs=fields_attrs)
File "/trytond/model/modelview.py", line 489, in __view_look_dom
fields_width=fields_width, fields_attrs=fields_attrs)
File "/trytond/model/modelview.py", line 489, in __view_look_dom
fields_width=fields_width, fields_attrs=fields_attrs)
File "/trytond/model/modelview.py", line 438, in __view_look_dom
view_type=view_type)
File "/trytond/model/modelview.py", line 201, in fields_view_get
result['arch'] = _inherit_apply(result['arch'], view.arch)
File "/trytond/model/modelview.py", line 73, in _inherit_apply
% (element2.tag, element2.get('expr')))
AttributeError: Couldn't find tag (xpath: /form/notebook/page[@id="general"]) in parent view!
<?xml version="1.0"?>
<!-- This file is an unofficial extension to Tryton.
The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="template_view_form">
<field name="model">product.template</field>
<field name="inherit" ref="product.template_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath expr="/form/notebook/page[@id=&quot;general&quot;]/field[@name=&quot;cost_price_method&quot;]"
position="after">
<label name="convertable"/>
<field name="convertable"/>
</xpath>
<xpath expr="/form/notebook/page[@id=&quot;general&quot;]"
position="after">
<page string="Conversion"
states="{'invisible': Not(Bool(Eval('convertable')))}"
id="conversion">
<label name="convert_to"/>
<field name="convert_to"/>
<label name="convert_from"/>
<field name="convert_from"/>
</page>
</xpath>
</data>
]]>
</field>
</record>
</data>
</tryton>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment