[IMP] base_force_record_noupdate: pre-commit auto fixes

pull/2950/head
Vincent Van Rossem 2024-05-24 10:09:15 +02:00
parent d14f2b9418
commit 251723a4d1
9 changed files with 72 additions and 38 deletions

View File

@ -16,18 +16,25 @@ Force Record No-update
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-SilvioC2C%2Fserver--tools-lightgray.png?logo=github .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
:target: https://github.com/SilvioC2C/server-tools/tree/16.0-new-base_force_record_noupdate/base_force_record_noupdate :target: https://github.com/OCA/server-tools/tree/17.0/base_force_record_noupdate
:alt: SilvioC2C/server-tools :alt: OCA/server-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-base_force_record_noupdate
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=17.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge1| |badge2| |badge3| |badge4| |badge5|
This module adds a boolean field on models form view, allowing to force This module adds a boolean field on models form view, allowing to force
``noupdate=True`` to data linked to those models. ``noupdate=True`` to data linked to those models.
Upon setting the field to ``True`` on a given model, ``noupdate=True`` will be set upon Upon setting the field to ``True`` on a given model, ``noupdate=True``
existing data linked to it. When creating new data linked to that model, they will will be set upon existing data linked to it. When creating new data
always have ``noupdate=True`` (unless the field is reset on the model itself). linked to that model, they will always have ``noupdate=True`` (unless
the field is reset on the model itself).
**Table of contents** **Table of contents**
@ -37,15 +44,16 @@ always have ``noupdate=True`` (unless the field is reset on the model itself).
Usage Usage
===== =====
To use this module, you need to open the models' form view and check field "Force No-Update" To use this module, you need to open the models' form view and check
field "Force No-Update"
Bug Tracker Bug Tracker
=========== ===========
Bugs are tracked on `GitHub Issues <https://github.com/SilvioC2C/server-tools/issues>`_. Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported. 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 If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/SilvioC2C/server-tools/issues/new?body=module:%20base_force_record_noupdate%0Aversion:%2016.0-new-base_force_record_noupdate%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. `feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20base_force_record_noupdate%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues. Do not contact contributors directly about support or help with technical issues.
@ -53,19 +61,29 @@ Credits
======= =======
Authors Authors
~~~~~~~ -------
* Camtocamp * Camtocamp
Contributors Contributors
~~~~~~~~~~~~ ------------
* Italo Lopes <italo.lopes@camptocamp.com> - Italo Lopes <italo.lopes@camptocamp.com>
* Silvio Gregorini <silvio.gregorini@camptocamp.com> - Silvio Gregorini <silvio.gregorini@camptocamp.com>
Maintainers Maintainers
~~~~~~~~~~~ -----------
This module is part of the `SilvioC2C/server-tools <https://github.com/SilvioC2C/server-tools/tree/16.0-new-base_force_record_noupdate/base_force_record_noupdate>`_ project on GitHub. This module is maintained by the OCA.
You are welcome to contribute. .. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/17.0/base_force_record_noupdate>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"

View File

@ -0,0 +1,2 @@
- Italo Lopes \<<italo.lopes@camptocamp.com>\>
- Silvio Gregorini \<<silvio.gregorini@camptocamp.com>\>

View File

@ -1,2 +0,0 @@
* Italo Lopes <italo.lopes@camptocamp.com>
* Silvio Gregorini <silvio.gregorini@camptocamp.com>

View File

@ -0,0 +1,7 @@
This module adds a boolean field on models form view, allowing to force
`noupdate=True` to data linked to those models.
Upon setting the field to `True` on a given model, `noupdate=True` will
be set upon existing data linked to it. When creating new data linked to
that model, they will always have `noupdate=True` (unless the field is
reset on the model itself).

View File

@ -1,6 +0,0 @@
This module adds a boolean field on models form view, allowing to force
``noupdate=True`` to data linked to those models.
Upon setting the field to ``True`` on a given model, ``noupdate=True`` will be set upon
existing data linked to it. When creating new data linked to that model, they will
always have ``noupdate=True`` (unless the field is reset on the model itself).

View File

@ -1 +1,2 @@
To use this module, you need to open the models' form view and check field "Force No-Update" To use this module, you need to open the models' form view and check
field "Force No-Update"

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
@ -8,10 +9,11 @@
/* /*
:Author: David Goodger (goodger@python.org) :Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ :Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain. :Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils. Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet. customize this style sheet.
@ -274,7 +276,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ; margin-left: 2em ;
margin-right: 2em } margin-right: 2em }
pre.code .ln { color: grey; } /* line numbers */ pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee } pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 } pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@ -300,7 +302,7 @@ span.option {
span.pre { span.pre {
white-space: pre } white-space: pre }
span.problematic { span.problematic, pre.problematic {
color: red } color: red }
span.section-subtitle { span.section-subtitle {
@ -368,12 +370,13 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:da312318da6a5b90118144f6d5b265f86380b4c6d6c26eb129b5a534839bdc0e !! source digest: sha256:da312318da6a5b90118144f6d5b265f86380b4c6d6c26eb129b5a534839bdc0e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/SilvioC2C/server-tools/tree/16.0-new-base_force_record_noupdate/base_force_record_noupdate"><img alt="SilvioC2C/server-tools" src="https://img.shields.io/badge/github-SilvioC2C%2Fserver--tools-lightgray.png?logo=github" /></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/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/17.0/base_force_record_noupdate"><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_force_record_noupdate"><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 adds a boolean field on models form view, allowing to force <p>This module adds a boolean field on models form view, allowing to force
<tt class="docutils literal">noupdate=True</tt> to data linked to those models.</p> <tt class="docutils literal">noupdate=True</tt> to data linked to those models.</p>
<p>Upon setting the field to <tt class="docutils literal">True</tt> on a given model, <tt class="docutils literal">noupdate=True</tt> will be set upon <p>Upon setting the field to <tt class="docutils literal">True</tt> on a given model, <tt class="docutils literal">noupdate=True</tt>
existing data linked to it. When creating new data linked to that model, they will will be set upon existing data linked to it. When creating new data
always have <tt class="docutils literal">noupdate=True</tt> (unless the field is reset on the model itself).</p> linked to that model, they will always have <tt class="docutils literal">noupdate=True</tt> (unless
the field is reset on the model itself).</p>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents"> <div class="contents local topic" id="contents">
<ul class="simple"> <ul class="simple">
@ -389,14 +392,15 @@ always have <tt class="docutils literal">noupdate=True</tt> (unless the field is
</div> </div>
<div class="section" id="usage"> <div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1> <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>To use this module, you need to open the models form view and check field “Force No-Update”</p> <p>To use this module, you need to open the models form view and check
field “Force No-Update”</p>
</div> </div>
<div class="section" id="bug-tracker"> <div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1> <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/SilvioC2C/server-tools/issues">GitHub Issues</a>. <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. 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 If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/SilvioC2C/server-tools/issues/new?body=module:%20base_force_record_noupdate%0Aversion:%2016.0-new-base_force_record_noupdate%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20base_force_record_noupdate%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> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <div class="section" id="credits">
@ -416,8 +420,15 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
</div> </div>
<div class="section" id="maintainers"> <div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2> <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>This module is part of the <a class="reference external" href="https://github.com/SilvioC2C/server-tools/tree/16.0-new-base_force_record_noupdate/base_force_record_noupdate">SilvioC2C/server-tools</a> project on GitHub.</p> <p>This module is maintained by the OCA.</p>
<p>You are welcome to contribute.</p> <a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/17.0/base_force_record_noupdate">OCA/server-tools</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div> </div>
</div> </div>
</div> </div>

Binary file not shown.