mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[MIG] report_py3o, report_py3o_fusion_server: Migration to 13.0
This commit is contained in:
committed by
Alexis de Lattre
parent
b2735878e4
commit
2cb652025a
@@ -3,7 +3,7 @@
|
||||
{
|
||||
"name": "Py3o Report Engine - Fusion server support",
|
||||
"summary": "Let the fusion server handle format conversion.",
|
||||
"version": "12.0.1.0.0",
|
||||
"version": "13.0.1.0.0",
|
||||
"category": "Reporting",
|
||||
"license": "AGPL-3",
|
||||
"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).
|
||||
import logging
|
||||
|
||||
from openerp import _, api, fields, models
|
||||
|
||||
from odoo import _, api, fields, models
|
||||
from odoo.exceptions import ValidationError
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -13,7 +12,6 @@ logger = logging.getLogger(__name__)
|
||||
class IrActionsReport(models.Model):
|
||||
_inherit = "ir.actions.report"
|
||||
|
||||
@api.multi
|
||||
@api.constrains("py3o_is_local_fusion", "py3o_server_id")
|
||||
def _check_py3o_server_id(self):
|
||||
for report in self:
|
||||
@@ -46,7 +44,6 @@ class IrActionsReport(models.Model):
|
||||
@api.depends(
|
||||
"lo_bin_path", "is_py3o_native_format", "report_type", "py3o_server_id"
|
||||
)
|
||||
@api.multi
|
||||
def _compute_py3o_report_not_available(self):
|
||||
for rec in self:
|
||||
if not rec.report_type == "py3o":
|
||||
|
||||
@@ -11,8 +11,9 @@ from datetime import datetime
|
||||
from io import BytesIO
|
||||
|
||||
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__)
|
||||
|
||||
@@ -26,7 +27,6 @@ except ImportError:
|
||||
class Py3oReport(models.TransientModel):
|
||||
_inherit = "py3o.report"
|
||||
|
||||
@api.multi
|
||||
def _create_single_report(self, model_instance, data):
|
||||
""" This function to generate our py3o report
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user