chore: Update module version to Odoo 19, make xlsxwriter an optional dependency, and add a .gitignore file.
This commit is contained in:
parent
3ba80352b7
commit
63acfb6b79
15
.gitignore
vendored
Normal file
15
.gitignore
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Python
|
||||||
|
*.py[cod]
|
||||||
|
__pycache__/
|
||||||
|
*.so
|
||||||
|
|
||||||
|
# Odoo
|
||||||
|
*.po~
|
||||||
|
*.pot~
|
||||||
|
|
||||||
|
# Editor / System
|
||||||
|
.DS_Store
|
||||||
|
.vscode/
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
*~
|
||||||
@ -1,7 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
{
|
{
|
||||||
"name": "User Access Rights Export",
|
"name": "User Access Rights Export",
|
||||||
"version": "17.0.1.0.0",
|
"version": "19.0.1.0.0",
|
||||||
"category": "Settings/Technical",
|
"category": "Settings/Technical",
|
||||||
"summary": "Export detailed user access rights (model ACLs and record rules) to Excel",
|
"summary": "Export detailed user access rights (model ACLs and record rules) to Excel",
|
||||||
"description": """
|
"description": """
|
||||||
|
|||||||
@ -6,7 +6,10 @@ from datetime import datetime
|
|||||||
|
|
||||||
from odoo import _, api, fields, models
|
from odoo import _, api, fields, models
|
||||||
from odoo.exceptions import UserError
|
from odoo.exceptions import UserError
|
||||||
from odoo.tools.misc import xlsxwriter
|
try:
|
||||||
|
import xlsxwriter
|
||||||
|
except ImportError:
|
||||||
|
xlsxwriter = None
|
||||||
|
|
||||||
|
|
||||||
class UserAccessRightsWizard(models.TransientModel):
|
class UserAccessRightsWizard(models.TransientModel):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user