Browse Source

[FIX] Default company should not be used since it doesn't mutate when switching companies.

pull/766/head
Cas Vissers 4 years ago
parent
commit
584fd4e6e2
  1. 2
      account_financial_report/wizard/aged_partner_balance_wizard.py
  2. 2
      account_financial_report/wizard/general_ledger_wizard.py
  3. 2
      account_financial_report/wizard/journal_ledger_wizard.py
  4. 2
      account_financial_report/wizard/open_items_wizard.py
  5. 2
      account_financial_report/wizard/trial_balance_wizard.py
  6. 2
      account_financial_report/wizard/vat_report_wizard.py

2
account_financial_report/wizard/aged_partner_balance_wizard.py

@ -15,7 +15,7 @@ class AgedPartnerBalanceWizard(models.TransientModel):
company_id = fields.Many2one(
comodel_name="res.company",
default=lambda self: self.env.user.company_id,
default=lambda self: self.env.company,
required=False,
string="Company",
)

2
account_financial_report/wizard/general_ledger_wizard.py

@ -24,7 +24,7 @@ class GeneralLedgerReportWizard(models.TransientModel):
company_id = fields.Many2one(
comodel_name="res.company",
default=lambda self: self.env.user.company_id,
default=lambda self: self.env.company,
required=False,
string="Company",
)

2
account_financial_report/wizard/journal_ledger_wizard.py

@ -12,7 +12,7 @@ class JournalLedgerReportWizard(models.TransientModel):
company_id = fields.Many2one(
comodel_name="res.company",
default=lambda self: self.env.user.company_id,
default=lambda self: self.env.company,
string="Company",
required=False,
ondelete="cascade",

2
account_financial_report/wizard/open_items_wizard.py

@ -15,7 +15,7 @@ class OpenItemsReportWizard(models.TransientModel):
company_id = fields.Many2one(
comodel_name="res.company",
default=lambda self: self.env.user.company_id,
default=lambda self: self.env.company,
required=False,
string="Company",
)

2
account_financial_report/wizard/trial_balance_wizard.py

@ -18,7 +18,7 @@ class TrialBalanceReportWizard(models.TransientModel):
company_id = fields.Many2one(
comodel_name="res.company",
default=lambda self: self.env.user.company_id,
default=lambda self: self.env.company,
required=False,
string="Company",
)

2
account_financial_report/wizard/vat_report_wizard.py

@ -11,7 +11,7 @@ class VATReportWizard(models.TransientModel):
company_id = fields.Many2one(
comodel_name="res.company",
default=lambda self: self.env.user.company_id,
default=lambda self: self.env.company,
required=False,
string="Company",
)

Loading…
Cancel
Save