Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ Available addons
addon | version | maintainers | summary
--- | --- | --- | ---
[attachment_queue](attachment_queue/) | 17.0.1.0.0 | <a href='https://github.com/florian-dacosta'><img src='https://github.com/florian-dacosta.png' width='32' height='32' style='border-radius:50%;' alt='florian-dacosta'/></a> <a href='https://github.com/sebastienbeau'><img src='https://github.com/sebastienbeau.png' width='32' height='32' style='border-radius:50%;' alt='sebastienbeau'/></a> | Base module adding the concept of queue for processing files
[auditlog](auditlog/) | 17.0.1.0.6 | | Audit Log
[auditlog](auditlog/) | 17.0.1.0.7 | | Audit Log
[auto_backup](auto_backup/) | 17.0.1.1.0 | | Backups database
[base_cron_exclusion](base_cron_exclusion/) | 17.0.1.0.0 | <a href='https://github.com/LoisRForgeFlow'><img src='https://github.com/LoisRForgeFlow.png' width='32' height='32' style='border-radius:50%;' alt='LoisRForgeFlow'/></a> <a href='https://github.com/ChrisOForgeFlow'><img src='https://github.com/ChrisOForgeFlow.png' width='32' height='32' style='border-radius:50%;' alt='ChrisOForgeFlow'/></a> | Allow you to select scheduled actions that should not run simultaneously.
[base_exception](base_exception/) | 17.0.1.1.0 | <a href='https://github.com/hparfr'><img src='https://github.com/hparfr.png' width='32' height='32' style='border-radius:50%;' alt='hparfr'/></a> <a href='https://github.com/sebastienbeau'><img src='https://github.com/sebastienbeau.png' width='32' height='32' style='border-radius:50%;' alt='sebastienbeau'/></a> | This module provide an abstract model to manage customizable exceptions to be applied on different models (sale order, invoice, ...)
[base_fontawesome](base_fontawesome/) | 17.0.1.0.0 | | Up to date Fontawesome resources.
[base_fontawesome](base_fontawesome/) | 17.0.1.1.0 | | Up to date Fontawesome resources.
[base_force_record_noupdate](base_force_record_noupdate/) | 17.0.1.0.0 | | Manually force noupdate=True on models
[base_m2m_custom_field](base_m2m_custom_field/) | 17.0.1.0.0 | | Customizations of Many2many
[base_model_restrict_update](base_model_restrict_update/) | 17.0.1.0.0 | <a href='https://github.com/yostashiro'><img src='https://github.com/yostashiro.png' width='32' height='32' style='border-radius:50%;' alt='yostashiro'/></a> <a href='https://github.com/aungkokolin1997'><img src='https://github.com/aungkokolin1997.png' width='32' height='32' style='border-radius:50%;' alt='aungkokolin1997'/></a> | Update Restrict Model
Expand Down Expand Up @@ -54,7 +54,7 @@ addon | version | maintainers | summary
[sentry](sentry/) | 17.0.1.0.0 | <a href='https://github.com/barsi'><img src='https://github.com/barsi.png' width='32' height='32' style='border-radius:50%;' alt='barsi'/></a> <a href='https://github.com/naglis'><img src='https://github.com/naglis.png' width='32' height='32' style='border-radius:50%;' alt='naglis'/></a> <a href='https://github.com/versada'><img src='https://github.com/versada.png' width='32' height='32' style='border-radius:50%;' alt='versada'/></a> <a href='https://github.com/moylop260'><img src='https://github.com/moylop260.png' width='32' height='32' style='border-radius:50%;' alt='moylop260'/></a> <a href='https://github.com/fernandahf'><img src='https://github.com/fernandahf.png' width='32' height='32' style='border-radius:50%;' alt='fernandahf'/></a> | Report Odoo errors to Sentry
[server_action_logging](server_action_logging/) | 17.0.1.0.0 | | Module that provides a logging mechanism for server actions
[session_db](session_db/) | 17.0.1.0.1 | <a href='https://github.com/sbidoul'><img src='https://github.com/sbidoul.png' width='32' height='32' style='border-radius:50%;' alt='sbidoul'/></a> | Store sessions in DB
[test_auditlog](test_auditlog/) | 17.0.1.0.1 | | Additional unit tests for Audit Log based on accounting models
[test_auditlog](test_auditlog/) | 17.0.1.0.2 | | Additional unit tests for Audit Log based on accounting models
[tracking_manager](tracking_manager/) | 17.0.1.1.0 | <a href='https://github.com/Kev-Roche'><img src='https://github.com/Kev-Roche.png' width='32' height='32' style='border-radius:50%;' alt='Kev-Roche'/></a> <a href='https://github.com/sebastienbeau'><img src='https://github.com/sebastienbeau.png' width='32' height='32' style='border-radius:50%;' alt='sebastienbeau'/></a> | This module tracks all fields of a model, including one2many and many2many ones.
[tracking_manager_domain](tracking_manager_domain/) | 17.0.1.2.0 | <a href='https://github.com/CRogos'><img src='https://github.com/CRogos.png' width='32' height='32' style='border-radius:50%;' alt='CRogos'/></a> | This module extends the tracking manager to allow to define a domain on fields to track changes only when certain conditions apply.
[upgrade_analysis](upgrade_analysis/) | 17.0.1.0.5 | <a href='https://github.com/StefanRijnhart'><img src='https://github.com/StefanRijnhart.png' width='32' height='32' style='border-radius:50%;' alt='StefanRijnhart'/></a> <a href='https://github.com/legalsylvain'><img src='https://github.com/legalsylvain.png' width='32' height='32' style='border-radius:50%;' alt='legalsylvain'/></a> | Performs a difference analysis between modules installed on two different Odoo instances
Expand Down
2 changes: 1 addition & 1 deletion auditlog/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Audit Log
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f69fdea74c436e0dbf5368233ce6191e4b96df203ba958bb9aabb8095938232e
!! source digest: sha256:f660c7ff4e996ead0449393015e19cd4d99d22be65da983ff7a0b33d11f6d23c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion auditlog/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Audit Log",
"version": "17.0.1.0.6",
"version": "17.0.1.0.7",
"author": "ABF OSIELL, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/server-tools",
Expand Down
11 changes: 10 additions & 1 deletion auditlog/models/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

