Browse Source
[MIG] report_py3o, report_py3o_fusion_server: Migration to 12.0
14.0-report-py3o-pr-506
[MIG] report_py3o, report_py3o_fusion_server: Migration to 12.0
14.0-report-py3o-pr-506
Laurent Mignon (ACSONE)
6 years ago
committed by
default
82 changed files with 229 additions and 241 deletions
-
7report_py3o/__manifest__.py
-
21report_py3o/controllers/main.py
-
14report_py3o/demo/report_py3o.xml
-
2report_py3o/i18n/am.po
-
2report_py3o/i18n/ar.po
-
2report_py3o/i18n/bg.po
-
2report_py3o/i18n/bs.po
-
2report_py3o/i18n/ca.po
-
2report_py3o/i18n/cs.po
-
2report_py3o/i18n/da.po
-
2report_py3o/i18n/de.po
-
2report_py3o/i18n/el_GR.po
-
2report_py3o/i18n/en_GB.po
-
2report_py3o/i18n/es.po
-
2report_py3o/i18n/es_AR.po
-
2report_py3o/i18n/es_CL.po
-
2report_py3o/i18n/es_CO.po
-
2report_py3o/i18n/es_CR.po
-
2report_py3o/i18n/es_DO.po
-
2report_py3o/i18n/es_EC.po
-
2report_py3o/i18n/es_ES.po
-
2report_py3o/i18n/es_MX.po
-
2report_py3o/i18n/es_PE.po
-
2report_py3o/i18n/es_PY.po
-
2report_py3o/i18n/es_VE.po
-
2report_py3o/i18n/et.po
-
2report_py3o/i18n/eu.po
-
2report_py3o/i18n/fa.po
-
2report_py3o/i18n/fi.po
-
2report_py3o/i18n/fr.po
-
2report_py3o/i18n/fr_CA.po
-
2report_py3o/i18n/fr_CH.po
-
2report_py3o/i18n/gl.po
-
2report_py3o/i18n/gl_ES.po
-
2report_py3o/i18n/he.po
-
2report_py3o/i18n/hr.po
-
2report_py3o/i18n/hr_HR.po
-
2report_py3o/i18n/hu.po
-
2report_py3o/i18n/id.po
-
2report_py3o/i18n/it.po
-
2report_py3o/i18n/ja.po
-
2report_py3o/i18n/ko.po
-
2report_py3o/i18n/lt.po
-
2report_py3o/i18n/lt_LT.po
-
2report_py3o/i18n/lv.po
-
2report_py3o/i18n/mk.po
-
2report_py3o/i18n/mn.po
-
2report_py3o/i18n/nb.po
-
2report_py3o/i18n/nb_NO.po
-
2report_py3o/i18n/nl.po
-
2report_py3o/i18n/nl_BE.po
-
2report_py3o/i18n/nl_NL.po
-
2report_py3o/i18n/pl.po
-
2report_py3o/i18n/pt.po
-
2report_py3o/i18n/pt_BR.po
-
2report_py3o/i18n/pt_PT.po
-
2report_py3o/i18n/report_py3o.pot
-
2report_py3o/i18n/ro.po
-
2report_py3o/i18n/ru.po
-
2report_py3o/i18n/sk.po
-
2report_py3o/i18n/sl.po
-
2report_py3o/i18n/sr.po
-
2report_py3o/i18n/sr@latin.po
-
2report_py3o/i18n/sv.po
-
2report_py3o/i18n/th.po
-
2report_py3o/i18n/tr.po
-
2report_py3o/i18n/tr_TR.po
-
2report_py3o/i18n/uk.po
-
2report_py3o/i18n/vi.po
-
2report_py3o/i18n/vi_VN.po
-
2report_py3o/i18n/zh_CN.po
-
2report_py3o/i18n/zh_TW.po
-
1report_py3o/migrations/10.0.2.0.0/pre-migration.py
-
3report_py3o/models/__init__.py
-
57report_py3o/models/ir_actions_report.py
-
118report_py3o/models/py3o_report.py
-
2report_py3o/models/py3o_template.py
-
25report_py3o/models/report.py
-
43report_py3o/static/src/js/py3oactionmanager.js
-
25report_py3o/tests/test_report_py3o.py
-
4report_py3o/views/ir_actions_report.xml
-
2report_py3o/views/menu.xml
@ -1,4 +1,3 @@ |
|||
from . import ir_actions_report_xml |
|||
from . import py3o_template |
|||
from . import report |
|||
from . import ir_actions_report |
|||
from . import py3o_report |
@ -1,25 +0,0 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 Akretion (http://www.akretion.com/) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
from odoo import api, models |
|||
|
|||
|
|||
class Report(models.Model): |
|||
|
|||
_inherit = 'report' |
|||
|
|||
@api.model |
|||
def _get_report_from_name(self, report_name): |
|||
"""Get the first record of ir.actions.report.xml having the |
|||
``report_name`` as value for the field report_name. |
|||
""" |
|||
res = super(Report, self)._get_report_from_name(report_name) |
|||
if res: |
|||
return res |
|||
# maybe a py3o report |
|||
report_obj = self.env['ir.actions.report.xml'] |
|||
context = self.env['res.users'].context_get() |
|||
return report_obj.with_context(context).search( |
|||
[('report_type', '=', 'py3o'), |
|||
('report_name', '=', report_name)], limit=1) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue