forked from OCA/l10n-italy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ca92c8
commit 50581d1
Showing
2 changed files
with
12 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
=========== | ||
|
||
|
@@ -122,6 +55,7 @@ Contributors | |
|
||
* Marco Colombo <https://github.com/TheMule71> | ||
* Alex Comba <[email protected]> | ||
* Sergio Corato <https://github.com/sergiocorato> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters