acsone / click-odoo-contrib

Useful Odoo scripts and utility functions, based on click-odoo
GNU Lesser General Public License v3.0
107 stars 59 forks source link

[UPD] adapt click-odoo-update for odoo 16 #119

Closed baimont closed 2 years ago

baimont commented 2 years ago

click-odoo-update does not work after odoo 15

in odoo master this is because load_information_description_file() is deprecated

see https://github.com/odoo/odoo/blob/master/odoo/modules/module.py#L413

I propose this pr to fix this, tested for an odoo 13 and an odoo master

codecov-commenter commented 2 years ago

Codecov Report

Merging #119 (57e93d6) into master (7605322) will decrease coverage by 1.45%. The diff coverage is 66.66%.

:exclamation: Current head 57e93d6 differs from pull request most recent head aaeeb06. Consider uploading reports for the commit aaeeb06 to get more accurate results

@@            Coverage Diff             @@
##           master     #119      +/-   ##
==========================================
- Coverage   92.55%   91.09%   -1.46%     
==========================================
  Files          14       13       -1     
  Lines         886      865      -21     
  Branches      154      154              
==========================================
- Hits          820      788      -32     
- Misses         45       53       +8     
- Partials       21       24       +3     
Impacted Files Coverage Δ
click_odoo_contrib/update.py 84.33% <66.66%> (-1.12%) :arrow_down:
click_odoo_contrib/dropdb.py 75.00% <0.00%> (-20.84%) :arrow_down:
click_odoo_contrib/manifest.py 97.10% <0.00%> (-2.90%) :arrow_down:
click_odoo_contrib/initdb.py 94.76% <0.00%> (-1.14%) :arrow_down:
click_odoo_contrib/restoredb.py 68.51% <0.00%> (-0.58%) :arrow_down:
click_odoo_contrib/_backup.py 88.15% <0.00%> (-0.16%) :arrow_down:
click_odoo_contrib/makepot.py 93.15% <0.00%> (-0.10%) :arrow_down:
click_odoo_contrib/backupdb.py 98.43% <0.00%> (-0.03%) :arrow_down:
click_odoo_contrib/copydb.py 100.00% <0.00%> (ø)
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

baimont commented 2 years ago

Thanks! Can you add a 119.bugfix in the news directory?

done