Laurent Mignon (ACSONE)
6 years ago
94 changed files with 246 additions and 267 deletions
-
7report_py3o/__manifest__.py
-
21report_py3o/controllers/main.py
-
16report_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
-
59report_py3o/models/ir_actions_report.py
-
118report_py3o/models/py3o_report.py
-
2report_py3o/models/py3o_template.py
-
25report_py3o/models/report.py
-
47report_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
-
1report_py3o_fusion_server/__init__.py
-
5report_py3o_fusion_server/__manifest__.py
-
2report_py3o_fusion_server/demo/report_py3o.xml
-
3report_py3o_fusion_server/models/__init__.py
-
5report_py3o_fusion_server/models/ir_actions_report.py
-
1report_py3o_fusion_server/models/py3o_pdf_options.py
-
19report_py3o_fusion_server/models/py3o_report.py
-
2report_py3o_fusion_server/models/py3o_server.py
-
1report_py3o_fusion_server/tests/__init__.py
-
1report_py3o_fusion_server/tests/test_report_py3o_fusion_server.py
-
2report_py3o_fusion_server/views/ir_actions_report.xml
-
1report_py3o_fusion_server/views/py3o_pdf_options.xml
@ -1,4 +1,3 @@ |
|||||
from . import ir_actions_report_xml |
|
||||
from . import py3o_template |
from . import py3o_template |
||||
from . import report |
|
||||
|
from . import ir_actions_report |
||||
from . import py3o_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) |
|
@ -1,4 +1,3 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Copyright 2017 Therp BV <http://therp.nl> |
# Copyright 2017 Therp BV <http://therp.nl> |
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
from . import models |
from . import models |
@ -1,6 +1,6 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
<odoo> |
<odoo> |
||||
<record id="report_py3o.res_users_report_py3o" model="ir.actions.report.xml"> |
|
||||
|
<record id="report_py3o.res_users_report_py3o" model="ir.actions.report"> |
||||
<field name="py3o_is_local_fusion" eval="1"/> |
<field name="py3o_is_local_fusion" eval="1"/> |
||||
</record> |
</record> |
||||
</odoo> |
</odoo> |
@ -1,7 +1,6 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Copyright 2017 Therp BV <http://therp.nl> |
# Copyright 2017 Therp BV <http://therp.nl> |
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
from . import ir_actions_report_xml |
|
||||
|
from . import ir_actions_report |
||||
from . import py3o_pdf_options |
from . import py3o_pdf_options |
||||
from . import py3o_report |
from . import py3o_report |
||||
from . import py3o_server |
from . import py3o_server |
@ -1,4 +1,3 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Copyright 2017 Therp BV <http://therp.nl> |
# Copyright 2017 Therp BV <http://therp.nl> |
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
from . import test_report_py3o_fusion_server |
from . import test_report_py3o_fusion_server |
@ -1,7 +1,7 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
<odoo> |
<odoo> |
||||
<record id="view_ir_actions_report_base" model="ir.ui.view"> |
<record id="view_ir_actions_report_base" model="ir.ui.view"> |
||||
<field name="model">ir.actions.report.xml</field> |
|
||||
|
<field name="model">ir.actions.report</field> |
||||
<field name="inherit_id" ref="report_py3o.py3o_report_view" /> |
<field name="inherit_id" ref="report_py3o.py3o_report_view" /> |
||||
<field name="arch" type="xml"> |
<field name="arch" type="xml"> |
||||
<field name="py3o_multi_in_one" position="after"> |
<field name="py3o_multi_in_one" position="after"> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue