|
|
@ -29,11 +29,6 @@ class mass_editing_wizard(osv.osv_memory): |
|
|
|
_name = 'mass.editing.wizard' |
|
|
|
|
|
|
|
_columns = { |
|
|
|
'serpent_image': fields.binary('Image'), |
|
|
|
} |
|
|
|
|
|
|
|
_defaults = { |
|
|
|
'serpent_image': '/9j/4AAQSkZJRgABAQEASABIAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2NjIpLCBxdWFsaXR5ID0gOTAK/9sAQwADAgIDAgIDAwMDBAMDBAUIBQUEBAUKBwcGCAwKDAwLCgsLDQ4SEA0OEQ4LCxAWEBETFBUVFQwPFxgWFBgSFBUU/9sAQwEDBAQFBAUJBQUJFA0LDRQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAJgBoAwEiAAIRAQMRAf/EAB0AAAICAgMBAAAAAAAAAAAAAAAHAQgEBQIGCQP/xAA1EAABAwMDAwIEBAQHAAAAAAABAgMEBQYRAAcSEyExCEEUIjJhFRZRcSQzgaFCUmKChJHw/8QAGQEBAAMBAQAAAAAAAAAAAAAAAAEFBgME/8QAJhEAAgIBBAECBwAAAAAAAAAAAAECAxEEBSExUQZBEhNhgZHB0f/aAAwDAQACEQMRAD8A9TiQkHPYfqdJq8PV7tPZNRdgzrsZflNK4uIp7LkoIPuCptKk5HgjOQdYXrMuCqW9sFXXKU64w7KcZhuvNHCkMuLAX39sj5f92qt+gqBag3LqiK8zEcrC4iRSBMSFDlyJd4cu3PHHGO+OeO2dVt2q+C6NEe35NttWxU6nbLt01Lk4w4UY4TfXLbTwufHkuvYG+dnbnLQi3Z8mepTaXciBISlKT4KllHFP7E50wB20j/VrFmUfYmvVig1OpUCq0sNORX6TNdi45vtJWFJbUErBST9QOPIxrqGx+2VU3L9P9Hrc6/b0YueoxJH8c3cMoIbdDriG1dPnxwOKcjHfB1YrOOTHWuuU26k0vq8v84RZ/wAaM99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T3jMmqhPpU270Y6eCxkYSS68nCsZ6fnIJ1e5MSKH0pbTU+6tra0xUp9YYiOVVxp2FAqLsZh5PQZzzSgjkTnBPuAB7awvVhtnQrXpu3VGoNLZp1NZkTFdBkH5ioxwVKJyVKIA7k57DvpzWh+N2xbiWaLa0WA49AiVNyGiM8ylclwrD7GVLPFYQ02kE/SVAqGDjWauKxuRWYEe5bVcXERH60ZUmE4nplbMdaitZUAg8lLb6ZBVlknI8Fnkk7bbO3lv2dLdk0in/BvOo6a19ZxeU5zj5lH3A0pV7QQ91vTXSqC8hCJ7LS5EB9XbpPhxeO/+VQJSfsc+w1uKVQG7cuhhUCzmYUpirqjJqDUV91tMRbL5S4Dz+rKEIXkBILgAzkHWyoFw3JT6TKZjWwI8aBUxDaiJjOtrejqecQHW+SiCkZaWVE/T1DxA4KVAFN6V63WJ18MUSttrTLtuhyqchbv1hv4mPxbUP1QUFP7AD27/aZS8+uqJNx4j+f+AoabdChvM35Jm/gDFNlylyWX6qmC6TIbQ60EA4VhPJPzczkHjkeCNYFtsyalcVp3JVLUbZq9TifxkpuI82/Be6P0rC1YSjiFI5HJyUjAznU5A2ceD3/po1IGe+jUAg+41xCBjwNGjTGQCRjx76k4OjRoA0aNGgJ1B7d/00aNAHvqfto0aAMZ1GO+jRoCT27aNGjQH//Z', |
|
|
|
} |
|
|
|
|
|
|
|
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): |
|
|
@ -44,9 +39,7 @@ class mass_editing_wizard(osv.osv_memory): |
|
|
|
all_fields = {} |
|
|
|
xml_form = etree.Element('form', {'string': tools.ustr(editing_data.name)}) |
|
|
|
xml_group = etree.SubElement(xml_form, 'group', {'colspan': '4'}) |
|
|
|
etree.SubElement(xml_group, 'field', {'name': 'serpent_image', 'nolabel': '1','colspan': '1', 'modifiers': '{"readonly": true}', 'widget':'image'}) |
|
|
|
etree.SubElement(xml_group, 'label', {'string': '','colspan': '2'}) |
|
|
|
all_fields['serpent_image'] = {'type':'binary', 'string':''} |
|
|
|
xml_group = etree.SubElement(xml_form, 'group', {'colspan': '4'}) |
|
|
|
model_obj = self.pool.get(context.get('active_model')) |
|
|
|
for field in editing_data.field_ids: |
|
|
|