CybroOdoo / OpenHRMS

GNU Affero General Public License v3.0
134 stars 221 forks source link

500 Internal Server Error from upgrade of hr_payroll_community conflict with matplotlib.dates #103

Open peebhoiy opened 1 year ago

peebhoiy commented 1 year ago

Performed an upgrade 2 weeks ago and started getting 500 Internal server errors, review when Odoo status was checked showed that the error was coming from the hr_payroll_community update of 2 weeks ago. Tried several options with the matplotlib (downgraded/upgraded) package, but the same error keeps coming up from the hr_payroll_community module.

File "/opt/odoo16/odoo16/odoo/modules/module.py", line 463, in load_openerp_module Oct 02 07:36:27 odoo-server odoo16[256373]: import('odoo.addons.' + module_name) Oct 02 07:36:27 odoo-server odoo16[256373]: File "/opt/odoo16/odoo16/custom-addons/ohrms/hr_payroll_community/init.py", line 3, in Oct 02 07:36:27 odoo-server odoo16[256373]: from . import models Oct 02 07:36:27 odoo-server odoo16[256373]: File "/opt/odoo16/odoo16/custom-addons/ohrms/hr_payroll_community/models/init.py", line 7, in Oct 02 07:36:27 odoo-server odoo16[256373]: from . import hr_payslip Oct 02 07:36:27 odoo-server odoo16[256373]: File "/opt/odoo16/odoo16/custom-addons/ohrms/hr_payroll_community/models/hr_payslip.py", line 8, in Oct 02 07:36:27 odoo-server odoo16[256373]: from matplotlib.dates import seconds Oct 02 07:36:27 odoo-server odoo16[256373]: ImportError: cannot import name 'seconds' from 'matplotlib.dates' (/opt/odoo16/odoo16-venv/lib/python3.10/site-packages/matplotlib/dates.py)

bojanmontex commented 1 year ago

I have installed with matplotlib=3.2.2 version