From 63acfb6b79232fd2a52b544f7c582a6984555e4d Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Wed, 21 Jan 2026 10:01:02 +0700 Subject: [PATCH] chore: Update module version to Odoo 19, make xlsxwriter an optional dependency, and add a .gitignore file. --- .gitignore | 15 +++++++++++++++ __manifest__.py | 2 +- wizard/user_access_rights_wizard.py | 5 ++++- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9d276bf --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# Python +*.py[cod] +__pycache__/ +*.so + +# Odoo +*.po~ +*.pot~ + +# Editor / System +.DS_Store +.vscode/ +*.swp +*.swo +*~ diff --git a/__manifest__.py b/__manifest__.py index 71bb0d4..e4af6f2 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- { "name": "User Access Rights Export", - "version": "17.0.1.0.0", + "version": "19.0.1.0.0", "category": "Settings/Technical", "summary": "Export detailed user access rights (model ACLs and record rules) to Excel", "description": """ diff --git a/wizard/user_access_rights_wizard.py b/wizard/user_access_rights_wizard.py index 4ffabdf..9fb87b7 100644 --- a/wizard/user_access_rights_wizard.py +++ b/wizard/user_access_rights_wizard.py @@ -6,7 +6,10 @@ from datetime import datetime from odoo import _, api, fields, models from odoo.exceptions import UserError -from odoo.tools.misc import xlsxwriter +try: + import xlsxwriter +except ImportError: + xlsxwriter = None class UserAccessRightsWizard(models.TransientModel):