CybroOdoo / OpenHRMS

GNU Affero General Public License v3.0
137 stars 223 forks source link

v14 - payroll_community: error External ID not found in the system: base.module_category_localization #73

Open odooaictec opened 3 years ago

odooaictec commented 3 years ago

https://github.com/CybroOdoo/OpenHRMS/blob/8d38bea7ead7e87fa9ef2a0bd5497272e8968d92/hr_payroll_community/views/res_config_settings_views.xml#L7

ValueError: <class 'ValueError'>: "External ID not found in the system: base.module_category_localization" while evaluating "{'search_default_category_id': ref('base.module_category_localization'), 'search_default_name': 'Payroll'}"

Peter-Fam commented 3 years ago

i think it's a bug because Odoo 14.0 doesn't have module_category_localization module anymore after 13.0 a quick fix i did is changing https://github.com/CybroOdoo/OpenHRMS/blob/8d38bea7ead7e87fa9ef2a0bd5497272e8968d92/hr_payroll_community/views/res_config_settings_views.xml#L7 to

 <field name="context" eval="{'search_default_category_id': ref('base.module_category_accounting_localizations'), 'search_default_name': 'Payroll'}"/>