import copy
from collections import defaultdict

from odoo import Command, _, api, fields, models
from odoo.exceptions import UserError
from odoo.tools.misc import OrderedSet

FIELDS_BLACKLIST = [
"id",
Expand Down Expand Up @@ -61,14 +63,20 @@ def __init__(self, env):
self._transaction = env.transaction

def __enter__(self):
"""Replace the cache on all envs and on the transaction.
"""Replace the cache + tocompute on all envs and on the transaction.

It is not enough to replace the cache on the current env, because once
a sudo is executed under the scope of this context manager, another new
or existing env is fetched which will have the original cache if we
don't swap them all out here.
"""
self._original_cache = self._transaction.cache
# Copy the sets of records, which are popped on recompute but do not
# copy the keys because they do not match the original field object
# afterwards.
self._original_tocompute = defaultdict(OrderedSet)
for key, value in self._transaction.tocompute.items():
self._original_tocompute[key] = OrderedSet(value)
temporary_cache = api.Cache()
for env in self._transaction.envs:
env.cache = temporary_cache
Expand All @@ -80,6 +88,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
for env in self._transaction.envs:
env.cache = self._original_cache
self._transaction.cache = self._original_cache
self._transaction.tocompute = self._original_tocompute


class AuditlogRule(models.Model):
Expand Down
2 changes: 1 addition & 1 deletion auditlog/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ <h1>Audit Log</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f69fdea74c436e0dbf5368233ce6191e4b96df203ba958bb9aabb8095938232e
!! source digest: sha256:f660c7ff4e996ead0449393015e19cd4d99d22be65da983ff7a0b33d11f6d23c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/17.0/auditlog"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-auditlog"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-tools&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows the administrator to log user operations performed on
Expand Down
10 changes: 7 additions & 3 deletions base_fontawesome/README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

================
Base Fontawesome
================
Expand All @@ -7,13 +11,13 @@ Base Fontawesome
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0f9c32cb77b5f53084e6e452be2ecfa618cf6bf271973ed7840b794cafcf445e
!! source digest: sha256:46246cea6fee64f4b5bc2f87a304f42e24c861b31cfd838e4584cccacc2dbb43
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
Expand All @@ -30,7 +34,7 @@ Base Fontawesome

Provide up to date `Fontawesome <http://fontawesome.io/>`__ resources.

Current version: 6.5.1 (the version of this module matches it).
Current version: 6.7.2 (the version of this module matches it).

**Table of contents**

Expand Down
14 changes: 7 additions & 7 deletions base_fontawesome/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Base Fontawesome",
"summary": """Up to date Fontawesome resources.""",
"version": "17.0.1.0.0",
"version": "17.0.1.1.0",
"license": "LGPL-3",
"website": "https://github.com/OCA/server-tools",
"author": "Camptocamp,Creu Blanca,Odoo Community Association (OCA)",
Expand All @@ -17,26 +17,26 @@
"web/static/src/libs/fontawesome/css/font-awesome.css",
"base_fontawesome/static/src/css/fontawesome.css",
),
"base_fontawesome/static/lib/fontawesome-6.5.1/css/all.css",
"base_fontawesome/static/lib/fontawesome-6.5.1/css/v4-shims.css",
"base_fontawesome/static/lib/fontawesome-6.7.2/css/all.css",
"base_fontawesome/static/lib/fontawesome-6.7.2/css/v4-shims.css",
],
"web.assets_frontend": [
(
"replace",
"web/static/src/libs/fontawesome/css/font-awesome.css",
"base_fontawesome/static/src/css/fontawesome.css",
),
"base_fontawesome/static/lib/fontawesome-6.5.1/css/all.css",
"base_fontawesome/static/lib/fontawesome-6.5.1/css/v4-shims.css",
"base_fontawesome/static/lib/fontawesome-6.7.2/css/all.css",
"base_fontawesome/static/lib/fontawesome-6.7.2/css/v4-shims.css",
],
"web.report_assets_common": [
(
"replace",
"web/static/src/libs/fontawesome/css/font-awesome.css",
"base_fontawesome/static/src/css/fontawesome.css",
),
"base_fontawesome/static/lib/fontawesome-6.5.1/css/all.css",
"base_fontawesome/static/lib/fontawesome-6.5.1/css/v4-shims.css",
"base_fontawesome/static/lib/fontawesome-6.7.2/css/all.css",
"base_fontawesome/static/lib/fontawesome-6.7.2/css/v4-shims.css",
],
},
}
2 changes: 1 addition & 1 deletion base_fontawesome/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Provide up to date [Fontawesome](http://fontawesome.io/) resources.

Current version: 6.5.1 (the version of this module matches it).
Current version: 6.7.2 (the version of this module matches it).
30 changes: 18 additions & 12 deletions base_fontawesome/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>Base Fontawesome</title>
<title>README.rst</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -360,18 +360,23 @@
</style>
</head>
<body>
<div class="document" id="base-fontawesome">
<h1 class="title">Base Fontawesome</h1>
<div class="document">


<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
</a>
<div class="section" id="base-fontawesome">
<h1>Base Fontawesome</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0f9c32cb77b5f53084e6e452be2ecfa618cf6bf271973ed7840b794cafcf445e
!! source digest: sha256:46246cea6fee64f4b5bc2f87a304f42e24c861b31cfd838e4584cccacc2dbb43
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.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/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/17.0/base_fontawesome"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-base_fontawesome"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-tools&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.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/OCA/server-tools/tree/17.0/base_fontawesome"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-base_fontawesome"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-tools&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Provide up to date <a class="reference external" href="http://fontawesome.io/">Fontawesome</a> resources.</p>
<p>Current version: 6.5.1 (the version of this module matches it).</p>
<p>Current version: 6.7.2 (the version of this module matches it).</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -386,7 +391,7 @@ <h1 class="title">Base Fontawesome</h1>
</ul>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
<p>Now, all free icons from <a class="reference external" href="https://fontawesome.com/icons?d=gallery&amp;m=free">Font
Awesome</a> can be used
on odoo. It also adds three options in order to add the icons: *
Expand All @@ -402,32 +407,32 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
</pre>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20base_fontawesome%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
<h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
<h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
<ul class="simple">
<li>Camptocamp</li>
<li>Creu Blanca</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
<ul class="simple">
<li>Simone Orsi <a class="reference external" href="mailto:simone.orsi&#64;camptocamp.com">simone.orsi&#64;camptocamp.com</a></li>
<li>Enric Tobella &lt;<a class="reference external" href="mailto:etobella&#64;creublanca.es">etobella&#64;creublanca.es</a>&gt;</li>
<li>Tony Galmiche &lt;<a class="reference external" href="mailto:tony.galmiche&#64;infosaone.com">tony.galmiche&#64;infosaone.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
Expand All @@ -440,5 +445,6 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
</div>
</div>
</div>
</div>
</body>
</html>
Loading
Loading