forked from OCA/operating-unit
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #666 from OCA/15.0
Syncing from upstream OCA/operating-unit (15.0)
- Loading branch information
Showing
14 changed files
with
23 additions
and
164 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
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
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
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,9 +1,3 @@ | ||
# Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import aged_partner_balance_wizard | ||
from . import general_ledger_wizard | ||
from . import journal_ledger_wizard | ||
from . import open_items_wizard | ||
from . import trial_balance_wizard | ||
from . import vat_report_wizard | ||
from . import abstract_wizard |
10 changes: 5 additions & 5 deletions
10
...erating_unit/wizards/vat_report_wizard.py → ...operating_unit/wizards/abstract_wizard.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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th) | ||
# Copyright 2025 Ecosoft Co., Ltd. (http://ecosoft.co.th) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class VATReportWizard(models.TransientModel): | ||
_inherit = "vat.report.wizard" | ||
class AbstractWizard(models.AbstractModel): | ||
_inherit = "account_financial_report_abstract_wizard" | ||
|
||
operating_unit_ids = fields.Many2many( | ||
comodel_name="operating.unit", | ||
) | ||
|
||
def _prepare_vat_report(self): | ||
res = super()._prepare_vat_report() | ||
def _prepare_report_data(self): | ||
res = super()._prepare_report_data() | ||
res.update({"operating_unit_ids": self.operating_unit_ids.ids or []}) | ||
return res |
17 changes: 0 additions & 17 deletions
17
account_financial_report_operating_unit/wizards/aged_partner_balance_wizard.py
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
account_financial_report_operating_unit/wizards/general_ledger_wizard.py
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
account_financial_report_operating_unit/wizards/journal_ledger_wizard.py
This file was deleted.
Oops, something went wrong.
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
17 changes: 0 additions & 17 deletions
17
account_financial_report_operating_unit/wizards/open_items_wizard.py
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
account_financial_report_operating_unit/wizards/trial_balance_wizard.py
This file was deleted.
Oops, something went wrong.