Serpent Consulting Services Pvt Ltd
8 years ago
committed by
Pedro M. Baeza
12 changed files with 61 additions and 87 deletions
-
6mass_editing/README.rst
-
2mass_editing/__init__.py
-
8mass_editing/__manifest__.py
-
6mass_editing/hooks.py
-
3mass_editing/models/__init__.py
-
23mass_editing/models/ir_model_fields.py
-
39mass_editing/models/mass_object.py
-
2mass_editing/tests/__init__.py
-
15mass_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,6 +1,5 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# © 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com) |
|||
# Copyright 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 |
@ -1,23 +0,0 @@ |
|||
# -*- 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 openerp 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)): |
|||
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 -*- |
|||
# © 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com) |
|||
# Copyright 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 -*- |
|||
# © 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com) |
|||
# Copyright 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