Browse Source

[MIG] base_jsonify: Migration to 13.0

13.0
Laurent-Corron 5 years ago
parent
commit
d9df273f5e
  1. 2
      base_jsonify/__manifest__.py
  2. 3
      base_jsonify/models/ir_export.py
  3. 1
      base_jsonify/models/models.py

2
base_jsonify/__manifest__.py

@ -6,7 +6,7 @@
{
"name": "Base Jsonify",
"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",
"website": "https://github.com/OCA/server-tools",
"author": "Akretion, Odoo Community Association (OCA)",

3
base_jsonify/models/ir_export.py

@ -4,7 +4,7 @@
from collections import OrderedDict
from odoo import api, models
from odoo import models
def update_dict(data, fields):
@ -47,7 +47,6 @@ def convert_dict(dict_parser):
class IrExport(models.Model):
_inherit = "ir.exports"
@api.multi
def get_json_parser(self):
"""Creates a parser from ir.exports record and return it.

1
base_jsonify/models/models.py

@ -24,7 +24,6 @@ class Base(models.AbstractModel):
field_name, json_key = field_name.split(":")
return field_name, json_key, subparser
@api.multi
def jsonify(self, parser):
"""Convert the record according to the given parser.

Loading…
Cancel
Save