TIP: You can type at any time to perform a new search.
ITA - Ricevute bancarie
l10n_it_riba_oca · OCA/l10n-italy
- Repository
- OCA/l10n-italy · module folder · Try on Runboat
- Module version
- 1.2.2
- Category
- Localization/Italy
- Folder size
- 0.44 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/l10n-italy
- Last tracking update
- 2026-08-07 08:42:51
- Authors
- Odoo Community Association (OCA)
- Maintainers
- Odoo Community Association (OCA)
- Committers
- Simone Rubino, Weblate, OCA-git-bot, oca-ci, odooNextev, Matteo Mircoli, Riccardo
- Odoo dependencies
- Python dependencies
- openupgradelib, unidecode, cryptography
- System dependencies
- None
- Required by
- None
- Description
**Italiano** Modulo per gestire le ricevute bancarie.
Code Analysis ⓘ
Views touched (27)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
invoice_form |
account.move.form | account.move | form | Inherits account.view_move_form |
invoice_tree |
account.move.tree | account.move | tree | Inherits account.view_invoice_tree |
riba_credit |
riba.credit.wizard | riba.credit | form | New |
riba_due_date_settlement |
riba.due.date.settlement.wizard | riba.due.date.settlement | form | New |
riba_filter |
RiBa filter | account.move.line | list | Inherits account_due_list.view_payments_filter |
riba_issue_view |
riba.issue.wizard | riba.issue | form | New |
riba_past_due |
riba.past_due.wizard | riba.past_due | form | New |
riba_payment_multiple_view_form |
Form view for Pay multiple RiBa lines | riba.payment.multiple | form | New |
slip_layout |
slip_layout | ir.ui.view | qweb | New |
slip_qweb |
slip_qweb | ir.ui.view | qweb | New |
view_account_config_settings_riba |
view_account_config_settings_riba | res.config.settings | form | Inherits account.res_config_settings_view_form |
view_detail_riba_filter |
riba.slip.line.filter | riba.slip.line | search | New |
view_detail_riba_tree |
riba.slip.line.tree | riba.slip.line | list | New |
view_partner_bank_sia_form |
res.partner.bank.form.sia.inherit | res.partner.bank | form | Inherits base.view_partner_bank_form |
view_partner_form_riba |
res.parner.form.riba | res.partner | form | Inherits account.view_partner_property_form |
view_res_bank_add_text_field |
res.bank.add.text.field | res.bank | form | Inherits base.view_res_bank_form |
view_riba_add_text_field |
account.riba.add.text.field | account.payment.term | form | Inherits account.view_payment_term_form |
view_riba_configuration_form |
riba.configuration.form | riba.configuration | form | New |
view_riba_configuration_tree |
riba.configuration.tree | riba.configuration | list | New |
view_riba_slip_form |
riba.slip.form | riba.slip | form | New |
view_riba_slip_line_form |
riba.slip.line.form | riba.slip.line | form | New |
view_riba_to_issue_tree |
RiBa Issue | account.move.line | list | New |
view_slip_riba_filter |
riba.slip.filter | riba.slip | search | New |
view_slip_riba_tree |
riba.slip.tree | riba.slip | list | New |
wizard_presentation_riba |
presentation.riba.issue.wizard | presentation.riba.issue | form | New |
wizard_riba_file_export |
Export RiBa | riba.file.export | form | New |
wizard_riba_payment_date |
Set RiBa Payment Date | riba.payment.date | form | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (24)
New fields (0)
No new fields.
Public methods (3)-
get_riba_lines(self) -
unlink(self) -
unreconcile_riba_lines(self, riba_lines)Reset RiBa line states when reconciliation is undone. When account move lines are unreconciled, we need to revert RiBa lines to their previous state to maintain consistency in the RiBa workflow.
New fields (7)
-
is_riba_paymentBooleanrelated='invoice_payment_term_id.riba' args: 'Is RiBa Payment' -
open_amountFloatcompute='_compute_open_amount'default=0.0digits='Account'help='Amount currently only supposed to be paid, but has actually not happened' -
past_due_move_line_idsMany2many → account.move.lineargs: 'account.move.line', 'invoice_past_due_line_rel', 'move_id', 'line_id', 'Past Due Journal Items' -
riba_credited_idsOne2many → riba.slipreadonly=True args: 'riba.slip', 'credit_move_id', 'Credited RiBa Slips' -
riba_partner_bank_idMany2one → res.partner.bankhelp='Bank Account Number to which the RiBa will be debited. If not set, first bank in partner will be used.'string='RiBa Bank Account' args: 'res.partner.bank' -
riba_past_due_idsOne2many → riba.slip.linereadonly=True args: 'riba.slip.line', 'past_due_move_id', 'Past Due RiBa Slips' -
riba_supplier_company_bank_idMany2one → res.partner.bankcomodel_name='res.partner.bank'compute='_compute_riba_supplier_company_bank_id'domain=_domain_riba_supplier_company_bank_idhelp='Bank account used for the RiBa of this vendor bill.'store=Truestring='Company Bank Account for Supplier'
-
action_riba_payment_date(self) -
button_cancel(self) -
button_draft(self) -
copy(self, default=None) -
create(self, vals_list)@api.model_create_multi -
get_due_cost_line_ids(self) -
month_check(self, invoice_date_due, all_date_due):param invoice_date_due: first due date of invoice :param all_date_due: list of due dates for partner :return: True if month of invoice_date_due is in a list of all_date_due
New fields (6)
-
due_cost_lineBooleanargs: 'RiBa Collection Fees Line' -
ibanCharrelated='move_id.riba_partner_bank_id.acc_number'store=Falsestring='IBAN' -
past_due_invoice_idsMany2many → account.moveargs: 'account.move', 'invoice_past_due_line_rel', 'line_id', 'move_id', 'Past Due Invoices' -
ribaBooleanrelated='move_id.invoice_payment_term_id.riba'store=Falsestring='RiBa' -
slip_line_idMany2one → riba.slip.linereadonly=True args: 'riba.slip.line', 'RiBa Line' -
slip_line_idsOne2many → riba.slip.move.lineargs: 'riba.slip.move.line', 'move_line_id', 'RiBa Detail'
-
action_riba_issue(self) -
fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False)@api.model -
reconcile(self)Override reconcile to update RiBa line states. When account move lines are reconciled, we need to check if any of them are related to RiBa lines and update their status accordingly. -
update_paid_riba_lines(self)Update RiBa line status to 'paid' when move lines are reconciled. This method is called during reconciliation to mark RiBa lines as paid when the related account move lines are reconciled, but only if: - We're not in a past_due_reconciliation context - The RiBa line is in a state that allows transition to 'paid'
New fields (0)
No new fields.
Public methods (2)-
get_riba_lines(self) -
unlink(self)
New fields (2)
-
ribaBooleandefault=False args: 'RiBa' -
riba_payment_costFloatdigits='Account'help='Collection fees amount. If different from 0, for each payment deadline an invoice line will be added to invoice, with this amount.' args: 'RiBa Collection Fees'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
write(self, vals)
New fields (2)
-
currency_idMany2one → res.currencydefault=<expr> args: 'res.currency' -
presentation_amountMonetarycurrency_field='currency_id'
-
action_presentation_riba(self)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
banca_esteraBooleanargs: 'Foreign Bank'
No public methods.
New fields (1)
-
due_cost_service_idMany2one → product.productargs: 'product.product', 'Collection Fees Service'
No public methods.
New fields (1)
-
due_cost_service_idMany2onedomain=[('type', '=', 'service')]help='Default Service for RiBa Collection Fees on invoice.'readonly=Falserelated='company_id.due_cost_service_id'string='Default Collection Fees Service'
-
default_get(self, fields_list)@api.model
New fields (3)
-
group_ribaBooleanhelp='Group RiBa by customer while issuing.' args: 'Group RiBa' -
is_supplier_payment_ribaBooleanreadonly=Truerelated='property_supplier_payment_term_id.riba'string='Is RiBa Payment' -
property_riba_supplier_company_bank_idMany2one → res.partner.bankcomodel_name='res.partner.bank'company_dependent=Truedomain=_domain_property_riba_supplier_company_bank_idhelp='Bank account used for the RiBa of this supplier.'string='Company Bank Account for Supplier'
No public methods.
New fields (1)
-
codice_siaCharhelp='Identification Code of the Company in the Interbank System.'size=5 args: 'SIA Code'
-
unlink(self)
New fields (15)
-
acceptance_account_idMany2one → account.accountcheck_company=Truehelp='Account used when RiBa is accepted by the bank.'required=True args: 'account.account', 'Acceptance Account' -
acceptance_journal_idMany2one → account.journalcheck_company=Truehelp='Journal used when RiBa is accepted by the bank.'required=True args: 'account.journal', 'Acceptance Journal' -
bank_account_idMany2one → account.accountcheck_company=True args: 'account.account', 'A/C Bank Account' -
bank_expense_account_idMany2one → account.accountargs: 'account.account', 'Bank Fees Account' -
bank_idMany2one → res.partner.bankcheck_company=Truehelp='Bank account used for RiBa issuing.'required=True args: 'res.partner.bank', 'Bank Account' -
company_idMany2one → res.companydefault=<expr>required=True args: 'res.company', 'Company' -
credit_account_idMany2one → account.accountcheck_company=Truedomain="[('account_type', '!=', 'liability_credit_card')]"help='Account used when RiBa amount is credited by the bank.' args: 'account.account', 'RiBa Account' -
credit_journal_idMany2one → account.journalcheck_company=Truehelp='Journal used when RiBa amount is credited by the bank.' args: 'account.journal', 'Credit Journal' -
nameCharrequired=Truesize=64 args: 'Description' -
overdue_credit_account_idMany2one → account.accountcheck_company=True args: 'account.account', 'Past Due Bills Account' -
past_due_fee_amountFloatargs: 'Fee Amount' -
past_due_journal_idMany2one → account.journalcheck_company=Truehelp='Journal used when RiBa is past due.' args: 'account.journal', 'Past Due Journal' -
protest_charge_account_idMany2one → account.accountcheck_company=True args: 'account.account', 'Protest Fee Account' -
settlement_journal_idMany2one → account.journalcheck_company=Truehelp='Journal used when customers finally pay the invoice to bank.' args: 'account.journal', 'Settlement Journal' -
typeSelectionrequired=True args: [('sbf', 'Subject To Collection'), ('incasso', 'After Collection')], 'Issue Mode'
-
get_default_value_by_list(self, field_name) -
get_default_value_by_list_line(self, field_name)
New fields (8)
-
acceptance_account_idMany2one → account.accountdefault=_get_acceptance_account_idhelp='Liability account used during RiBa acceptance. This will be credited to reverse the acceptance entry.'string='Acceptance Account' args: 'account.account' -
acceptance_amountFloatdefault=_get_acceptance_amounthelp='Total amount from the RiBa slip that was recorded during acceptance. This amount will be used to reverse the acceptance liability.' -
bank_account_idMany2one → account.accountdefault=_get_bank_account_idhelp='Bank account from which collection fees will be paid. This account will be credited for any expense amounts.'string='Bank Account' args: 'account.account' -
bank_expense_account_idMany2one → account.accountdefault=_get_bank_expense_account_idhelp='Expense account for recording bank collection fees. This account will be debited for any fees charged by the bank.'string='Bank Fees Account' args: 'account.account' -
credit_account_idMany2one → account.accountdefault=_get_credit_account_idhelp='Asset account representing amounts credited by the bank. This will be debited with the credit amount.'string='RiBa Credit Account' args: 'account.account' -
credit_amountFloathelp='Amount the bank is crediting to the company. ' -
credit_journal_idMany2one → account.journaldefault=_get_credit_journal_idstring='Credit Journal' args: 'account.journal' -
expense_amountFloathelp='Amount of fees charged by the bank for the RiBa collection service. If specified, separate entries will be created for the fee payment.'string='Bank Fees Amount'
-
create_move(self)Create bank credit accounting move for RiBa slip. This method handles the bank credit phase of the RiBa process, where the bank credits the company's account with the RiBa amount (minus any fees). This typically happens when the bank accepts the RiBa collection and provides immediate liquidity to the company. Accounting Flow: 1. Debit RiBa Account (asset) - Amount the bank will collect 2. Credit Acceptance Account (liability) - Offset the acceptance entry 3. Optional: Debit Bank Fees (expense) - Bank collection fees 4. Optional: Credit Bank Account (asset) - Fees paid from bank account Business Context: - After RiBa acceptance, bank may credit company account immediately - Company receives liquidity but bank retains collection risk - If customer doesn't pay, bank may reverse the credit (past due) :return: Action to display the created accounting move :rtype: dict :raises UserError: If required accounts are not configured or active_id missing
New fields (1)
-
due_dateDate
-
due_date_settlement_confirm(self)
New fields (3)
-
file_nameCharreadonly=True -
riba_txtBinaryreadonly=True args: 'File' -
stateSelectiondefault='choose' args: (('choose', 'choose'), ('get', 'get'))
-
act_getfile(self)
New fields (1)
-
configuration_idMany2one → riba.configurationrequired=Truestring='Configuration' args: 'riba.configuration'
-
create_list(self)
New fields (13)
-
acceptance_account_idMany2one → account.accountdefault=_get_acceptance_account_id args: 'account.account', 'Acceptance Account' -
bank_account_idMany2one → account.accountdefault=_get_bank_account_id args: 'account.account', 'A/C Bank Account' -
bank_expense_account_idMany2one → account.accountdefault=_get_bank_expense_account_id args: 'account.account', 'Bank Fees Account' -
charge_to_customerBooleanargs: 'Charge the customer the costs' -
config_typeSelectiondefault=_get_config_type args: [('sbf', 'Subject To Collection'), ('incasso', 'After Collection')], 'Issue Mode' -
credit_account_idMany2one → account.accountdefault=_get_credit_account_id args: 'account.account', 'Credit Account' -
credit_amountFloatdefault=_get_credit_amount -
dateDatehelp='If empty, the due date in the line will be used.'readonly=False -
expense_amountFloatargs: 'Fees Amount' -
overdue_credit_account_idMany2one → account.accountdefault=_get_overdue_credit_account_id args: 'account.account', 'Past Due Bills Account' -
overdue_credit_amountFloatdefault=_get_credit_amount args: 'Past Due Bills Amount' -
past_due_fee_amountFloatdefault=_get_unsolved_past_due_fee_amount args: 'Past Due Fees Amount' -
past_due_journal_idMany2one → account.journaldefault=_get_past_due_journal_iddomain=[('type', '=', 'bank')] args: 'account.journal', 'Past Due Journal'
-
create_move(self) -
skip(self)
New fields (1)
-
dateDaterequired=Truestring='Payment Date'
-
set_riba_payment_date(self) -
skip(self)
New fields (3)
-
payment_dateDatecompute='_compute_payment_date'help="Defaults to the 'Payment date' in the RiBas.\nIf empty, the due date in each line will be used."readonly=Falsestore=True -
riba_idsMany2many → riba.slipcomodel_name='riba.slip'default=<expr>readonly=Truerequired=Truestring='Selected RiBas' -
riba_line_idsMany2many → riba.slip.linecomodel_name='riba.slip.line'compute='_compute_riba_line_ids'domain="['&',('slip_id', 'in', riba_ids),'|','&',('type', '=', 'sbf'),('state', '=', 'credited'),'&',('type', '=', 'incasso'),('state', '=', 'confirmed'),]"readonly=Falsestore=Truestring='RiBa lines to be paid'
-
pay(self) -
skip(self)
New fields (18)
-
acceptance_move_idsMany2many → account.movecompute='_compute_acceptance_move_ids'string='Acceptance Entries' args: 'account.move' -
company_idMany2one → res.companydefault=<expr>required=True args: 'res.company', 'Company' -
config_idMany2one → riba.configurationhelp='RiBa configuration to be used.'index=Truestring='Configuration' args: 'riba.configuration' -
credit_move_idMany2one → account.movereadonly=True args: 'account.move', 'Credit Entry' -
date_acceptedDateargs: 'Acceptance Date' -
date_createdDatedefault=<expr>readonly=True args: 'Creation Date' -
date_creditedDateargs: 'Credit Date' -
date_paidDatehelp='Default date for payments.'string='Payment Date' -
date_past_dueDatereadonly=True args: 'Past Due Date' -
line_idsOne2many → riba.slip.lineargs: 'riba.slip.line', 'slip_id', 'RiBa Due Dates' -
nameChardefault=<expr>required=True args: 'Reference' -
past_due_move_idsMany2many → account.movecompute='_compute_past_due_move_ids'string='Past Due Entries' args: 'account.move' -
payment_idsMany2many → account.move.linecompute='_compute_payment_ids'string='Payments' args: 'account.move.line' -
registration_dateDatedefault=<expr>help='Keep empty to use the current date.'required=True -
stateSelectiondefault='draft'readonly=True args: [('draft', 'Draft'), ('accepted', 'Accepted'), ('credited', 'Credited'), ('paid', 'Paid'), ('past_due', 'Past Due'), ('cancel', 'Canceled')] -
total_amountFloatcompute='_compute_total_amount'string='Amount' -
typeSelectionreadonly=Truerelated='config_id.type'string='Type' -
user_idMany2one → res.usersdefault=<expr>required=True args: 'res.users', 'User'
-
action_cancel_draft(self) -
action_open_lines(self) -
action_riba_due_date_settlement(self) -
action_riba_export(self) -
confirm(self) -
riba_cancel(self) -
riba_past_due(self) -
settle_all_line(self) -
test_accepted(self) -
test_paid(self) -
test_past_due(self) -
test_state(self, state)
New fields (21)
-
acceptance_account_idMany2one → account.accountstring='Acceptance Account' args: 'account.account' -
acceptance_move_idMany2one → account.movereadonly=Truestring='Acceptance Entry' args: 'account.move' -
amountFloatcompute='_compute_line_values' -
bank_idMany2one → res.partner.bankstring='Debtor Bank' args: 'res.partner.bank' -
cigCharcompute='_compute_cig_cup_values'size=256string='CIG' -
company_idMany2one → res.companyreadonly=Truerelated='slip_id.company_id'related_sudo=Falsestore=Truestring='Company' args: 'res.company' -
config_idMany2onereadonly=Truerelated='slip_id.config_id'string='Configuration' -
credit_move_idMany2one → account.movereadonly=Truestring='Credit Entry' args: 'account.move' -
cupCharcompute='_compute_cig_cup_values'size=256string='CUP' -
due_dateDatereadonly=True -
ibanCharreadonly=Truerelated='bank_id.acc_number'store=Falsestring='IBAN' -
invoice_dateCharcompute='_compute_line_values'size=256 -
invoice_numberCharcompute='_compute_line_values'size=256 -
move_line_idsOne2many → riba.slip.move.linestring='Credit Move Lines' args: 'riba.slip.move.line', 'riba_line_id' -
partner_idMany2one → res.partnerreadonly=Truestring='Customer' args: 'res.partner' -
past_due_move_idMany2one → account.movereadonly=Truestring='Past Due Entry' args: 'account.move' -
payment_idMany2one → account.move.linereadonly=Truestring='Payments' args: 'account.move.line' -
sequenceIntegerargs: 'Number' -
slip_idMany2one → riba.slipondelete='cascade'required=Truestring='Slip' args: 'riba.slip' -
stateSelectionreadonly=Truetracking=True args: [('draft', 'Draft'), ('confirmed', 'Confirmed'), ('credited', 'Credited'), ('paid', 'Paid'), ('past_due', 'Past Due'), ('cancel', 'Canceled')] -
typeSelectionreadonly=Truerelated='slip_id.config_id.type'string='Type'
-
button_settle(self) -
confirm(self) -
riba_line_settlement(self, date=None)Create settlement payment entries for RiBa lines. This method handles the final settlement of RiBa lines by creating accounting entries that record the actual payment received from customers through the bank. It reconciles the credit account with the bank account to complete the RiBa collection process. Settlement Process: 1. Find the original credit move line that needs to be settled 2. Calculate the settlement amount (considering partial payments for SBF) 3. Create settlement move with: - Credit line: reduces the RiBa credit account - Debit line: increases the bank account 4. Reconcile all related move lines to close the collection cycle :param date: The settlement date. If not provided, uses today's date. :type date: date or None :raises UserError: If settlement journal is not configured Business Flow: - Customer pays invoice → Bank receives payment → Bank notifies company - Company records settlement → RiBa line moves to 'paid' state -
settle_riba_line(self)
New fields (3)
-
amountFloatdigits='Account' -
move_line_idMany2one → account.move.linestring='Credit Move Line' args: 'account.move.line' -
riba_line_idMany2one → riba.slip.lineondelete='cascade'string='Slip Line' args: 'riba.slip.line'
No public methods.
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 195 days ago
- Last activity
- 15 days ago
- Repository
- OCA/l10n-italy
- Pull request
- [19.0][MIG] l10n_it_riba_oca: Migration to 19.0 (#5090)