Skip to content
Snippets Groups Projects
Commit 4f00202f authored by Quentin De Paoli's avatar Quentin De Paoli
Browse files

[FIX] account: fixed old references to account_extra_report module forgotten...

[FIX] account: fixed old references to account_extra_report module forgotten during the merge into account
parent e7bc4e97
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ from openerp import api, models
class ReportJournal(models.AbstractModel):
_name = 'report.account_extra_reports.report_journal'
_name = 'report.account.report_journal'
def lines(self, target_move, journal_ids, sort_selection, data):
if isinstance(journal_ids, int):
......@@ -112,4 +112,4 @@ class ReportJournal(models.AbstractModel):
'sum_debit': self._sum_debit,
'get_taxes': self._get_taxes,
}
return self.env['report'].render('account_extra_reports.report_journal', docargs)
return self.env['report'].render('account.report_journal', docargs)
......@@ -5,7 +5,7 @@ from openerp import api, models
class ReportPartnerLedger(models.AbstractModel):
_name = 'report.account_extra_reports.report_partnerledger'
_name = 'report.account.report_partnerledger'
def _lines(self, data, partner):
full_account = []
......@@ -107,4 +107,4 @@ class ReportPartnerLedger(models.AbstractModel):
'lines': self._lines,
'sum_partner': self._sum_partner,
}
return self.env['report'].render('account_extra_reports.report_partnerledger', docargs)
return self.env['report'].render('account.report_partnerledger', docargs)
......@@ -71,20 +71,20 @@
<report
id="action_report_journal"
model="account_extra_reports.report.journal"
model="account.report.journal"
string="Sale/Purchase Journal"
report_type="qweb-pdf"
name="account_extra_reports.report_journal"
file="account_extra_reports.report_journal"
name="account.report_journal"
file="account.report_journal"
/>
<report
id="action_report_partnerledger"
model="account_extra_reports.report_partnerledger"
model="account.report_partnerledger"
string="Partner Ledger"
report_type="qweb-pdf"
name="account_extra_reports.report_partnerledger"
file="account_extra_reports.report_partnerledger"
name="account.report_partnerledger"
file="account.report_partnerledger"
/>
</data>
......
......@@ -15,4 +15,4 @@ class AccountPartnerLedger(models.TransientModel):
def _print_report(self, data):
data = self.pre_print_report(data)
data['form'].update({'reconciled': self.reconciled, 'amount_currency': self.amount_currency})
return self.env['report'].get_action(self, 'account_extra_reports.report_partnerledger', data=data)
return self.env['report'].get_action(self, 'account.report_partnerledger', data=data)
......@@ -14,4 +14,4 @@ class AccountPrintJournal(models.TransientModel):
def _print_report(self, data):
data = self.pre_print_report(data)
data['form'].update({'sort_selection': self.sort_selection})
return self.env['report'].with_context(landscape=True).get_action(self, 'account_extra_reports.report_journal', data=data)
return self.env['report'].with_context(landscape=True).get_action(self, 'account.report_journal', data=data)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment