forked from OCA/server-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request OCA#32 from avanzosc/8.0-mass_editing
[ADD] Migrated <mass_editing> for Odoo
- Loading branch information
Showing
15 changed files
with
216 additions
and
149 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,27 +23,28 @@ | |
"name": "Mass Editing", | ||
"version": "1.3", | ||
"author": "Serpent Consulting Services", | ||
"contributors": [ | ||
"Oihane Crucelaegui <[email protected]>", | ||
], | ||
"category": "Tools", | ||
"website": "http://www.serpentcs.com", | ||
"description": """ | ||
This module provides the functionality to add, update or remove the values""" | ||
"""of more than one records on the fly at the same time. | ||
This module provides the functionality to add, update or remove the values | ||
of more than one records on the fly at the same time. | ||
You can configure mass editing for any OpenERP model. | ||
The video explaining the features and how-to for OpenERP Version 6""" | ||
""" is here http://t.co/wukYMx1A | ||
The video explaining the features and how-to for OpenERP Version 7 is""" | ||
""" here : http://www.youtube.com/watch?v=9BH0o74A748&feature=youtu.be | ||
For more details/customization/feedback contact us on""" | ||
""" [email protected]. | ||
The video explaining the features and how-to for OpenERP Version 6 | ||
is here http://t.co/wukYMx1A | ||
The video explaining the features and how-to for OpenERP Version 7 is | ||
here : http://www.youtube.com/watch?v=9BH0o74A748&feature=youtu.be | ||
For more details/customization/feedback contact us on | ||
[email protected]. | ||
""", | ||
'depends': ['base'], | ||
'data': [ | ||
"security/ir.model.access.csv", | ||
'mass_editing_view.xml', | ||
'views/mass_editing_view.xml', | ||
], | ||
'installable': False, | ||
'installable': True, | ||
'application': True, | ||
'auto_install': False, | ||
} | ||
|
||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# -*- coding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# This module uses OpenERP, Open Source Management Solution Framework. | ||
# Copyright (C): | ||
# 2012-Today Serpent Consulting Services (<http://www.serpentcs.com>) | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/> | ||
# | ||
############################################################################## | ||
|
||
from openerp.osv import orm | ||
|
||
|
||
class IrModelFields(orm.Model): | ||
_inherit = 'ir.model.fields' | ||
|
||
def search( | ||
self, cr, uid, args, offset=0, limit=0, order=None, context=None, | ||
count=False): | ||
model_domain = [] | ||
for domain in args: | ||
if domain[0] == 'model_id' and domain[2]\ | ||
and type(domain[2]) != list: | ||
model_domain += [( | ||
'model_id', 'in', map(int, domain[2][1:-1].split(',')))] | ||
else: | ||
model_domain.append(domain) | ||
return super(IrModelFields, self).search( | ||
cr, uid, model_domain, offset=offset, limit=limit, order=order, | ||
context=context, count=count) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.