summaryrefslogtreecommitdiff
path: root/addons/project/static/src/js
AgeCommit message (Collapse)Author
2021-04-07[FIX] project: kanban select in selectionModeNicolas Lempereur
The custom code for project.project kanban view prevented the kanban to works in selectionMode (eg. kanban view to select a many2one record in mobile). opw-2490912 closes odoo/odoo#68894 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2021-01-27[FIX] *: update tour sequenceMohammed Shekha
with this commit we are updating sequence of onboarding tours task-2444153 closes odoo/odoo#64846 Related: odoo/enterprise#15886 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-01-21[FIX] *: various tour fixesMohammed Shekha
with this commit we fixes various tour steps, remove steps from crm and sale tour and improve step selector in project tour. task-2444272 closes odoo/odoo#64835 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-11-16[FIX] *: rephrase, correct typosMartin Trigaux
Courtesy of Transifex's translators for reporting bad/unclear sentences. closes odoo/odoo#61785 Related: odoo/enterprise#14751 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-21[FIX] project: rephrase franglishFabrice Henrion
Courtesy of the en_US police closes odoo/odoo#47148 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-19[IMP] sale_timesheet: Billable projectjbm-odoo
Split completely 'non billable' from 'task rate' for more clarity. Simplify the task form view of non-billable projects. TaskID 2032048 closes odoo/odoo#55972 Related: odoo/enterprise#12441 Related: odoo/upgrade#1662 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-06-23[IMP] project: improve calendar viewArnaud Joset
Before this commit, the calendar view showcases tasks by deadline. Because it is a simple date field, the day/week modes don't have much value and are even confusing to the users, who expect to be able to define timeframes. In addition, the quickcreate doesn't allow to select a project. This is problematic because it leads to "ghost" tasks. closes odoo/odoo#52478 Taskid: 2264594 Related: odoo/enterprise#10976 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-06-15[REF] mail, *: refactor messaging with OWLSébastien Theys
This commit is a significant rewriting of client-side discuss, chatter, chat window, and messaging menu using OWL. The behavior should be broadly the same, with some slight functional changes here and there. From a technical standpoint, the code of messaging is mainly organized in 2 main groups of modules: - models, which are logical entities that depict the client-side state of messaging as a whole. - components, which are in charge of displaying information from models. This refactoring also introduces new JS guidelines regarding folder structure (/static) and naming rules for JS modules. Community PR: https://github.com/odoo/odoo/pull/39023 Enterprise PR: https://github.com/odoo/enterprise/pull/6249 Task-1914207 This PR is a collaborative work by Alexandre, Julien, Sébastien and Xavier, with the precious help of Lucas to speed it up towards the end. closes odoo/odoo#39023 Related: odoo/enterprise#6249 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Alexandre Kühn <aku@odoo.com> Co-authored-by: Julien Giannone <jgi@odoo.com> Co-authored-by: Lucas Perais <lpe@odoo.com> Co-authored-by: Sébastien Theys <seb@odoo.com> Co-authored-by: Xavier Dubuc <xdu@odoo.com>
2020-06-02[IMP] project: Improve global UX (back2basics)Yannick Tivisse (yti)
Improve the onboarding of new users and clean a few screens. Task ID: 2237996 closes odoo/odoo#50284 Related: odoo/enterprise#10536 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Co-authored-by: dmonzonis <mod@odoo.com>
2020-05-28[FIX] project: Open tasks when clicking on kanban recordYannick Tivisse
Purpose ======= Reintroduce the horrible bidouille that was removed by mistake. closes odoo/odoo#52041 Note: Should be cleaned though. Taskid: 2266510 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-05-27[IMP] project: Improve onboarding tourdmonzonis
The onboarding tour of the project app has been improved by changing some messages and changing the flow to show users how to use the chatter features within tasks. Task ID: 2238624 closes odoo/odoo#49760 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
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>
2020-04-30[IMP] web: Allow customization of text in button to apply kanban exampledmonzonis
Before this commit, the only module that allows for selecting and applying kanban column examples is the project module, for its tasks kanban, so the message in the button to apply the example is hardcoded as "Use This For My Project". After this commit, the text in this button can be customized to make this more generic, so a different module could use a different message like "Use This For My Campaigns". If no text is specified, a generic "Use This For My Kanban" is used instead. Usage ``` kanbanExamplesRegistry.add('utm_campaign', { applyExamplesText: _lt("Use This For My Campaigns"), ``` Task ID: 2047369 PR #48299
2020-04-22[IMP] project: ease stage deletionKevin Baptiste
Before this commit, deleting a stage with tasks, the user received an error. With this commit, when deleting a stage containing tasks, a wizard offers the choice to move the tasks to another stage. closes odoo/odoo#46410 Taskid: 1869030 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-31[IMP] project: add new kanban examplesKevin Baptiste
Add new Kanban examples and improve the usability of the dialog. closes odoo/odoo#48620 Taskid: 2210279 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-27[IMP] project: add sequence to project tourJulien Mougenot
Task 2191192 closes odoo/odoo#48230 Related: odoo/enterprise#9472 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-03-11[REF] *: add tour steps utilsRomeo Fragomeli
This commit moves some step utils in a dedicated file and add new ones. These steps will be very useful for the Main Flow Tour to avoid duplicated code. To do this, we also had to transform it into functions to allow utils to call each other. Existing one are converted for standardization purpose. Note that 'WEBSITE_NEW_PAGE' wasn't considered as an util. This is a very simple step only used twice.
2020-01-09[FIX] project: translate kanban examplesMartin Trigaux
Using a lazy translator as this file is processed when loading the web client, no during rendering (the translation memory was not ready yet). Turn escFormat into a lazymethod to evaluate it only after translation resolution. Fixes odoo/odoo#36494 t push de# closes odoo/odoo#43038 X-original-commit: 05429ca9d09ad49f5f214b082ef524b74c25eeeb Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-12-09[REV] web: reverts update to fontawesome 5.11.2Kevin Baptiste
This reverts commit ff1c35513aecef5fbc30f7c2f3834450e719714e. closes odoo/odoo#41480 X-original-commit: 116057b26e71db4692280463669f3e80d813ddcc Related: odoo/enterprise#7110 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-11-28[FIX] project: fix traceback in project public ratingVishnu Thuletiya
Purpose of the task is, clicking on rating from publicly rating project dashboard it will produce the traceback. so fix the traceback by fixing typo in portal rating. Task-2145507 closes odoo/odoo#41132 Closes: #41005 X-original-commit: 9587ccc716c3e6d6c0a73acd22155b545d1638b8 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-11-28[IMP] web: update to fontawesome 4.7.0 to 5.11.2Kevin Baptiste
FontAwesome 5 introduced new names for some icons as described on https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes This commit replaces the old names to the new ones. closes odoo/odoo#35826 Taskid: 2050241 Related: odoo/enterprise#5180 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-07-30[IMP] project,_timesheet_holidays: improve source termsYenthe666
closes odoo/odoo#35227 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-06-18[IMP] web, project: improve examples background on kanban quick create columnJinal Patel
This commit makes the use of the kanban more intuitive by changing the view's example background columns labels. kanbanExamplesRegistry will have object as a value instead of array, ghostColumns and examples will be the key where ghostColumns defines column titles for example background on column quick create and examples will be array of examples which will be displayed on click of See Examples link in quick create column If ghoseColumns are not defined then dynamically ghost columns will be generated with titles like Column 1, Column2... task- 1937198 closes odoo/odoo#30911 Signed-off-by: Jérome Maes (jem) <jem@openerp.com> Co-authored-by: Mohammed Shekha <msh@odoo.com>
2019-06-05[IMP] *: move test and tour files to new folder hierarchy and assetRomain Derie
As we now have a new debug mode 'tests' which load a new asset bundle containing tour-test files, we moved those files to a new folder hierarchy. That will clean the .js files trees. Also, those files should be included in the new asset. Basically, the .js tour files (not test) should be inside /static/src/js/tours while .js tour test files (test=true) should be inside /static/tests/tours next to QUnit tests, inside a tours folder. + test_new_api: don't run the test in debug assets task-1934445 Comes with https://github.com/odoo/enterprise/pull/4281 Closes #33213
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>
2019-02-26[REF] *: use 'frontend' system in non-website appsqsm-odoo
* account, auth_signup, payment, portal, project, sale, sale_management, web_unsplash, website, website_mail, website_rating, website_sale This commit does probably not do what is stated for all non-website apps but it is a first step. It also uses the system in apps which could have already used it but did not. Part of https://github.com/odoo/odoo/pull/29442 task-1932066
2019-02-22[MERGE] forward port branch saas-12.1 up to 0f4abc5c228Christophe Simonis
2019-02-15[FIX] project: remove duplicated step in tourAaron Bohy
closes odoo/odoo#31146
2019-01-16[IMP] web: make kanban example support state bulletsjem-odoo
2019-01-16[IMP] project: improve kanban example sentencesjem-odoo
This commit improves the sentences used in the kanban example modal in order to be more concrete and precised for the users Task-1893021
2018-09-21[CHG] *: "family" names of admin & demo usersXavier Morel
avw/fp? request 58fc4e440952bde533c8aa1dc8b6fc2440a05337 changed various demo data, including putting more "realistic" names in for the administrator and demo users in demo mode. This is apparently inconvenient when actually demo-ing Odoo as it's harder to see at a glance whether the current user is the administrator or "regular" (demo) user of the db, though this should have less impact since the userification of the admin (2f7c03d9ca5809b65dc6eaa778064668d34fcd2e).
2018-09-17[FIX] *: adapt tours for the new community navbarAlexandre Kühn
*: crm, hr_expense, hr_recruitment, point_of_sale, project, sale, stock, web_tour, test_main_flows, test_new_api To sum up: - Click on "Apps Menu" then the app item. (previously: click on '+' then the app item). - Click on navbar section menu item. (previously: click on sidebar section menu item).
2018-08-18[IMP] project: reducing tour to avoid asking for invitationsFabien Pinckaers
We already ask to create a user when creating the first task, going to the Settings to invite more people is too much.
2018-07-27[REF] *: BS4, review breadcrumb structureqsm-odoo
Now, the 'breadcrumb-item' class has to be put explicitely on breadcrumb items.
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.
2018-07-26[IMP] project: Improve the onboarding tourShubham Johar
- improve tips text - project task quicky create "Title" changed to "Task Title" - Add steps to open task to add more information on task(edit task and then save task) - Remove step on "Assigned to" - Finish tour on Invite users in Settings - Add rainbow man on tour finish Related to task: #1825214
2018-07-25[IMP] base: Improve partners/employees demo dataYannick Tivisse
- Update all the pictures - Rename the partners with a name that is easy to say for an English speaker (No more 'Agwoleight') - Update all the addresses/phone numbers in the american format - Unify the demo data with the new theme (Wood shop/manufacture,...)
2018-07-09[FIX] *: fix some side-effects of ↵qsm-odoo
https://github.com/odoo/odoo/commit/9de1bc0eef6f5bfaa2a8d745431caa361ae91548 - JS Modals were not correctly built anymore, their .modal-body element was duplicated and many without-effect JS lines were introduced (as a side effect, the form view design was broken when inside modals) - Tests were changed to make bugs go unnoticed. For example, the media dialog functionnality was entirely broken because the .modal-dialog element was not receiving the correct class anymore. - The JS translation function is _t, not _ - Do not use the <title/> tag as a regular DOM element, it is meant to be unique, in the <head/> section - CSS rules were added to the utils.scss file, which is meant to contain functions and mixins, otherwise, the rule is duplicated in every asset - Some icons were still broken, as missed by https://github.com/odoo/odoo/commit/f90cf060a3cfeb37a67bec83264c0aaab8892b56 - Tests were changed to use [role="dialog"]/footer/header in their selectors without any reason, this commit restores some of that to avoid rebase conflicts with the BS4 work. - ... Note: other elements should still be discussed, like the direct use of the 'o_form_label' class in views definition... but those do not cause direct problems.
2018-06-22[IMP] Improve compatibility with screen readers (accessibility) (#24574)kujiu
Today, Odoo is really tricky to use without seeing the screen, it must be improved to be usable. This PR forbid to use labels without a "for" attribute, add some title, rule and aria attributes in HTML. With that, Odoo will be fully usable with a screen reader. * [IMP] Labels must have a for attribute. Improve accessibility. * [IMP] Better error message when trying to read a missing cached value * [FIX] Add some aria-label and title attributes for screen readers. * [FIX] Template name is not included in the error message in case of SyntaxError in QWeb * [FIX] Improve the Tour failed at step error message to be more explicit. * [IMP] Add aria-labels * [FIX] Add missing aria-label on failing test * [IMP] aria-hidden means hidden. Fix all bad aria-hidden and hide aria-hidden for all. * [IMP] Color names on kanban views and many2many tags * [IMP] Add some checks on views for accessibility. * [IMP] Add `alt` attribute on `img` tags. * [IMP] Add aria-label and title on non-described icons * [IMP] Add button role to widgets with btn class * [IMP] Translate aria and formatted attributes. * [IMP] Remove wrong aria-labelledby * [IMP] Add menu role on dropdowns * [IMP] Buttons must be focusable * [IMP] Add aria attributes on progress bars * [IMP] Improve accessibility of basic widgets * [IMP] Change main layout to more semantic tags * [IMP] Add menuitem role when missing * [IMP] Remove wrong role='presentation' * [IMP] Improve accessibility of tab panels * [IMP] Add aria-invalid on invalid fields * [IMP] Add aria-sort on ordered columns * [IMP] Add role on alerts * [IMP] Use dialog role, header, main and footer tags for modals * [IMP] Add labels on o_status * [IMP] Improve accessibility of kanban view with feeds and articles * [IMP] Add alerts in case of new messages * [IMP] Add widget, navigation or img role to aria-labelled items
2018-03-21[MERGE] forward port branch saas-11.2 up to 500e3f49705Christophe Simonis
2018-03-15[IMP] web_settings_dashboard,*: improve UXJigar Patel
*crm,project: css selector adapted in tours This rev. improves the UX of the 'Invite users' and 'Pending invitations' part of the Settings dashboard. Task 32804 Closes #19531 Co-authored-by: Aaron Bohy <aab@odoo.com>
2018-03-12[FIX] project: correct spelling mistake in tourfgi-odoo
Closes #23598
2018-02-05[FIX] project: reset correct tourjem-odoo
Partial revert of 88ff096c9653b33106261705b1d59fd86b538d30 Please, avoid bring things ...
2018-02-05[IMP] project: when doing a subtask, missing space after colonFabien Pinckaers
[IMP] project: "Task Title">Title (could be named differently) [FIX] project: don't assign a person on a task during the tour Someone is already assigned as tasks are created from the kanban, directly, with a responsible by default.
2018-01-26[FIX] project: adapt tour to flow changesAaron Bohy
The ColumnQuickCreate widget is now automatically open when entering a grouped Kanban view with no column. Moreover, the DOM of the quick create has changed. The tour had to be adapted accordingly.
2018-01-26[IMP] web,project: Kanban onboardingParth Patel
The goal of this rev. is to improve the user onboarding on the Project app: when the user creates a new project, he is now guided to properly configure the stages of its project. To do so, we added a new mechanism in the Kanban view, allowing to define examples of processes that can be used in the corresponding view. The style of the ColumnQuickCreate widget has also been changed. Part of task #38740
2018-01-18[IMP] core: menu tip ux/ui improvementAlexandre Kühn
We would like to make the "no item found" screens more appealing. Before this commit, it shows a small help tip in the top-left corner of the screen, just below the "Create" button. With this commit, these help tips have been replaced by onboarding screens, which consist of a picture and some text below, both of which are horizontally centered. The texts have been slightly changed, so that they are shorter and clearer. Considered modules: (A) account, account_asset, account_budget, account_test, account_voucher, analytic (B) barcodes, base, base_automation, board (C) calendar, contacts, crm (D) delivery (E) event (F) fleet (G) gamification, google_drive (H) hr, hr_attendance, hr_contract, hr_expense, hr_gamification, hr_holidays, hr_payroll, hr_recruitment, hr_timesheet (I) im_livechat (L) l10n_fr_sale_closing, link_tracker, lunch (M) mail, maintenance, mass_mailing, membership, mrp (N) note (P) payment, point_of_sale, post_mercury, pos_restaurant, product, project, purchase, purchase_requisition (R) rating, repair, resource (S) sale, sale_timesheet, sales_team, stock, stock_account, stock_landed_costs, stock_picking_batch, survey (U) utm (W) web, website, website_blog, website_customer, website_event_track, website_forum, website_quote, website_sale, website_sale_digital, website_slides
2017-12-12[REM] website_rating_project: move feature in projectJérome Maes
Displaying the rating of project is moved directly in project module, since it does not depends on website. User may want to display rating of its support project even without website.
2017-12-01[IMP] project: Update tourSagar Ahirrao