Merge lp:~vauxoo/addons-vauxoo/base_user_signature_logo_dev_luis into lp:addons-vauxoo

Proposed by Luis Torres - http://www.vauxoo.com
Status: Merged
Merged at revision: 366
Proposed branch: lp:~vauxoo/addons-vauxoo/base_user_signature_logo_dev_luis
Merge into: lp:addons-vauxoo
Diff against target: 118 lines (+98/-0)
4 files modified
base_user_signature_logo/__init__.py (+26/-0)
base_user_signature_logo/__openerp__.py (+46/-0)
base_user_signature_logo/res_users.py (+10/-0)
base_user_signature_logo/res_users_view.xml (+16/-0)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/base_user_signature_logo_dev_luis
Reviewer Review Type Date Requested Status
Moisés López - http://www.vauxoo.com Pending
Review via email: mp+117808@code.launchpad.net

Description of the change

Se agrego un campo a la vista res_users para que se agrege la firma como imagen del usuario

To post a comment you must log in.
Revision history for this message
Luis Torres - http://www.vauxoo.com (luis-cleto-) wrote :

Se agrego el comentario de licencia al py

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'base_user_signature_logo'
2=== added file 'base_user_signature_logo/__init__.py'
3--- base_user_signature_logo/__init__.py 1970-01-01 00:00:00 +0000
4+++ base_user_signature_logo/__init__.py 2012-08-01 21:51:20 +0000
5@@ -0,0 +1,26 @@
6+# -*- encoding: utf-8 -*-
7+###########################################################################
8+# Module Writen to OpenERP, Open Source Management Solution
9+#
10+# Copyright (c) 2010 Vauxoo - http://www.vauxoo.com/
11+# All Rights Reserved.
12+# info Vauxoo (info@vauxoo.com)
13+############################################################################
14+# Coded by: Luis Torres (luis_t@vauxoo.com)
15+############################################################################
16+#
17+# This program is free software: you can redistribute it and/or modify
18+# it under the terms of the GNU Affero General Public License as
19+# published by the Free Software Foundation, either version 3 of the
20+# License, or (at your option) any later version.
21+#
22+# This program is distributed in the hope that it will be useful,
23+# but WITHOUT ANY WARRANTY; without even the implied warranty of
24+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25+# GNU Affero General Public License for more details.
26+#
27+# You should have received a copy of the GNU Affero General Public License
28+# along with this program. If not, see <http://www.gnu.org/licenses/>.
29+#
30+##############################################################################
31+import res_users
32
33=== added file 'base_user_signature_logo/__openerp__.py'
34--- base_user_signature_logo/__openerp__.py 1970-01-01 00:00:00 +0000
35+++ base_user_signature_logo/__openerp__.py 2012-08-01 21:51:20 +0000
36@@ -0,0 +1,46 @@
37+# -*- encoding: utf-8 -*-
38+###########################################################################
39+# Module Writen to OpenERP, Open Source Management Solution
40+#
41+# Copyright (c) 2010 Vauxoo - http://www.vauxoo.com/
42+# All Rights Reserved.
43+# info Vauxoo (info@vauxoo.com)
44+############################################################################
45+# Coded by: Luis Torres (luis_t@vauxoo.com)
46+############################################################################
47+#
48+# This program is free software: you can redistribute it and/or modify
49+# it under the terms of the GNU Affero General Public License as
50+# published by the Free Software Foundation, either version 3 of the
51+# License, or (at your option) any later version.
52+#
53+# This program is distributed in the hope that it will be useful,
54+# but WITHOUT ANY WARRANTY; without even the implied warranty of
55+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56+# GNU Affero General Public License for more details.
57+#
58+# You should have received a copy of the GNU Affero General Public License
59+# along with this program. If not, see <http://www.gnu.org/licenses/>.
60+#
61+##############################################################################
62+
63+{
64+ "name" : "Add signature logo in user",
65+ "version" : "1.0",
66+ "author" : "Vauxoo",
67+ "category" : "Vauxoo",
68+ "description" : """This module add in user a field to insert signature_logo
69+ """,
70+ "website" : "http://www.vauxoo.com/",
71+ "license" : "AGPL-3",
72+ "depends" : [
73+ "base",
74+ ],
75+ "init_xml" : [],
76+ "demo_xml" : [],
77+ "update_xml" : [
78+ 'res_users_view.xml'
79+ ],
80+ "installable" : True,
81+ "active" : False,
82+}
83
84=== added file 'base_user_signature_logo/res_users.py'
85--- base_user_signature_logo/res_users.py 1970-01-01 00:00:00 +0000
86+++ base_user_signature_logo/res_users.py 2012-08-01 21:51:20 +0000
87@@ -0,0 +1,10 @@
88+from osv import fields, osv
89+
90+class res_users(osv.osv):
91+ _inherit = 'res.users'
92+ _columns = {
93+ 'signature_logo': fields.binary('Signature Logo')
94+ }
95+res_users()
96+
97+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
98
99=== added file 'base_user_signature_logo/res_users_view.xml'
100--- base_user_signature_logo/res_users_view.xml 1970-01-01 00:00:00 +0000
101+++ base_user_signature_logo/res_users_view.xml 2012-08-01 21:51:20 +0000
102@@ -0,0 +1,16 @@
103+<?xml version="1.0" encoding="utf-8"?>
104+<openerp>
105+ <data>
106+ <record model="ir.ui.view" id="view_res_users_inherit_signature_logo_form">
107+ <field name="name">view.res.users.inherit.signature.logo.form</field>
108+ <field name="model">res.users</field>
109+ <field name="type">form</field>
110+ <field name="inherit_id" ref="base.view_users_form"/>
111+ <field name="arch" type="xml">
112+ <xpath expr="/form/notebook/page[@string='User']/group" position="after">
113+ <field name="signature_logo" widget="image"/>
114+ </xpath>
115+ </field>
116+ </record>
117+ </data>
118+</openerp>