Note that there are some explanatory texts on larger screens.

plurals
  1. POMy custom module does not appears on my openerp 7 installation
    text
    copied!<p>I have a custom module i made for openerp 6.1 originally, i wanted to install it on another openerp server i got, using the latest openerp 7 version.</p> <p>I already did "Update modules list" and searched through "Extra" and "Not installed" filters, but no success.</p> <p>I've read somewhere that openerp 6.1 modules aren't exactly the same on openerp 7</p> <p>Could omebody show some light on this? Also the documentation about custom modules on openerp 7 is really poor at the moment.</p> <p>Here's my <code>__init__.py</code></p> <pre><code>import schoolsout </code></pre> <p><code>__openerp__.py</code></p> <pre><code>{ "name" : "Student Information", "version" : "6.0.1", "author" : "Koci", "website" : "http://www.tuespacioweb.com.ve", "category" : "General", "depends" : ["base"], "description" : "Certificados de NO Produccion Grafibond", "init_xml" : [], "demo xml" : [], "update_xml" : [ "schoolsout_view.xml"], "installable": True, "active": False, "certificate" : "" </code></pre> <p>}</p> <p><code>schoolsout.py</code></p> <pre><code>from openerp.osv import fields, orm class student(orm.Model): _name = 'student.student' _columns = { 'name' : fields.char('Student Name', size=16, required = True, translate=True), 'age' : fields.integer('Age',readonly = True), 'percent' : fields.float('Percentage',help = 'This field will add average marks of student out of 100.'), 'gender' : fields.selection([('male','Male'),('female','Female')],'Gender'), 'active' : fields.boolean('Active'), 'notes' : fields.text('Details'), } _defaults = { 'name' : 'Atul', 'active' : True, } </code></pre> <p>student_student()</p> <p>and finally the schoolsout_view.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p> </p> <pre><code>&lt;!-- Student search view --&gt; &lt;record model="ir.ui.view" id="student_search"&gt; &lt;field name="name"&gt;student.search&lt;/field&gt; &lt;field name="model"&gt;student.student&lt;/field&gt; &lt;field name="type"&gt;search&lt;/field&gt; &lt;field name="arch" type="xml"&gt; &lt;search string="Student Information Search" version="7.0"&gt; &lt;field name="name" string="Student Name" /&gt; &lt;field name="gender" string="Gender" /&gt; &lt;field name="age" string="Age" /&gt; &lt;/search&gt; &lt;/field&gt; &lt;/record&gt; &lt;!-- Student tree view --&gt; &lt;record id="student_student_tree" model="ir.ui.view"&gt; &lt;field name="name"&gt;student.result.tree.new&lt;/field&gt; &lt;field name="model"&gt;student.student&lt;/field&gt; &lt;field name="type"&gt;tree&lt;/field&gt; &lt;field name="arch" type="xml"&gt; &lt;tree string="Student_result" version="7.0"&gt; &lt;field name="name" /&gt; &lt;field name="age" /&gt; &lt;field name="percent" /&gt; &lt;field name="gender" /&gt; &lt;field name="active" /&gt; &lt;/tree&gt; &lt;/field&gt; &lt;/record&gt; &lt;!--Student Form View--&gt; &lt;record id="student_student_form" model="ir.ui.view"&gt; &lt;field name="name"&gt;student.result.form&lt;/field&gt; &lt;field name="model"&gt;student.student&lt;/field&gt; &lt;field name="type"&gt;form&lt;/field&gt; &lt;field name="arch" type="xml"&gt; &lt;form string="Student_result" version="7.0"&gt; &lt;field name="name" /&gt; &lt;field name="age" /&gt; &lt;field name="percent" /&gt; &lt;field name="gender" /&gt; &lt;field name="active" /&gt; &lt;field name="notes" /&gt; &lt;/form&gt; &lt;/field&gt; &lt;/record&gt; &lt;!-- Student Action--&gt; &lt;record id="action_student_student" model="ir.actions.act_window"&gt; &lt;field name="name"&gt;Student Information&lt;/field&gt; &lt;field name="res_model"&gt;student.student&lt;/field&gt; &lt;field name="view_type"&gt;form&lt;/field&gt; &lt;field name="view_mode"&gt;tree,form&lt;/field&gt; &lt;/record&gt; &lt;!--Student Menu--&gt; &lt;menuitem id="student_parent" name="Student" icon="terp-partner"/&gt; &lt;menuitem id="menu_student_parent" name="Student Management" parent="student_parent"&gt;&lt;/menuitem&gt; &lt;menuitem action="action_student_student" id="menu_student_student" parent="menu_student_parent" string="Result"/&gt; &lt;/data&gt; </code></pre> <p></p> <p>Any advice would be very appreciated, thank you very much</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload