Repository
OCA/account-invoicing · module folder · Try on Runboat
Module version
1.0.0
Category
Accounting & Finance
Folder size
0.2 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-invoicing
Last tracking update
2026-08-07 08:42:46
Authors
Savoir-faire Linux, Odoo Community Association (OCA), Acsone SA/NV
Maintainers
Savoir-faire Linux
Committers
Weblate, OCA-git-bot, oca-ci, JasminSForgeFlow
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module checks that a supplier invoice/refund is not entered twice.
This is important because if you enter twice the same supplier invoice,
there is also a risk that you pay it twice !

This module adds a constraint on supplier invoice/refunds to check that
(commercial_partner_id, supplier_invoice_number) is unique, without
considering the case of the supplier invoice number. To activate that
feature:

- Go to Invoicing/Accounting \> Configuration \> Settings \> Vendor
  Bills
- Check the 'Check Unicity on Supplier Invoice Number' box.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
res_config_settings_form_view res.config.settings.form (in account_invoice_supplier_ref_unique) res.config.settings form Inherits account.res_config_settings_view_form
view_move_form account.move form Inherits account.view_move_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • supplier_invoice_number Char
    copy=False readonly=True string='Vendor invoice number'
Public methods (1)
  • copy(self, default=None)
    The unique vendor invoice number is not copied in vendor bills

New fields (1)
  • check_invoice_supplier_number Boolean
    help='Check this if you want to constraint the unicity for Invoice Supplier Number'
Public methods (0)

No public methods.

New fields (1)
  • check_invoice_supplier_number Boolean
    readonly=False related='company_id.check_invoice_supplier_number'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
88 days ago
Last activity
79 days ago
Repository
OCA/account-invoicing
Pull request
[19.0][MIG] account_invoice_supplier_ref_unique (#2363)