camptocamp / pytest-odoo

pytest plugin to run Odoo tests
GNU Affero General Public License v3.0
68 stars 45 forks source link

Prevent duplicate Odoo module loading. #25

Closed ddufresne closed 6 years ago

ddufresne commented 6 years ago

Prior to this commit, any odoo module was loaded in duplicate.

For example, with the module report_aeroo:

First, the module was loaded as odoo.addons.report_aeroo, then, it was loaded a second time as report_aeroo (without odoo.addons).

Therefore, any model inside the module was declared 2 times.

guewen commented 6 years ago

@ddufresne I see a build failing in the referenced commit https://github.com/Numigi/odoo-public/commit/a14e38510f1c6d2e243819ba9b5515c3566447a5, should I wait before merging?

ddufresne commented 6 years ago

@guewen yes, it's ok, the related PR https://github.com/Numigi/odoo-public/pull/19 is now green. Thanks!

foutoucour commented 6 years ago

Thank you @guewen for the quick merge!

guewen commented 6 years ago

It was not released though, now I pushed the release 0.4.4 :)