Odoo Help
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.
AttributeError: 'NoneType' object has no attribute 'fields_view_get' [Closed]
When i tried to install the insurance module(migrated from version 6.0 to 7.0) The following error occured
The server-log file say
Traceback (most recent call last):
File "/opt/openerp/server/openerp/addons/base/ir/ir_ui_view.py", line 126, in _check_render_view
fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=view.type, context=context)
AttributeError: 'NoneType' object has no attribute 'fields_view_get'
2013-10-30 08:56:27,913 1687 ERROR final openerp.tools.convert: Parse error in /opt/openerp/server/openerp/addons/insurance/insurance_view.xml:5:
<record id="view_insurance_contract_refuse_reason_wizard_form" model="ir.ui.view">
<field name="name">insurance.contract.refuse.reason.wizard.form</field>
<field name="model">insurance.contract.refuse.reason.wizard</field>
<!-- <field name="type">form</field>-->
<field name="arch" type="xml">
<form string="Refuse Reason" col="2" version="7.0">
<label string="Please give a reason why you want to refuse this contract" align="0" colspan="2"/>
<field name="reason" nolabel="1" colspan="2"/>
<group colspan="2" col="2">
<button type="special" special="cancel" string="Cancel" icon="gtk-cancel"/>
<button type="object" name="action_confirm" string="Confirm"/>
</group>
</form>
</field>
</record>
.How can be solve this.
This type of error occurred when object defined in .py is not created due to some reason.
Check that you have imported your .py in __init__.py.
Check that class is properly closed or no, if you are using v6.0 or v6.1.
Have you correctly defined
_name
and inheritedosv.osv
or not.
Hope this will solve your problem.
hi now this error occurs while click on install button can u please explain what this
Exception: Module loading failed: file insuranceses/insuranceses/security/ir.model.access.csv could not be processed: Line 1 : No matching record found for external id 'insurance.group_insurance_manager' in field 'Group'
For temporary comment insuranceses/insuranceses/security/ir.model.access.csv
file from __openerp__.py
file and try to install again. I guess your object is not getting created that is why you are facing this error.
ok thats problem is solved by changing the group name. then again another error ValueError: No such external ID currently defined in the system: insurance.seq_insurance_expert_report
hi Sudhir Arya.. Finally i solved the issue and installed the module.. But in view page there is a parse error occured ... I just comment that field , but it will not affect the module functionlity in the primary testing i had done .. will you please mention what this parse error specifies..
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.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 10/30/13, 2:25 AM |
Seen: 13139 times |
Last updated: 8/2/17, 4:48 PM |