Quellcode durchsuchen

Imagen de sellos médico en formulario de usuario

sebas vor 4 Jahren
Commit
69763fb132
6 geänderte Dateien mit 64 neuen und 0 gelöschten Zeilen
  1. 3 0
      __init__.py
  2. BIN
      __init__.pyc
  3. 32 0
      __openerp__.py
  4. BIN
      static/description/icon.png
  5. 13 0
      user_extra_sello.py
  6. 16 0
      user_extra_sello_view.xml

+ 3 - 0
__init__.py

@@ -0,0 +1,3 @@
+# -*- coding: utf-8 -*-
+import user_extra_sello
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

BIN
__init__.pyc


+ 32 - 0
__openerp__.py

@@ -0,0 +1,32 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero 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 Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+
+{
+    'name': 'User Extra sello de Médico',
+    'version': '2.0',
+    'category': 'Tools',
+    'author': 'Eiru Software/Sebastian Penayo',
+    'depends': ['base'],
+    'data': ['user_extra_sello_view.xml'],
+    'installable': True,
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

BIN
static/description/icon.png


+ 13 - 0
user_extra_sello.py

@@ -0,0 +1,13 @@
+# -*- coding: utf-8 -*-
+from openerp import models
+from openerp.osv import fields
+
+
+class ResUsers(models.Model):
+
+    _name = 'res.users'
+    _inherit = 'res.users'
+    _description = 'Add extra data imagen firma to Users'
+
+    image = fields.Binary('Sello', required=True)
+    #image_filename = fields.Char("Image Filename")

+ 16 - 0
user_extra_sello_view.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<openerp>
+    <data>
+        <record model="ir.ui.view" id="res_users_firma">
+            <field name="name">res.users.firma</field>
+            <field name="model">res.users</field>
+            <field name="inherit_id" ref="base.view_users_form"/>
+            <field name="arch" type="xml">
+                <field name="active" position="before">
+                    <field name="image" widget="image" class="oe_avatar"/>
+                </field>
+            </field>
+        </record>
+
+    </data>
+</openerp>