[MIG] report_py3o, report_py3o_fusion_server: Migration to 13.0
parent
b2735878e4
commit
2cb652025a
|
@ -3,7 +3,7 @@
|
||||||
{
|
{
|
||||||
"name": "Py3o Report Engine - Fusion server support",
|
"name": "Py3o Report Engine - Fusion server support",
|
||||||
"summary": "Let the fusion server handle format conversion.",
|
"summary": "Let the fusion server handle format conversion.",
|
||||||
"version": "12.0.1.0.0",
|
"version": "13.0.1.0.0",
|
||||||
"category": "Reporting",
|
"category": "Reporting",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"author": "XCG Consulting," "ACSONE SA/NV," "Odoo Community Association (OCA)",
|
"author": "XCG Consulting," "ACSONE SA/NV," "Odoo Community Association (OCA)",
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
# 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).
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from openerp import _, api, fields, models
|
from odoo import _, api, fields, models
|
||||||
|
|
||||||
from odoo.exceptions import ValidationError
|
from odoo.exceptions import ValidationError
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
@ -13,7 +12,6 @@ logger = logging.getLogger(__name__)
|
||||||
class IrActionsReport(models.Model):
|
class IrActionsReport(models.Model):
|
||||||
_inherit = "ir.actions.report"
|
_inherit = "ir.actions.report"
|
||||||
|
|
||||||
@api.multi
|
|
||||||
@api.constrains("py3o_is_local_fusion", "py3o_server_id")
|
@api.constrains("py3o_is_local_fusion", "py3o_server_id")
|
||||||
def _check_py3o_server_id(self):
|
def _check_py3o_server_id(self):
|
||||||
for report in self:
|
for report in self:
|
||||||
|
@ -46,7 +44,6 @@ class IrActionsReport(models.Model):
|
||||||
@api.depends(
|
@api.depends(
|
||||||
"lo_bin_path", "is_py3o_native_format", "report_type", "py3o_server_id"
|
"lo_bin_path", "is_py3o_native_format", "report_type", "py3o_server_id"
|
||||||
)
|
)
|
||||||
@api.multi
|
|
||||||
def _compute_py3o_report_not_available(self):
|
def _compute_py3o_report_not_available(self):
|
||||||
for rec in self:
|
for rec in self:
|
||||||
if not rec.report_type == "py3o":
|
if not rec.report_type == "py3o":
|
||||||
|
|
|
@ -11,8 +11,9 @@ from datetime import datetime
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from openerp import _, api, models
|
|
||||||
from openerp.exceptions import UserError
|
from odoo import _, models
|
||||||
|
from odoo.exceptions import UserError
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -26,7 +27,6 @@ except ImportError:
|
||||||
class Py3oReport(models.TransientModel):
|
class Py3oReport(models.TransientModel):
|
||||||
_inherit = "py3o.report"
|
_inherit = "py3o.report"
|
||||||
|
|
||||||
@api.multi
|
|
||||||
def _create_single_report(self, model_instance, data):
|
def _create_single_report(self, model_instance, data):
|
||||||
""" This function to generate our py3o report
|
""" This function to generate our py3o report
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue