Skip to content

Commit

Permalink
[UPD] README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
OCA-git-bot committed Jul 10, 2023
1 parent 9ca92c8 commit 50581d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 145 deletions.
68 changes: 1 addition & 67 deletions l10n_it_withholding_tax_reason/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,73 +32,6 @@ Bridge module between l10n_it_withholding_tax and l10n_it_payment_reason
.. contents::
:local:

Installation
============

**Italiano**

Qualora questo modulo venisse installato in un DB dove ``l10n_it_withholding_tax_causali`` è già installato, è necessario eseguire la seguente procedura.

#. Installare ``openupgradelib``:

.. code::
pip3 install git+https://github.com/OCA/openupgradelib.git@master
#. Lanciare Odoo con il paramentro ``shell``
#. Eseguire i seguenti comandi:

.. code:: python
>>> from openupgradelib import openupgrade
>>> openupgrade.rename_fields(
env,
[
(
"withholding.tax",
"withholding_tax",
"causale_pagamento_id",
"payment_reason_id",
),
],
)
>>> env.cr.commit()
#. Riavviare Odoo
#. Installare ``l10n_it_withholding_tax_reason``

**English**

When ``l10n_it_withholding_tax_causali`` is installed in the database you need to follow the following steps.

1. Install ``openupgradelib``:

.. code::
pip3 install git+https://github.com/OCA/openupgradelib.git@master
2. Run Odoo with the ``shell`` command
3. Execute the following commands:

.. code:: python
>>> from openupgradelib import openupgrade
>>> openupgrade.rename_fields(
env,
[
(
"withholding.tax",
"withholding_tax",
"causale_pagamento_id",
"payment_reason_id",
),
],
)
>>> env.cr.commit()
4. Restart Odoo
5. Install ``l10n_it_withholding_tax_reason`` module

Bug Tracker
===========

Expand All @@ -122,6 +55,7 @@ Contributors

* Marco Colombo <https://github.com/TheMule71>
* Alex Comba <[email protected]>
* Sergio Corato <https://github.com/sergiocorato>

Maintainers
~~~~~~~~~~~
Expand Down
89 changes: 11 additions & 78 deletions l10n_it_withholding_tax_reason/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,108 +372,41 @@ <h1 class="title">ITA - Causali pagamento per ritenute d’acconto</h1>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#installation" id="id1">Installation</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id1">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id2">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id3">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id4">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id5">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="installation">
<h1><a class="toc-backref" href="#id1">Installation</a></h1>
<p><strong>Italiano</strong></p>
<p>Qualora questo modulo venisse installato in un DB dove <tt class="docutils literal">l10n_it_withholding_tax_causali</tt> è già installato, è necessario eseguire la seguente procedura.</p>
<ol class="arabic">
<li><p class="first">Installare <tt class="docutils literal">openupgradelib</tt>:</p>
<pre class="code literal-block">
pip3 install git+https://github.com/OCA/openupgradelib.git&#64;master
</pre>
</li>
<li><p class="first">Lanciare Odoo con il paramentro <tt class="docutils literal">shell</tt></p>
</li>
<li><p class="first">Eseguire i seguenti comandi:</p>
<pre class="code python literal-block">
<span class="o">&gt;&gt;&gt;</span> <span class="kn">from</span> <span class="nn">openupgradelib</span> <span class="kn">import</span> <span class="n">openupgrade</span>
<span class="o">&gt;&gt;&gt;</span> <span class="n">openupgrade</span><span class="o">.</span><span class="n">rename_fields</span><span class="p">(</span>
<span class="n">env</span><span class="p">,</span>
<span class="p">[</span>
<span class="p">(</span>
<span class="s2">&quot;withholding.tax&quot;</span><span class="p">,</span>
<span class="s2">&quot;withholding_tax&quot;</span><span class="p">,</span>
<span class="s2">&quot;causale_pagamento_id&quot;</span><span class="p">,</span>
<span class="s2">&quot;payment_reason_id&quot;</span><span class="p">,</span>
<span class="p">),</span>
<span class="p">],</span>
<span class="p">)</span>
<span class="o">&gt;&gt;&gt;</span> <span class="n">env</span><span class="o">.</span><span class="n">cr</span><span class="o">.</span><span class="n">commit</span><span class="p">()</span>
</pre>
</li>
<li><p class="first">Riavviare Odoo</p>
</li>
<li><p class="first">Installare <tt class="docutils literal">l10n_it_withholding_tax_reason</tt></p>
</li>
</ol>
<p><strong>English</strong></p>
<p>When <tt class="docutils literal">l10n_it_withholding_tax_causali</tt> is installed in the database you need to follow the following steps.</p>
<ol class="arabic">
<li><p class="first">Install <tt class="docutils literal">openupgradelib</tt>:</p>
<pre class="code literal-block">
pip3 install git+https://github.com/OCA/openupgradelib.git&#64;master
</pre>
</li>
<li><p class="first">Run Odoo with the <tt class="docutils literal">shell</tt> command</p>
</li>
<li><p class="first">Execute the following commands:</p>
<pre class="code python literal-block">
<span class="o">&gt;&gt;&gt;</span> <span class="kn">from</span> <span class="nn">openupgradelib</span> <span class="kn">import</span> <span class="n">openupgrade</span>
<span class="o">&gt;&gt;&gt;</span> <span class="n">openupgrade</span><span class="o">.</span><span class="n">rename_fields</span><span class="p">(</span>
<span class="n">env</span><span class="p">,</span>
<span class="p">[</span>
<span class="p">(</span>
<span class="s2">&quot;withholding.tax&quot;</span><span class="p">,</span>
<span class="s2">&quot;withholding_tax&quot;</span><span class="p">,</span>
<span class="s2">&quot;causale_pagamento_id&quot;</span><span class="p">,</span>
<span class="s2">&quot;payment_reason_id&quot;</span><span class="p">,</span>
<span class="p">),</span>
<span class="p">],</span>
<span class="p">)</span>
<span class="o">&gt;&gt;&gt;</span> <span class="n">env</span><span class="o">.</span><span class="n">cr</span><span class="o">.</span><span class="n">commit</span><span class="p">()</span>
</pre>
</li>
<li><p class="first">Restart Odoo</p>
</li>
<li><p class="first">Install <tt class="docutils literal">l10n_it_withholding_tax_reason</tt> module</p>
</li>
</ol>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
<h1><a class="toc-backref" href="#id1">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-italy/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 smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_withholding_tax_reason%0Aversion:%2014.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="#id3">Credits</a></h1>
<h1><a class="toc-backref" href="#id2">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#id4">Authors</a></h2>
<h2><a class="toc-backref" href="#id3">Authors</a></h2>
<ul class="simple">
<li>Agile Business Group</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#id5">Contributors</a></h2>
<h2><a class="toc-backref" href="#id4">Contributors</a></h2>
<ul class="simple">
<li>Marco Colombo &lt;<a class="reference external" href="https://github.com/TheMule71">https://github.com/TheMule71</a>&gt;</li>
<li>Alex Comba &lt;<a class="reference external" href="mailto:alex.comba&#64;agilebg.com">alex.comba&#64;agilebg.com</a>&gt;</li>
<li>Sergio Corato &lt;<a class="reference external" href="https://github.com/sergiocorato">https://github.com/sergiocorato</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
<h2><a class="toc-backref" href="#id5">Maintainers</a></h2>
<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" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
Expand Down

0 comments on commit 50581d1

Please sign in to comment.