ITA - Causali pagamento per ritenute d'acconto
Bridge module between l10n_it_withholding_tax and l10n_it_payment_reason
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Adds a "Payment reason" field to Italian withholding taxes, so each withholding tax can be linked to a payment reason. It is installed automatically when both the Italian withholding tax and payment reason modules are present.
This is a small bridge module for the Italian localization. It connects two existing features: withholding taxes (ritenute d'acconto) and payment reasons (causali di pagamento).
What it changes: - On the withholding tax form, a new field called "Payment reason" appears right after the payment term field. Users can pick one payment reason from the existing payment reasons list. - The link is stored on each withholding tax record, so the chosen payment reason is remembered and can be reused wherever that withholding tax is applied.
The module does not add menus, buttons, reports, checks, or automatic calculations. It only extends the withholding.tax model with a link to payment.reason and adds that field to the existing withholding tax form view. No new screens are created; the change is visible inside the withholding tax configuration screen.
Because the module is set to install automatically, it becomes active as soon as both required modules are installed, without any manual step. The field is optional, so existing withholding taxes keep working without a payment reason until one is selected.
Required by other modules
Models and fields (1)
- withholding.tax · extends an existing modelpayment_reason_id (Payment reason)
Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/l10n-italy.
terminal Installation and usage
OCA documentation · Odoo 16.0Installation
Source · Odoo 16.0Italiano
Qualora questo modulo venisse installato in un DB dove l10n_it_withholding_tax_causali è già installato, è necessario eseguire la seguente procedura.
- Installare
openupgradelib:
pip3 install git+https://github.com/OCA/openupgradelib.git@master- Lanciare Odoo con il paramentro
shell - Eseguire i seguenti comandi:
>>> 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.
- Install
openupgradelib:
pip3 install git+https://github.com/OCA/openupgradelib.git@master- Run Odoo with the
shellcommand - Execute the following commands:
>>> from openupgradelib import openupgrade
>>> openupgrade.rename_fields(
env,
[
(
"withholding.tax",
"withholding_tax",
"causale_pagamento_id",
"payment_reason_id",
),
],
)
>>> env.cr.commit()- Restart Odoo
- Install
l10n_it_withholding_tax_reasonmodule
No verified information in OCA: Configuration, Usage.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.