Skip to Content
Menu
This question has been flagged
1 Reply
2846 Views

I've created a new module, which I can install perfectly with commit, push etc with github.
But when I try to install this same module as a zip-file, I receive an error:

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 394, in _check_xml
raise ValidationError("%s\n\n%s" % (_("Error while validating view"), tools.ustr(e)))
odoo.tools.convert.ParseError: "Error while validating view

Veld 'invoice_approval' bestaat niet (Transled: Field 'invoice_approval' does not exist)
Fout context:
Weergave`res.config.settings.view.form.inherit.account.approvevendorbills`
[view_id: 2724, xml_id: n/b, model: res.config.settings, parent_id: 740]
None" while parsing /tmp/tmp_o0_f3pu/fiattering_leveranciersfacturen/views/res_config_view.xml:2, near
<odoo>
<data>
<record id="res_config_settings_view_form_approve_vendor_bills" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.account.approvevendorbills</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="10"/>
<field name="inherit_id" ref="account.res_config_settings_view_form"/>
<field namme="arch" type="xml">
<xpath expr="//div[@id='account_vendor_bills']" position="inside">
<div class="col-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="invoice_approval"/>
</div>
<div class="o_setting_right_pane">
<label for="invoice_approval"/>
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/>
<div class="text-muted">
Managers must approve vendor bills, settings within contacts/Sales can overrule these settings
</div>
</div>
</div>
</xpath>
</field>
</record>
</data>
</odoo>

Why can I install this module with git, and not install the same module as a zip-file?

Avatar
Discard
Best Answer

Hi,

Not sure how you are trying to install the module. Suppose if you have a module which is developed or downloaded from the odoo store(you will get it as zip format) when downloading from odoo store. Once you have a zip file/module, you have to unzip it/extract it to get the module files.

Once the extracting is done, you can place the module to the addons folder and then restart the odoo service, and from the odoo user interface, activate the debug mode, click Update Apps List and search and try to install the module.

If this is not what exactly you are looking for, please let me know.

Thanks

Avatar
Discard
Author

It's a module that I developed myself. I've developed it offline and need to install it in our production environment on odoo.sh

In Odoo.sh there is an option (with debug=1) in de Apps module, to import a module. There you can upload a zip-file and it should be unpacking and installing the module by itself.

But than I receive that error message.

You can use that option only for the modules without py files