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
=== added directory 'base_user_signature_logo'
=== added file 'base_user_signature_logo/__init__.py'
--- base_user_signature_logo/__init__.py 1970-01-01 00:00:00 +0000
+++ base_user_signature_logo/__init__.py 2012-08-01 21:51:20 +0000
@@ -0,0 +1,26 @@
1# -*- encoding: utf-8 -*-
2###########################################################################
3# Module Writen to OpenERP, Open Source Management Solution
4#
5# Copyright (c) 2010 Vauxoo - http://www.vauxoo.com/
6# All Rights Reserved.
7# info Vauxoo (info@vauxoo.com)
8############################################################################
9# Coded by: Luis Torres (luis_t@vauxoo.com)
10############################################################################
11#
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as
14# published by the Free Software Foundation, either version 3 of the
15# License, or (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24#
25##############################################################################
26import res_users
027
=== added file 'base_user_signature_logo/__openerp__.py'
--- base_user_signature_logo/__openerp__.py 1970-01-01 00:00:00 +0000
+++ base_user_signature_logo/__openerp__.py 2012-08-01 21:51:20 +0000
@@ -0,0 +1,46 @@
1# -*- encoding: utf-8 -*-
2###########################################################################
3# Module Writen to OpenERP, Open Source Management Solution
4#
5# Copyright (c) 2010 Vauxoo - http://www.vauxoo.com/
6# All Rights Reserved.
7# info Vauxoo (info@vauxoo.com)
8############################################################################
9# Coded by: Luis Torres (luis_t@vauxoo.com)
10############################################################################
11#
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as
14# published by the Free Software Foundation, either version 3 of the
15# License, or (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24#
25##############################################################################
26
27{
28 "name" : "Add signature logo in user",
29 "version" : "1.0",
30 "author" : "Vauxoo",
31 "category" : "Vauxoo",
32 "description" : """This module add in user a field to insert signature_logo
33 """,
34 "website" : "http://www.vauxoo.com/",
35 "license" : "AGPL-3",
36 "depends" : [
37 "base",
38 ],
39 "init_xml" : [],
40 "demo_xml" : [],
41 "update_xml" : [
42 'res_users_view.xml'
43 ],
44 "installable" : True,
45 "active" : False,
46}
047
=== added file 'base_user_signature_logo/res_users.py'
--- base_user_signature_logo/res_users.py 1970-01-01 00:00:00 +0000
+++ base_user_signature_logo/res_users.py 2012-08-01 21:51:20 +0000
@@ -0,0 +1,10 @@
1from osv import fields, osv
2
3class res_users(osv.osv):
4 _inherit = 'res.users'
5 _columns = {
6 'signature_logo': fields.binary('Signature Logo')
7 }
8res_users()
9
10# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
011
=== added file 'base_user_signature_logo/res_users_view.xml'
--- base_user_signature_logo/res_users_view.xml 1970-01-01 00:00:00 +0000
+++ base_user_signature_logo/res_users_view.xml 2012-08-01 21:51:20 +0000
@@ -0,0 +1,16 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4 <record model="ir.ui.view" id="view_res_users_inherit_signature_logo_form">
5 <field name="name">view.res.users.inherit.signature.logo.form</field>
6 <field name="model">res.users</field>
7 <field name="type">form</field>
8 <field name="inherit_id" ref="base.view_users_form"/>
9 <field name="arch" type="xml">
10 <xpath expr="/form/notebook/page[@string='User']/group" position="after">
11 <field name="signature_logo" widget="image"/>
12 </xpath>
13 </field>
14 </record>
15 </data>
16</openerp>