-
-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP][account_financial_report]: add custom intervals for aged partne…
…r report
- Loading branch information
1 parent
11d3bcf
commit ab779ba
Showing
11 changed files
with
556 additions
and
117 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
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
24 changes: 24 additions & 0 deletions
24
account_financial_report/models/account_age_report_configuration.py
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright 2023 Ernesto García | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
from odoo import fields, models | ||
|
||
|
||
class AccountAgeReportConfiguration(models.Model): | ||
_name = "account.age.report.configuration" | ||
_description = "Model to set intervals for Age partner balance report" | ||
|
||
name = fields.Char() | ||
company_id = fields.Many2one("res.company", default=lambda self: self.env.company) | ||
line_ids = fields.One2many( | ||
"account.age.report.configuration.line", "account_age_report_config_id" | ||
) | ||
|
||
|
||
class AccountAgeReportConfigurationLine(models.Model): | ||
_name = "account.age.report.configuration.line" | ||
|
||
name = fields.Char() | ||
code = fields.Char() | ||
account_age_report_config_id = fields.Many2one("account.age.report.configuration") | ||
lower_limit = fields.Integer() | ||
superior_limit = fields.Integer() |
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
Oops, something went wrong.