Repository
OCA/account-payment · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.73 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-payment
Last tracking update
2026-08-07 09:06:25
Authors
Odoo Community Association (OCA), Tecnativa, 7 i TRIA, initOS GmbH & Co.
Maintainers
Odoo Community Association (OCA), Tecnativa, 7 i TRIA, initOS GmbH & Co.
Committers
Weblate, OCA-git-bot, oca-ci, arantxa-s73, Vicent-S73
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
account_payment_return_import
Description
This module implements customer receivables returns and allows to send
related reconciled account move lines back to a state where the debt is
still open, and letting history of it.

This module can be extended adding importers that automatically fills
the full returned payment record.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
payment_return_form_view payment.return.form payment.return form New
payment_return_search_view payment.return.search payment.return search New
payment_return_tree_view payment.return.tree payment.return list New
view_account_invoice_filter account.invoice.select.inherit account.move Inherits account.view_account_invoice_filter
view_account_journal_form account.journal.form account.journal form Inherits account.view_account_journal_form
view_move_form account.move.form.inherit account.move form Inherits account.view_move_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (7)

New fields (2)
  • default_expense_account_id Many2one → account.account
    comodel_name='account.account' help='Default account for bank charges' string='Default Charges Account'
  • default_expense_partner_id Many2one → res.partner
    comodel_name='res.partner' help='Default partner for charge expenses' string='Default Charges Partner'
Public methods (0)

No public methods.

New fields (1)
  • returned_payment Boolean
    copy=False help='Invoice has been included on a payment that has been returned later.' string='Payment returned'
Public methods (2)
  • check_payment_return(self)
  • prepare_values_returned_widget(self, line_id, amount, is_return=False)

New fields (1)
  • partial_reconcile_returned_ids Many2many → account.partial.reconcile
    column1='move_line_id' column2='partial_reconcile_id' comodel_name='account.partial.reconcile' copy=False relation='account_partial_reconcile_account_move_line_rel'
Public methods (0)

No public methods.

New fields (1)
  • origin_returned_move_ids Many2many → account.move.line
    column1='partial_reconcile_id' column2='move_line_id' comodel_name='account.move.line' copy=False relation='account_partial_reconcile_account_move_line_rel'
Public methods (0)

No public methods.

New fields (9)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True string='Company'
  • date Date
    default=<expr> help='This date will be used as the account entry date.' string='Return date'
  • journal_id Many2one → account.journal
    comodel_name='account.journal' required=True string='Bank journal'
  • line_ids One2many → payment.return.line
    comodel_name='payment.return.line' inverse_name='return_id'
  • move_id Many2one → account.move
    comodel_name='account.move' copy=False string='Reference to the created journal entry'
  • name Char
    default=<expr> required=True string='Reference'
  • payment_method_line_id Many2one → account.payment.method.line
    comodel_name='account.payment.method.line' domain="[('payment_type', '=', 'inbound'), ('journal_id', '=', journal_id)]"
  • state Selection
    default='draft' readonly=True selection=[('draft', 'Draft'), ('imported', 'Imported'), ('done', 'Done'), ('cancelled', 'Cancelled')] tracking=True
  • total_amount Float
    compute='_compute_total_amount' readonly=True store=False
Public methods (5)
  • action_cancel(self)
  • action_confirm(self)
  • action_draft(self)
  • button_match(self)
  • unlink(self)

New fields (13)
  • amount Float
    digits='Account' help='Returned amount. Can be different from the move amount'
  • concept Char
    help='Read from imported file. Only for reference.'
  • date Date
    help='Only for reference' string='Return date'
  • expense_account Many2one → account.account
    comodel_name='account.account' string='Charges Account'
  • expense_amount Float
    string='Charges Amount'
  • expense_partner_id Many2one → res.partner
    comodel_name='res.partner' domain=[('supplier_rank', '>', 0)] string='Charges Partner'
  • move_line_ids Many2many → account.move.line
    comodel_name='account.move.line' string='Payment Reference'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' domain="[('customer_rank', '>', 0)]" string='Customer'
  • partner_name Char
    help='Read from imported file. Only for reference.' readonly=True
  • reason_additional_information Char
    help='Additional information on return reason.' string='Return reason (info)'
  • reason_id Many2one → payment.return.reason
    comodel_name='payment.return.reason' string='Return reason'
  • reference Char
    help='Reference to match moves from related documents'
  • return_id Many2one → payment.return
    comodel_name='payment.return' ondelete='cascade' required=True string='Payment return'
Public methods (3)
  • match_invoice(self)
  • match_move(self)
  • match_move_lines(self)

New fields (3)
  • code Char
  • display_name Char
    compute='_compute_display_name' search='_search_display_name'
  • name Char
    string='Reason' translate=True
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…