Skip to content

Commit

Permalink
Merge PR #78 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
github-grap-bot committed Jan 28, 2025
2 parents 721b3e3 + 62340a2 commit cc80727
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion fiscal_company_account/models/account_journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import models
from odoo import fields, models


class AccountJournal(models.Model):
Expand All @@ -16,6 +16,14 @@ class AccountJournal(models.Model):

_fiscal_company_forbid_fiscal_type = ["group"]

default_account_id = fields.Many2one(check_company=False)

suspense_account_id = fields.Many2one(check_company=False)

profit_account_id = fields.Many2one(check_company=False)

loss_account_id = fields.Many2one(check_company=False)

def _get_journal_dashboard_data_batched(self):
# Modify Context to add domain based on allowed companies
# when making request on account.move
Expand Down
2 changes: 2 additions & 0 deletions fiscal_company_account/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ status for french companies.
* product_category / property_account_expense_categ_id;

* Hide the Account Dashboard menu.

* Allow to create journals that belong to child company and account to CAE.

0 comments on commit cc80727

Please sign in to comment.