Skip to content

Commit

Permalink
account_invoice_accrual: remove settings that should be in the base m…
Browse files Browse the repository at this point in the history
…odule
  • Loading branch information
sbidoul committed Oct 30, 2024
1 parent 4271026 commit a12f472
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 79 deletions.
1 change: 0 additions & 1 deletion account_invoice_accrual/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from . import account_move
from . import account_move_line
from . import res_company
16 changes: 0 additions & 16 deletions account_invoice_accrual/models/res_company.py

This file was deleted.

1 change: 0 additions & 1 deletion account_invoice_accrual/wizards/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from . import account_move_accrue
from . import account_move_reversal
from . import res_config_settings
11 changes: 1 addition & 10 deletions account_invoice_accrual/wizards/account_move_accrue.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,7 @@ def _default_journal(self):
and self.env.context["active_model"] == "account.move"
):
inv = self.env["account.move"].browse(self.env.context["active_ids"])[0]
if inv.move_type in ("out_invoice", "out_refund"):
journal_id = (
inv.company_id.dft_accrual_revenue_journal_id.id
or inv.company_id.default_cutoff_journal_id.id
)
else:
journal_id = (
inv.company_id.dft_accrual_expense_journal_id.id
or inv.company_id.default_cutoff_journal_id.id
)
journal_id = inv.company_id.default_cutoff_journal_id.id
return journal_id

@api.model
Expand Down
16 changes: 0 additions & 16 deletions account_invoice_accrual/wizards/res_config_settings.py

This file was deleted.

35 changes: 0 additions & 35 deletions account_invoice_accrual/wizards/res_config_settings.xml

This file was deleted.

0 comments on commit a12f472

Please sign in to comment.