Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Hi, I'm trying to get a really basic view up and running on Odoo V8. My model looks like this;
_name = 'routing.country'
name= fields.Char(string='Country Name', required=True)
alpha_2= fields.Char(string='Alpha 2', required=True)
alpha_3= fields.Char(string='Alpha 3', required=True)
My view looks like this;
<record id="routing_country_action" model="ir.actions.act_window">
<field name="help" type="html">
<p class="oe_view_nocontent_create">Click Create to add a new country.</p>
<record id="routing_country_tree_view" model="ir.ui.view">
<field name="arch" type="XML">
If I remove the second <record> everything works as expected and I see the country name only in tree view. When I add the second record to give me a tree view with the extra attributes, I get this on install;
File "lxml.etree.pyx", line 3313, in lxml.etree._Validator.assert_ (src/lxml/lxml.etree.c:159862)
AssertionError: Element field has extra content: tree, line 19
I've followed the syntax at https://www.odoo.com/documentation/8.0/howtos/backend.html and tried all sorts of variations, but no joy.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/23/15, 4:42 AM|
|Seen: 672 times|
|Last updated: 9/25/15, 4:52 AM|