summaryrefslogtreecommitdiff
path: root/addons/project/static/src/js/project.js
AgeCommit message (Collapse)Author
2020-05-25[IMP] project,...: Improve list views with new widgetsYannick Tivisse
Purpose ======= Task 2195254 introduced many wonderful widgets to pimp the list view. This task aims at implemeting them into the Services apps: project, timesheets, helpdesk, expense, planning and field service. Remaining days: https://drive.google.com/file/d/1o4Wn47445GxLqBkw-ifH9MgtFU_437xz/view Avatar: https://drive.google.com/file/d/1yDwJWP0MZCUKZbqCa8hte1ziVTYRMMtb/view Activities: https://drive.google.com/file/d/1e_rXH50eZq4zY2HOzw7_pfgiD39SoRIl/view Field-specific decorations: https://drive.google.com/file/d/1WFnqJ-jkyDFftRHxWW4bgomoWrOpOuaY/view More control on buttons Specifications ============== You will find below a list of which widgets to apply to which fields by model. Some changes have to be done in the form/kanban views as well. 1) project.task remaining days -> date_deadline -> list + kanban + form views hide this field if is_closed is true avatar -> user_id -> list view activities -> 'next activity' field to be added -> list view field-specific decorations https://nimb.ws/ACewrY remove the current orange/red decorations we have if planned_hours > 0, display the remaining_hours field in (list view): red if progress is > 100% orange if progress is between 80% and 100% green if progress is <80% display unit_amount in red if > 24:00 -> form view 2) rating.rating display the rating in: green = satisfied orange = not_satisfied red = highly_dissatisfied list + form views 3) project.project avatar -> user_id -> list + form views 4) account.analytic.line avatar -> employee_id -> list view display unit_amount in red if > 24:00 -> list + kanban + form view https://nimb.ws/eIWa7E merge the timer and duration fields together 5) helpdesk.ticket avatar user_id -> list view employee_id under timesheet_ids -> form view remaining hours -> sla_deadline activities -> 'next activity' field to be added -> list view field specific decoration -> display unit_amount in red if > 24:00 -> form view 6) hr.expense avatar -> employee_id -> list view activities -> 'next activity' field to be added -> list view badge -> state -> list view draft = blue reported = green approved = green done = green refused = red combine the unit_amount and the currency_id fields (see the total_amount field for reference) -> list view (idem for the expense_line_ids one2many on hr.expense.sheet) display the total_amount in bold move 'company_id' before 'amount' 7) hr.expense.sheet avatar employee_id -> list view user_id -> list view activities -> 'next activity' field to be added -> list view badge -> state -> list view draft = blue submit = green approve = green post = green done = green cancel = red display the total_amount in bold move 'company_id' before 'amount' 8) planning.slot avatar -> employee_id -> list view decoration display the allocated_percentage field in red if > 100% -> list + form view display the forecast_hours field in red if > planned hours and if planned_hours > 0 -> form view display the effective_hours field in red if > forecast_hours and if forecast_hours > 0 -> form view 9) misc calendar.event -> avatar -> user_id -> form view mail.activity.type -> combine the delay_count and delay_unit fields together -> list view note.note -> 'next activity' field to be added -> list view crm.lead.mining.request combine the lead_number and lead_type fields together -> list view display the name in bold badge -> state draft = blue done = green error = red planning.slot.template -> display the duration field in red if it is = 0 closes odoo/odoo#51271 Taskid: 2248351 Related: odoo/enterprise#10605 Related: odoo/upgrade#1252 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-05-08[IMP] project: add closed stage in projectKevin Baptiste
closes odoo/odoo#46749 Taskid: 2205057 Related: odoo/enterprise#9119 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-04-18[MOV] web, project: make cover image generic in kanbanSuraj Shukla
Previously, we could only set cover image on the kanban view of project task. This commit makes the feature generic so now cover image can be added to any kanban view. Technical notes: - field used to display the cover image has to be set as 'data-field' attribute on the kanban dropdown's menu related to cover image - developer will have to take care while designing kanban views with cover image ability in such a way that it does not break the design Task 32108 closes odoo/odoo#31731 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2018-07-27[REF] *: BS4, adapt display classesqsm-odoo
The system completely changed. I also had to adapt classes to new screen breakpoints. hidden/hide -> d-none show -> d-block hidden-xs -> d-none d-md-(block/inline/...) hidden-sm -> d-md-none d-lg-(block/inline/...) hidden-md -> d-lg-none d-xl-(block/inline/...) hidden-lg -> d-xl-none visible-xs-* -> d-* d-md-none visible-sm-* -> d-none d-md-* d-lg-none visible-md-* -> d-none d-lg-* d-xl-none visible-lg-* -> d-none d-xl-* hidden-print -> d-print-none visible-print-* -> d-none d-print-* ... and all possible combination of those had to be handled too.
2017-10-19[IMP] project: Improve the cover image mechanismVandan Shah
Purpose ======= If there is no picture attached to a task, the user doesn't understand how to add a cover image. Sepecification ============== - "Select" button to select image => Display only if we have images - "Remove Cover Image" => Display only if image already set - "Upload and Set" => Always visible , highlight button if no images. Image uploaded via dailog box should automatically set on task kanban and add to the "Attachments" in task.
2017-09-05[IMP] *: add and improve kanban views for mobileKirti Choudhary
This commit improves readability in kanban views. The default view in mobile is kanban and many of them needed to be improved. task-33438 closes 17853
2017-07-24[IMP] web, *: lazy load dialog xml templateqsm-odoo
* web_editor, web_planner, website The 'Dialog' class is used in both backend and frontend. Also, lots of actions can be done without the use of any modal. It thus makes sense to lazy load its related xml only when a first modal is opened. This change also allows to get rid of the "base_common.xml" file as the dialog template is the only remaining one in there and, in the future website update, it will allow to not load any static XML file on website page loadings.
2017-06-07[FIX] project: fix traceback while setting cover imageHarshad Modi
from project task kanban view (PR #17165)
2017-04-11[REF] web, *: simplify our RPC system (in JS)Géry Debongnie
The RPC system was not completely satisfactory, we decided to prepare the future and do it properly. This commit introduces the new rpc system, which replace the previous new one. We now simply have a method, this._rpc, which takes a dictionary of parameters. The idea is that depending on the parameters, it is able to add correct default value when necessary. For situations where we don't have the this._rpc method, we can use the rpc.query method, which takes the same arguments, but directly calls ajax.rpc instead of triggering up some events.
2017-04-11[REF] web,*: convert Kanban widgets to new styleAaron Bohy
The remaining widgets were KanbanRecord and the two quick create widgets. Now, all kanban files have been converted and refactored.
2017-04-11[REF] *: use _rpc method for all rpcsGéry Debongnie
The _rpc method is now the preferred method to do a rpc, so we need to update all calls.
2017-04-11[REF] web,*: remove 'web.model' and 'web.dataModelGéry Debongnie
Use this.rpc instead of Model object, with web.ajax if necessary. nb: EventDispatcherMixin include now the custom_events managment instead of widget
2017-04-11[IMP] web, *: let kanban column and record know about modelNameqsm-odoo
* hr_attendance, hr_gamification, hr_recruitment, mass_mailing, project, sales_team Before this commit, the kanban column did not know about the model name which make customization impossible without a getParent. Kanban records were supposed to know about this thanks to the options parameter but this was broken. Now the model name is automatically initialized from the given state. Adapt all extensions which relied on this.
2017-04-11[REF] web, *: redesign all JS viewsGéry Debongnie
This commit introduce a full redesign of all JS views. We started basically from scratch. The goal was to unify all the various views under a common framework, to make them testable, to make then usable in different conditions (in studio, or in the frontend), and to make our lives easier. Some important points are: - we introduced new coding guidelines (camelCase, 80 chars width, ...) - we have a brand new testing framework (still QUnit based) - kanban view moved to the web addon - calendar view (formerly web_calender) moved to web as well - the tree view was removed - all new code should be documented We hope that this code is the start of a new era for the Odoo web client, we want to have a high quality codebase, well documented, well tested, well designed. Work done by the framework team: mostly aab, ged, chm, dmo, qsm
2016-01-28[FIX/IMP] project,web: kanban cover image dialogqsm-odoo
* Fix the grid display of images (use the column property) * Use Dialog class * Allow removing a cover image * Add image selection before choosing it (or double click to choose) + add less mixins in web for columns property
2015-09-07[IMP] project: displayed image on task not computed anymoreMartin Geubelle
We don't want the dispayed image to be set to the last attached image but we want to be able to choose it.
2015-06-15[FIX] various: update some js modules to new kanbanGéry Debongnie
The kanban view has been split in various files, and js modules using them need to correctly import the classes.
2015-05-22[IMP] hr, hr_*, project, sale, sales_team, stock: in dashboards, add color ↵Martin Geubelle
picker, add domains on reports and style improvements
2015-05-12[ADD] project, project_issue, rating_project, project_timesheet: new ↵Martin Geubelle
dashboard view for project
2015-03-18[IMP] web+addons: improvement to module systemGéry Debongnie
The module system needs to know the dependencies of a given module before executing the function. This is why the dependencies were defined once in an array, and then were described one more times in the call to require. But a trick can simplify this: the boot function can parse the string representation of the module and extract the calls to require from it. It is more work for the processor, but it leads to simpler module definitions.
2015-03-18[REF] various addons: update to the new module systemGéry Debongnie
2014-04-17[FIX]bootstrap tooltip cleaned from trunk-tipsy-to-bootstrapCedric Snauwaert
bzr revid: csn@openerp.com-20140417090515-l1ku2kdc0lzadjxg
2013-02-01[REM]override on_record_moved removed.not useableVidhin Mehta
bzr revid: vme@tinyerp.com-20130201121713-ux3pegin1ywd5gj9
2012-11-28[REM] Removed manual many2many tags from kanban viewsFabien Meghazi
bzr revid: fme@openerp.com-20121128115417-sgpf3hr4rgwglrbm
2012-11-05[MERGE] trunkFabien Meghazi
bzr revid: fme@openerp.com-20121105084838-gwc7xb19f7131vbi
2012-10-31[IMP] jQuery deferred API changes refactoring. Changed 'then's in ↵Fabien Meghazi
'done'/'fail' and 'pipe's in 'then' bzr revid: fme@openerp.com-20121031103148-r1slfpl2kcnajjd3
2012-10-31[IMP] use applyRGA(OpenERP)
bzr revid: rgaopenerp-20121031054741-kh2y1e36avh906v3
2012-10-31[IMP] Unfold the folded column on record moveHiral Patel (OpenERP)
bzr revid: hip@tinyerp.com-20121031050905-8r3u9a45kc6dqyue
2012-10-29[IMP] In task kanban if we have tag and we click on round(blocked) button, ↵Hiral Patel (OpenERP)
the tag name is getting disappeared bzr revid: hip@tinyerp.com-20121029061539-x1mbipeco6sth82d
2012-08-24[IMP] made a whole-application replace of $element by $elniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20120824182743-1d9cii7kigc7exer
2012-07-12[IMP] many2many tags CSS classes have been properly namespaced (cf. this ↵Antonin Bourguignon
branc: ~openerp-dev/openerp-web/trunk-m2m_tags_namespacing_imp-abo): adapt views accordingly also skip the little toggle() trick - it's kinda overkill bzr revid: abo@openerp.com-20120712131002-lj085r2moshptbts
2012-07-12[IMP] make project_display_members_names() and project_display_categ_names() ↵Antonin Bourguignon
CSS agnostic instead of finding DOM elements by element type *and* CSS class (with long and tending to change names), these functions will only use element type (here <img> and <span>) and data attribute (which is used in the function anyway) bzr revid: abo@openerp.com-20120712123840-m8kuupefggmgl5v4
2012-07-12[IMP] refactor the handling of many2many tags in issues and tasks kanban viewsAntonin Bourguignon
bzr revid: abo@openerp.com-20120712113326-a0p30oij7g67gmtj
2012-05-24[IMP] Improved project and opportunities kanban view. Use ↵Fabien Meghazi
KanbanRecord#on_card_clicked bzr revid: fme@openerp.com-20120524160752-rl0by5v4g1n22syl
2012-05-23[IMP] Kanban project improvementsFabien Meghazi
bzr revid: fme@openerp.com-20120523085514-ku1h80z88xbcg3cs
2012-05-22[WIP] Kanban project cleanupFabien Meghazi
bzr revid: fme@openerp.com-20120522155815-y23ps3bs32i9vqlu
2012-05-21[IMP] Project Kanban: jslint and code indentationFabien Meghazi
bzr revid: fme@openerp.com-20120521130914-c2iijoifs763am83
2012-05-09[IMP] project: small code cleanup for project kanban viewRaphael Collet
bzr revid: rco@openerp.com-20120509065522-16ouzxqiwqgjdcyd
2012-05-08[IMP]:added def dummyAmit Patel (OpenERP)
bzr revid: apa@tinyerp.com-20120508105521-1mqur1isvkw0j5n7
2012-05-08[IMP]:set indentation in js file.Amit Patel (OpenERP)
bzr revid: apa@tinyerp.com-20120508104705-zri4xvoc4k1d4e9q
2012-05-08[IMP]:improved js code.Amit Patel (OpenERP)
bzr revid: apa@tinyerp.com-20120508104607-w3q12gphejt3zauw
2012-05-08[MERGE/IMP]:Mereged technically issues by rco and also removed the dummy ↵Amit Patel (OpenERP)
while merging. bzr revid: apa@tinyerp.com-20120508103253-fwq86q4be3v6hsxw
2012-05-08[IMP]remove open_model method from project related module and add action as ↵Sanjay Gohel (Open ERP)
per required bzr revid: sgo@tinyerp.com-20120508092143-ah3siaudwp7jixc8
2012-05-07[IMP]:project:Used a relate action like ↵Amit Patel (OpenERP)
'project.act_project_project_2_project_task_all' instead (easier to configure and maintain) and remove default value for project_id. bzr revid: apa@tinyerp.com-20120507125708-7gcxl8915us0xoio
2012-05-07[IMP]rename all fields which r required in project and another module and ↵Sanjay Gohel (Open ERP)
improve code and bzr revid: sgo@tinyerp.com-20120507072049-u00lsqra9x34nf73
2012-04-27[IMP]:improved code.Amit Patel (OpenERP)
bzr revid: apa@tinyerp.com-20120427063152-9qp4k3mz6dhgz7ho
2012-04-27[IMP]:improved code.Amit Patel (OpenERP)
bzr revid: apa@tinyerp.com-20120427062725-0lpfbxs0xkdmm7zf
2012-04-26[IMP]Amit Patel (OpenERP)
bzr revid: apa@tinyerp.com-20120426172529-7xeaex0nulxeul1l
2012-04-12[IMP]Amit Patel (OpenERP)
bzr revid: apa@tinyerp.com-20120412055921-eo0dumz60cimx62c
2012-04-12[IMP]:improved bgcolor code.Amit Patel (OpenERP)
bzr revid: apa@tinyerp.com-20120412054631-xs2nk19n3w858qpn