Commit Graph
23 Commits
Author SHA1 Message Date
Leonardo Pavan Rocha c53724ebc3 [IMP] *: adds generic user avatar
Description of the issue/feature this PR addresses:
It is currently quite difficult to differentiate users. Most of the time, people
don't take the time to upload an actual avatar so everybody looks the same. This
PR generates a custom avatar with the users initials and random color to
differentiate them. For res.users, res.partner and hr.employee, image fields now
hold the binary image and avatar are used to show the image or svg.

Current behavior before PR:
Avatar had only random colors and was being saved in database, being inefficient

Desired behavior after PR is merged:
A new mixin defines image fields and in case no image is set, it generates an
SVG image with the user's initials and random color.

closes odoo/odoo#69819

Task: 2404630
Related: odoo/enterprise#18199
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-06-01 14:36:23 +00:00
Christophe Monniez 2949138a7d [IMP] various: use the barcode qweb widget whenever possible
When using the route `/report/barcode/...` in a report, wkhtmltopdf
makes htpps requests on the server to retrieve the barcode image.
If a lot of barcodes have to be printed, this can overload the server
with too much requests and makes wkhtml crashes.

With this commit, the qweb barcode widget is used to include the barcode
as an img tag with inline barcode image as base64 data.

closes odoo/odoo#64211

Related: odoo/enterprise#15619
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2021-01-12 12:50:23 +00:00
Xavier Morel 6835aeb0de [REM] core, *: deprecate <act_window> and <report>
Convert deprecated tags through the codebase.
2020-07-28 13:03:13 +00:00
Sébastien Theys 1e9772889b [IMP] *: use image.mixin when appropriate
The following models are already using big images, or they might need big images
in the future:

- partner
- hr employee
- shop category
- lunch product
- gamification badge and karma rank

PR: #34925
2019-08-02 16:47:58 +00:00
pha-odoo 649ea4927e [FIX] hr: move print_employee_badge to the hr module
closes odoo/odoo#30302
2019-01-17 09:59:57 +00:00
Lionel Sausin 5780d1032b Moved the attendance reports and wizard from the "hr" module to "hr_attendence".
Pulled back the weekly attendance report from the 4.2 branch
Removed theorical workhours and holiday workhours from the reports to make sure they can be printed even if only "hr" and "hr_attendance" are installed

bzr revid: ls@numerigraphe.fr-20090202182543-km4x5yp27d74ksk8
2009-02-02 19:25:43 +01:00
Stephane Wirtel 21f104a506 [IMP] Update the copyright to 2009
bzr revid: stephane@tinyerp.com-20090104221250-55q32ayj2t8kzb2k
2009-01-04 23:12:50 +01:00
Stephane Wirtel 218ddfe735 [REF] Replace Tiny ERP by Open ERP
bzr revid: stephane@tinyerp.com-20081210225543-fxxae0fqe4tgc3ud
2008-12-10 23:55:43 +01:00
Christophe Simonis d126387243 [FIX] use string instead of numeric format for day of week
lp bug: https://launchpad.net/bugs/289035 fixed

bzr revid: christophe@tinyerp.com-20081120153825-ksfmm1rtrr359c6c
2008-11-20 16:38:25 +01:00
Christophe Simonis f5fad0ba30 passing modules in GPL-3
bzr revid: christophe@tinyerp.com-20081103191856-jhcivvwb16fvz2os
2008-11-03 20:18:56 +01:00
Priyesh 7c56005927 made report named attendance_errors.sxw in hr_attendance module
bzr revid: solanki.priyesh@gmail.com-20080917065334-b1r1285hrzt75v5f
2008-09-17 12:23:34 +05:30
Priyesh f176324c21 formatted report of attendance_errors.sxw and rml of hr module and cost_ledger.sxw and rml of hr_timesheet_invoice module.
bzr revid: solanki.priyesh@gmail.com-20080915130228-t2rkylaqmsnkvkkm
2008-09-15 18:32:28 +05:30
Priyesh c91d213f02 Formatted reprot using OOPlugins expense.sxw and expense.rml of hr_expense module.
bzr revid: solanki.priyesh@gmail.com-20080912110815-erq9682bey9qwc81
2008-09-12 16:38:15 +05:30
Priyesh bab50dc7ae report
bzr revid: solanki.priyesh@gmail.com-20080911074205-v3fs0ki34kj8kle5
2008-09-11 13:12:05 +05:30
Najlaa 2cbe075c9f Picking
bzr revid: nel@silver-20080905073127-oj2n22brcy3vrpmm
2008-09-05 09:31:27 +02:00
tiny a7d63f3734 Comitted :
Print Attendance Error Report
       attendance_error.rml
       attendance_error.sxw
Formated Using OOPlugins....

bzr revid: tiny-20080905062913-2yh4tycqewjh5kkd
2008-09-05 11:59:13 +05:30
Fabien Pinckaers a961da825b Improved Views
bzr revid: fp@tinyerp.com-20080828234843-qnvgouc0hxmmyhh0
2008-08-29 01:48:43 +02:00
Fabien Pinckaers ca24f48de3 Modifs
bzr revid: fp@tinyerp.com-20080828230810-nt2h294l3w6ox3iy
2008-08-29 01:08:10 +02:00
Christophe Simonis 3e3d897e88 add encoding comment and vim comment
bzr revid: christophe@tinyerp.com-20080723144147-77o5t9adx26a84lt
2008-07-23 16:41:47 +02:00
Christophe Simonis d2ff95f665 replace tabs with 4 spaces
bzr revid: christophe@tinyerp.com-20080722151128-f5zy75tsn8pgtndd
2008-07-22 17:11:28 +02:00
stw c60cae0a8c reindent all xml files
bzr revid: stw-c7b064849fe1f51bf264dd2de76920ded909d158
2008-06-29 08:26:07 +00:00
stw 0feb782c6a add Copyright and GPL license into the Header of Python files
bzr revid: stw-d9a6d631f7cfdab5a120a6b0104ce2dbf8644841
2008-06-16 11:00:21 +00:00
pinky a83dce15e0 New trunk
bzr revid: pinky-dedd7f8a42bd4557112a0513082691b8590ad6cc
2006-12-07 13:41:40 +00:00