[MIG] base_jsonify: Migration to 13.0
parent
b92f8d5244
commit
96e3ad7459
|
@ -6,7 +6,7 @@
|
||||||
{
|
{
|
||||||
"name": "Base Jsonify",
|
"name": "Base Jsonify",
|
||||||
"summary": "Base module that provide the jsonify method on all models",
|
"summary": "Base module that provide the jsonify method on all models",
|
||||||
"version": "12.0.1.1.0",
|
"version": "13.0.1.0.0",
|
||||||
"category": "Uncategorized",
|
"category": "Uncategorized",
|
||||||
"website": "https://github.com/OCA/server-tools",
|
"website": "https://github.com/OCA/server-tools",
|
||||||
"author": "Akretion, Odoo Community Association (OCA)",
|
"author": "Akretion, Odoo Community Association (OCA)",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
from odoo import api, models
|
from odoo import models
|
||||||
|
|
||||||
|
|
||||||
def update_dict(data, fields):
|
def update_dict(data, fields):
|
||||||
|
@ -47,7 +47,6 @@ def convert_dict(dict_parser):
|
||||||
class IrExport(models.Model):
|
class IrExport(models.Model):
|
||||||
_inherit = "ir.exports"
|
_inherit = "ir.exports"
|
||||||
|
|
||||||
@api.multi
|
|
||||||
def get_json_parser(self):
|
def get_json_parser(self):
|
||||||
"""Creates a parser from ir.exports record and return it.
|
"""Creates a parser from ir.exports record and return it.
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,6 @@ class Base(models.AbstractModel):
|
||||||
field_name, json_key = field_name.split(":")
|
field_name, json_key = field_name.split(":")
|
||||||
return field_name, json_key, subparser
|
return field_name, json_key, subparser
|
||||||
|
|
||||||
@api.multi
|
|
||||||
def jsonify(self, parser):
|
def jsonify(self, parser):
|
||||||
"""Convert the record according to the given parser.
|
"""Convert the record according to the given parser.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue