From a3b94f96cc80b59014318eb51ff4c1a1c6378b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 30 Jul 2012 11:51:33 +0200 Subject: [PATCH] [IMP] res.partner, res.users: fixed some typos/words in image related fields. bzr revid: tde@openerp.com-20120730095133-7urnrolqywvrdntg --- openerp/addons/base/res/res_partner.py | 18 +++++++++--------- openerp/addons/base/res/res_users.py | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/openerp/addons/base/res/res_partner.py b/openerp/addons/base/res/res_partner.py index f13d5fe42c3..156d7e70d35 100644 --- a/openerp/addons/base/res/res_partner.py +++ b/openerp/addons/base/res/res_partner.py @@ -190,25 +190,25 @@ class res_partner(osv.osv): 'birthdate': fields.char('Birthdate', size=64), 'is_company': fields.boolean('Company', help="Check if the contact is a company, otherwise it is a person"), 'use_parent_address': fields.boolean('Use Company Address', help="Select this if you want to set company's address information for this contact"), - 'image': fields.binary("Avatar", + 'image': fields.binary("Image", help="This field holds the image used as avatar for the "\ - "user. The image is base64 encoded, and PIL-supported. "\ - "It is limited to a 12024x1024 px image."), + "partner. The image is base64 encoded, and PIL-supported. "\ + "It is limited to a 1024x1024 px image."), 'image_medium': fields.function(_get_image, fnct_inv=_set_image, - string="Medium-sized avatar", type="binary", multi="_get_image", + string="Medium-sized image", type="binary", multi="_get_image", store = { 'res.partner': (lambda self, cr, uid, ids, c={}: ids, ['image'], 10), }, - help="Medium-sized image of the user. It is automatically "\ - "resized as a 180x180px image, with aspect ratio kept. "\ + help="Medium-sized image of the partner. It is automatically "\ + "resized as a 180x180 px image, with aspect ratio kept. "\ "Use this field in form views or some kanban views."), 'image_small': fields.function(_get_image, fnct_inv=_set_image, - string="Smal-sized avatar", type="binary", multi="_get_image", + string="Small-sized image", type="binary", multi="_get_image", store = { 'res.partner': (lambda self, cr, uid, ids, c={}: ids, ['image'], 10), }, - help="Small-sized image of the user. It is automatically "\ - "resized as a 50x50px image, with aspect ratio keps. "\ + help="Small-sized image of the partner. It is automatically "\ + "resized as a 50x50 px image, with aspect ratio keps. "\ "Use this field anywhere a small image is required."), 'company_id': fields.many2one('res.company', 'Company', select=1), 'color': fields.integer('Color Index'), diff --git a/openerp/addons/base/res/res_users.py b/openerp/addons/base/res/res_users.py index c8c4b84af57..3af1764a7ae 100644 --- a/openerp/addons/base/res/res_users.py +++ b/openerp/addons/base/res/res_users.py @@ -198,14 +198,14 @@ class users(osv.osv): 'image': fields.binary("Avatar", help="This field holds the image used as avatar for the "\ "user. The image is base64 encoded, and PIL-supported. "\ - "It is limited to a 12024x1024 px image."), + "It is limited to a 1024x1024 px image."), 'image_medium': fields.function(_get_image, fnct_inv=_set_image, string="Medium-sized avatar", type="binary", multi="_get_image", store = { 'res.users': (lambda self, cr, uid, ids, c={}: ids, ['image'], 10), }, help="Medium-sized image of the user. It is automatically "\ - "resized as a 180x180px image, with aspect ratio kept. "\ + "resized as a 180x180 px image, with aspect ratio kept. "\ "Use this field in form views or some kanban views."), 'image_small': fields.function(_get_image, fnct_inv=_set_image, string="Smal-sized avatar", type="binary", multi="_get_image", @@ -213,7 +213,7 @@ class users(osv.osv): 'res.users': (lambda self, cr, uid, ids, c={}: ids, ['image'], 10), }, help="Small-sized image of the user. It is automatically "\ - "resized as a 50x50px image, with aspect ratio keps. "\ + "resized as a 50x50 px image, with aspect ratio keps. "\ "Use this field anywhere a small image is required."), 'active': fields.boolean('Active'), 'action_id': fields.many2one('ir.actions.actions', 'Home Action', help="If specified, this action will be opened at logon for this user, in addition to the standard menu."),