Serpent Consulting Services Pvt Ltd
8 years ago
committed by
Aitor Bouzas
12 changed files with 60 additions and 86 deletions
-
6mass_editing/README.rst
-
2mass_editing/__init__.py
-
6mass_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,14 +1,16 @@ |
|||||
# -*- coding: utf-8 -*- |
# -*- 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). |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
||||
|
|
||||
{ |
{ |
||||
'name': 'Mass Editing', |
'name': 'Mass Editing', |
||||
'version': '9.0.1.0.0', |
|
||||
|
'version': '10.0.1.0.0', |
||||
'author': 'Serpent Consulting Services Pvt. Ltd., ' |
'author': 'Serpent Consulting Services Pvt. Ltd., ' |
||||
'Odoo Community Association (OCA)', |
'Odoo Community Association (OCA)', |
||||
'contributors': [ |
'contributors': [ |
||||
'Oihane Crucelaegui <oihanecrucelaegi@gmail.com>', |
'Oihane Crucelaegui <oihanecrucelaegi@gmail.com>', |
||||
'Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>', |
'Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>', |
||||
|
'Jay Vora <jay.vora@serpentcs.com>' |
||||
], |
], |
||||
'category': 'Tools', |
'category': 'Tools', |
||||
'website': 'http://www.serpentcs.com', |
'website': 'http://www.serpentcs.com', |
@ -1,6 +1,5 @@ |
|||||
# -*- coding: utf-8 -*- |
# -*- 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). |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
||||
|
|
||||
from . import ir_model_fields |
|
||||
from . import mass_object |
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 -*- |
# -*- 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). |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
||||
|
|
||||
from . import test_mass_editing |
from . import test_mass_editing |
@ -1,5 +1,5 @@ |
|||||
# -*- coding: utf-8 -*- |
# -*- 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). |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
||||
|
|
||||
from . import mass_editing_wizard |
from . import mass_editing_wizard |
Write
Preview
Loading…
Cancel
Save
Reference in new issue