Last active
December 16, 2015 20:59
-
-
Save ianjosephwilson/5496336 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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="general"]/field[@name="cost_price_method"]" | |
position="after"> | |
<label name="convertable"/> | |
<field name="convertable"/> | |
</xpath> | |
<xpath expr="/form/notebook/page[@id="general"]" | |
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