-
-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] l10n_it_fatturapa_out: Max invoice fallback on configured value
Co-authored-by: Simone Rubino <[email protected]>
- Loading branch information
1 parent
7cdda04
commit 02974fc
Showing
3 changed files
with
81 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Copyright 2019 Roberto Fichera <[email protected]> | ||
# Copyright 2023 Simone Rubino - Aion Tech | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
from odoo import _, api, fields, models | ||
|
@@ -11,7 +12,10 @@ class ResPartner(models.Model): | |
max_invoice_in_xml = fields.Integer( | ||
string="Max Invoice # in XML", | ||
default=lambda self: self.env.company.max_invoice_in_xml, | ||
help="Maximum number of invoices to group in a single " "XML file. 0=Unlimited", | ||
help="Maximum number of invoices to group in a single " | ||
"XML file.\n" | ||
"If this is 0, then the number configured " | ||
"in the account settings is considered.", | ||
) | ||
|
||
@api.constrains("max_invoice_in_xml") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters