Skip to Content
Menu
This question has been flagged
3 Replies
2039 Views

Hi@all,


I'm not a professional and I'm trying to get used to Oddo which is not easy :-( But it's definitely worth it :-)

Since it seems that you need some knowledge about programming and databases to create and edit reports (quotations, invoices etc.) I wanted to make things a bit easier for myself and install an app that makes things easier for me:

Odoo Professional Report Templates

I have installed Oddo12 (on a UCS server from the App Store) I have completed the basic setup. When I try to import the app I get an error.


Error while importing module 'bi_professional_reports_templates': 'Fehler während der Constraint-Validierung\n\nDas Feld `account_template` existiert nicht\n\nFehler Kontext:\nAnsicht `res_company_inherit.inherit_form_view`\n[view_id: 1212, xml_id: k. A., model: res.company, parent_id: 98]\nNone\n<record id="res_company_custom_inherit_form_view" model="ir.ui.view">\n <field name="name">res_company_inherit.inherit_form_view</field>\n <field name="model">res.company</field>\n <field name="inherit_id" ref="base.view_company_form"/>\n <field name="type">form</field>\n <field name="arch" type="xml">\n <field name="parent_id" position="after">\n <group colspan="2" col="2">\n <field name="sale_template"/>\n <field name="purchase_template"/>\n <field name="account_template"/>\n <field name="stock_template"/>\n </group>\n </field>\n </field>\n </record>\n/tmp/tmpf6eq9cpv/bi_professional_reports_templates/res_company.xml\n5'

Apparently, fields are missing in my database. The question is only why?n the app's website the dependencies are mentioned:

- Inventory (stock)
- Invoicing (account)
- purchase (purchase)
- Sales (sales_management)

I have installed these. How can I solve the problem?


with best

sven

Avatar
Discard
Best Answer

Hi Sven: "Import Module" works only for modules with static content. If your module contains non-static content i.e. models, etc. you need to install it as a custom module.

The following post lists out the steps (it's still applicable even though it was written for 11.0):

How to install a new module

Avatar
Discard
Author

Thanks for your help! I have checked on the Odoo server where the AddOn directory is located.

/etc/odoo.conf:

[options]

addons_path = /var/lib/univention-appcenter/apps/odoo/data/extra-addons/

...

So I copied the ZIP file into it:

root@erp01:/var/lib/univention-appcenter/apps/odoo/data/extra-addons# ls

bi_professional_reports_templates-12.0.0.2.zip

After that I logged in as admin in Odoo and as described in the article:

2. goto settings -> Activate Developer Mode.

3. goto apps -> update apps list

I have restarted the server but I cannot find the module anywhere.

What am I doing wrong?

Author

ok, I forgot to unpack the module

Author Best Answer
Next time you post an error, please switch your odoo to english so that the error doesn't appear in German and please try to put the paragraphs on the right places, it really helps the reading.

Sorry, I will keep this in mind in the future

1- Have you restarted the server/service before trying to install the app? 

yes

2- Have you downloaded the right version of the app? You must use v12.

yes, Installed is: "Odoo 12.0-20190816 (Community Edition)" and downloaded: "bi_professional_reports_templates-12.0.0.2.zip

3- Did you try to modify the app by yourself?

No, downloaded and tried to install. For this I do the following:

- Register as admin
- Activate debug mode

-> Aps -> Import modules -> Select file -> Upload

Here there is still the setting "Force Init". I have tried it with and without. The same result.

I have made a snapshot of the VM before and after the error I am always back to this state to have a defined system




Avatar
Discard
Best Answer

Hi,


Next time you post an error, please switch your odoo to english so that the error doesn't appear in German and please try to put the paragraphs on the right places, it really helps the reading.


I'm also a beginner, but the error doesn't seem to be involved uninstalled depencies. The error seems to be in the app itself, so please check a few things:

1- Have you restarted the server/service before trying to install the app?

2- Have you downloaded the right version of the app? You must use v12.

3- Did you try to modify the app by yourself?



Avatar
Discard