Skip to content

Commit 0530092

Browse files
committed
chore(spp_audit): version bump to 19.0.2.0.1, clean up dead isinstance check
1 parent cd0dfd9 commit 0530092

5 files changed

Lines changed: 21 additions & 6 deletions

File tree

spp_audit/README.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ OpenSPP Audit
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:0000000000000000000000000000000000000000000000000000000000000000
10+
!! source digest: sha256:force_regen
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@@ -145,6 +145,12 @@ External Python: ``requests`` (HTTP backend)
145145
Changelog
146146
=========
147147

148+
19.0.2.0.1
149+
~~~~~~~~~~
150+
151+
- fix: use @api.model_create_multi for audit_create to support Odoo 19
152+
create overrides (#138)
153+
148154
19.0.2.0.0
149155
~~~~~~~~~~
150156

spp_audit/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "OpenSPP Audit",
44
"summary": "Comprehensively tracks all data modifications and user actions across the OpenSPP platform, recording old and new values for configured data. It enhances accountability and data integrity by maintaining an immutable history of changes, crucial for internal audits, compliance, and detecting unauthorized alterations. Supports multiple backends (database, file, syslog, HTTP) with tamper-resistant configuration.",
55
"category": "OpenSPP/Monitoring",
6-
"version": "19.0.2.0.0",
6+
"version": "19.0.2.0.1",
77
"sequence": 1,
88
"author": "OpenSPP.org",
99
"website": "https://github.com/OpenSPP/OpenSPP2",

spp_audit/readme/HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 19.0.2.0.1
2+
3+
- fix: use @api.model_create_multi for audit_create to support Odoo 19 create overrides (#138)
4+
15
### 19.0.2.0.0
26

37
- Initial migration to OpenSPP2

spp_audit/static/description/index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ <h1 class="title">OpenSPP Audit</h1>
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370-
!! source digest: sha256:0000000000000000000000000000000000000000000000000000000000000000
370+
!! source digest: sha256:force_regen
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372372
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OpenSPP/OpenSPP2/tree/19.0/spp_audit"><img alt="OpenSPP/OpenSPP2" src="https://img.shields.io/badge/github-OpenSPP%2FOpenSPP2-lightgray.png?logo=github" /></a></p>
373373
<p>Tracks all data modifications and user actions across OpenSPP models by
@@ -516,6 +516,13 @@ <h2><a class="toc-backref" href="#toc-entry-1">Changelog</a></h2>
516516
</div>
517517
</div>
518518
<div class="section" id="section-1">
519+
<h1>19.0.2.0.1</h1>
520+
<ul class="simple">
521+
<li>fix: use &#64;api.model_create_multi for audit_create to support Odoo 19
522+
create overrides (#138)</li>
523+
</ul>
524+
</div>
525+
<div class="section" id="section-2">
519526
<h1>19.0.2.0.0</h1>
520527
<ul class="simple">
521528
<li>Initial migration to OpenSPP2</li>

spp_audit/tools/decorator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
from odoo import api
88

9-
long = int
10-
119
_logger = logging.getLogger(__name__)
1210

1311

@@ -25,7 +23,7 @@ def audit_decorator(method):
2523
@api.model_create_multi
2624
def audit_create(self, vals_list):
2725
result = audit_create.origin(self, vals_list)
28-
records = self.browse(result) if isinstance(result, list) else result
26+
records = result
2927
rules = self.get_audit_rules("create")
3028

3129
# Use sudo() to avoid access errors when reading computed fields

0 commit comments

Comments
 (0)