Browse Source
[10.0][FIX] backport of SerpentCS mass_editing v10 port (#820)
[10.0][FIX] backport of SerpentCS mass_editing v10 port (#820)
* Made Mass Editing module v10 compatible * Mass Editing module v10 translations * Update ir_model_fields.py * [FIX] mass_editing v10 port openerp->odoo * [FIX] pep8 * [FIX] remove no-longer supported auto_refresh in viewpull/5/head
Jerome Boisvert-Chouinard
8 years ago
committed by
Pedro M. Baeza
63 changed files with 514 additions and 185 deletions
-
6mass_editing/README.rst
-
2mass_editing/__init__.py
-
3mass_editing/__manifest__.py
-
4mass_editing/hooks.py
-
10mass_editing/i18n/ar.po
-
20mass_editing/i18n/bg.po
-
11mass_editing/i18n/bs.po
-
11mass_editing/i18n/ca.po
-
11mass_editing/i18n/cs.po
-
11mass_editing/i18n/da.po
-
10mass_editing/i18n/de.po
-
11mass_editing/i18n/en_GB.po
-
13mass_editing/i18n/es.po
-
11mass_editing/i18n/es_AR.po
-
5mass_editing/i18n/es_CO.po
-
5mass_editing/i18n/es_DO.po
-
5mass_editing/i18n/es_EC.po
-
11mass_editing/i18n/es_MX.po
-
5mass_editing/i18n/es_PY.po
-
11mass_editing/i18n/es_VE.po
-
11mass_editing/i18n/et.po
-
9mass_editing/i18n/eu.po
-
11mass_editing/i18n/fa.po
-
11mass_editing/i18n/fi.po
-
13mass_editing/i18n/fr.po
-
33mass_editing/i18n/fr_CA.po
-
11mass_editing/i18n/fr_CH.po
-
11mass_editing/i18n/he.po
-
11mass_editing/i18n/hr.po
-
11mass_editing/i18n/hu.po
-
11mass_editing/i18n/id.po
-
5mass_editing/i18n/it.po
-
11mass_editing/i18n/ja.po
-
11mass_editing/i18n/ko.po
-
11mass_editing/i18n/lt.po
-
11mass_editing/i18n/mk.po
-
11mass_editing/i18n/mn.po
-
11mass_editing/i18n/nb.po
-
13mass_editing/i18n/nl.po
-
11mass_editing/i18n/nl_BE.po
-
13mass_editing/i18n/pl.po
-
11mass_editing/i18n/pt.po
-
11mass_editing/i18n/pt_BR.po
-
11mass_editing/i18n/pt_PT.po
-
5mass_editing/i18n/ru.po
-
11mass_editing/i18n/sk.po
-
11mass_editing/i18n/sl.po
-
11mass_editing/i18n/sr.po
-
14mass_editing/i18n/sr@latin.po
-
14mass_editing/i18n/sv.po
-
14mass_editing/i18n/th.po
-
11mass_editing/i18n/tr.po
-
17mass_editing/i18n/uk.po
-
13mass_editing/i18n/vi.po
-
11mass_editing/i18n/zh_TW.po
-
3mass_editing/models/__init__.py
-
24mass_editing/models/ir_model_fields.py
-
21mass_editing/models/mass_object.py
-
2mass_editing/tests/__init__.py
-
13mass_editing/tests/test_mass_editing.py
-
38mass_editing/views/mass_editing_view.xml
-
2mass_editing/wizard/__init__.py
-
4mass_editing/wizard/mass_editing_wizard.py
@ -1,5 +1,6 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com) |
|||
# © 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
from . import ir_model_fields |
|||
from . import mass_object |
@ -0,0 +1,24 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# © 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
from odoo import api, models |
|||
|
|||
|
|||
class IrModelFields(models.Model): |
|||
_inherit = 'ir.model.fields' |
|||
|
|||
@api.model |
|||
def search(self, args, offset=0, limit=0, order=None, count=False): |
|||
model_domain = [] |
|||
for domain in args: |
|||
if (len(domain) > 2 and domain[0] == 'model_id' and |
|||
isinstance(domain[2], basestring) and |
|||
list(domain[2][1:-1])): |
|||
model_domain += [('model_id', 'in', |
|||
map(int, domain[2][1:-1].split(',')))] |
|||
else: |
|||
model_domain.append(domain) |
|||
return super(IrModelFields, self).search(model_domain, offset=offset, |
|||
limit=limit, order=order, |
|||
count=count) |
@ -1,5 +1,5 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com) |
|||
# © 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
from . import test_mass_editing |
@ -1,5 +1,5 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com) |
|||
# © 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com) |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
from . import mass_editing_wizard |
Write
Preview
Loading…
Cancel
Save
Reference in new issue