Repository
OCA/account-closing · module folder · Try on Runboat
Module version
1.1.0
Category
Invoice
Folder size
0.55 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
http://www.acsone.eu
Last tracking update
2026-08-07 07:17:50
Authors
ACSONE SA/NV, Odoo Community Association (OCA)
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA)
Committers
Jacques-Etienne Baudoux, Stéphane Bidoul (ACSONE), Weblate, OCA Transbot, OCA-git-bot, oca-travis, OCA Git Bot
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
account_invoice_accrual_merge
Description

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
invoice_form account.invoice.form (account_invoice_accrual) account.invoice form Inherits account.invoice_form
invoice_supplier_form account.invoice.supplier.form (account_invoice_accrual) account.invoice form Inherits account.invoice_supplier_form
view_account_move_accrue account.move.accrue.form account.move.accrue form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (2)
  • accrual_move_id Many2one → account.move
    copy=False help='Link to the Accrual Journal Items.' ondelete='set null' readonly=True args: 'account.move', 'Accrual Journal Entry'
  • to_be_reversed Boolean
    related='accrual_move_id.to_be_reversed' args: 'To be reversed'
Public methods (7)
  • action_cancel(self)
    @api.multi
  • button_reversal(self)
    @api.multi
  • create_accruals(self, accrual_date, account_id, accrual_journal_id=False, move_prefix=False, move_line_prefix=False)
    @api.multi
    Create the accrual of one or multiple invoices :param accrual_date: when the accrual must be input :param accrual_journal_id: facultative journal on which create the move :param move_prefix: prefix for the move's name :param move_line_prefix: prefix for the move line's names :return: Returns a list of ids of the created accrual moves
  • invoice_validate(self)
    @api.multi
  • line_get_convert(self, line, part)
    @api.model
  • reverse_accruals(self)
  • unlink(self)
    @api.multi

New fields (0)

No new fields.

Public methods (1)
  • move_line_get_item(self, line)
    @api.model

New fields (5)
  • account_id Many2one → account.account
    default=<expr> required=True args: 'account.account', 'Accrual account'
  • date Date
    default=<expr> help='Enter the date of the accrual account entries. By default, Odoo proposes the last day of the previous month.' required=True args: 'Accrual Date'
  • journal_id Many2one → account.journal
    default=<expr> help='' args: 'account.journal', 'Accrual Journal'
  • move_line_prefix Char
    default='ACC -' help='Prefix that will be added to the name of the journal item to create the name of the accrual journal item (a space is added after the prefix).' size=32 args: 'Items Name Prefix'
  • move_prefix Char
    help="Prefix that will be added to the 'Ref' of the journal entry to create the 'Ref' of the accrual journal entry (no space added after the prefix)." size=32 args: 'Entries Ref. Prefix'
Public methods (1)
  • action_accrue(self)
    @api.multi

Loading…