summaryrefslogtreecommitdiff
path: root/addons/project/static
AgeCommit message (Collapse)Author
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-03-06[REF] project: adapt code after jQuery updateVincent Schippefilt
Part of task 1896658 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Christophe Matthieu <chm@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: David Monjoie <dmo@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com> Co-authored-by: svs-odoo <svs@odoo.com> Co-authored-by: Vincent Schippefilt <vsc@odoo.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-21[MERGE] forward port branch 12.0 up to 84143a34b31Christophe Simonis
2019-02-13[IMP] web, *: remove explicit references to `session_id`Martin Geubelle
Since rev. odoo/odoo@f4d541e the `session_id` cookie uses the `httponly` flag so it cannot be accessed through client side script. But before this rev. the `session_id` was still provided by the server to the webclient (in session_info, mostly) and was stored and accessible. This made XSS injection more dangerous than they should be as it was very easy to steal the `session_id`. As the browser automatically set the `session_id` on every request to the server, the webclient shouldn't need any explicit reference.
2019-02-15[FIX] project: remove duplicated step in tourAaron Bohy
closes odoo/odoo#31146
2018-11-19[REF] *: update js test suite to use helpersGéry Debongnie
This rev. introduces robust helpers to use in the JS tests suite to interact with DOM and components, and starts using them (almost) everywhere. All the helpers are exposed though testUtils.js. There are 2 kinds of helpers: 1. Assertions ------------- * assert.containsNone, containsN, containsOnce check that the DOM (or a specific part of the DOM) contains a `selector`. It generates a correct error message automatically. ex: assert.strictEqual(form.$('.o_form_editable'), 1, "msg"); -> assert.containsOnce(form, '.o_form_editable'); * assert.isVisible, isNotVisible check that the DOM has an element visible or not. They also check that the element is actually in the DOM (before most tests didn't verify this). * assert.hasClass, doesNotHaveClass, hasAttrVAlue, check specific properties of a DOM element, and also validate that it is applied on a single existing DOM element (before most tests didn't verify this). ex: assert.notOk(form.$('button').hasClass('btn-primary')); -> assert.doesNotHaveClass(form.$('button'), 'btn-primary'); 2. Utilities ------------ The goal of the utilities is to centralize the definition of many standard components and interactions, ensuring that when we refactor the JS framework, we do not need to change all the tests. Existing mock utilities (addMockEnvironment, intercept, path, patchDate, unpatch and fieldsViewGet) are moved to 'testUtils.mock.*'. Existing DOM utilities are moved to 'testUtils.dom.*'. New dom utilities are created for opendDatePicker, click, clickFirst and clickLast. Helper `click` verifies that there is exactly 1 element visible in the DOM you click on, `clickFirst` and `clickLast` verify that there are more than one element on the DOM. ex: form.$('button').click(); -> testUtils.dom.click(form.$('button')); New Form utilities: (testUtils.form.*) clickEdit, clickSave, clickCreate, clickDiscard, all clicks on the control panel buttons of the form. `reload` reloads the form data. New modal, graph, kanban and pivot utils (testUtils.pivot.*, testUtils.kanban.*, etc.). New fields utils: (testUtils.fields.*) * editInput, editSelect: allow to change the value of a field, using a selector to identify it. They validate that the input exists and trigger the change event automatically. * editAndTrigger: allow to modify a field and trigger specific events after the value change * many2one (testUtils.fields.many2one.*) clickOpenDropdown, clickHighlightedItem, clickItem, searchAndClickItem: use a field name instead of a selector and do all the complex mechanism to open, filter and highlight many2one fields. Joint work with aab, dam, ged, mge, svs and vsc.
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-08-09[REF] *: improve app icons, add SVG versionstefanorigano
- Uniform colors and design - Replace duplicated icons (eg. sale / sale_management) - Improve misleading icons (eg. POS) - Add icons for new apps Add SVG versions to lossless future editing and print/marketing use. task-54681
2018-08-03[REM] various: remove index.html for apps.Priyanka Kakadiya
Several applications have an index.html file that is used to fill the html description of the module. However those descriptions are generally not up to date: they contain outdated screenshots, feature descriptions are not maintained, ... Instead we just rely on the discover button that redirects on the application website. It has more chance being up to date. Moreover updating a website is easier than updating the index.html of a module. This commit is related to task ID 47179 and 1861544. Related PR are #22689 and #25556. First one is about classic applications while second one is about website applications. Co-Authored-By: Nimesh Jethva <nje@odoo.com>
2018-07-27[REF] *: BS4, adapt col-related classesqsm-odoo
col-lg-* -> col-xl-* col-md-* -> col-lg-* col-sm-* -> col-md-* col-xs-* -> col-* col-lg-offset-* -> offset-xl-* col-md-offset-* -> offset-lg-* col-sm-offset-* -> offset-md-* col-xs-offset-* -> offset-* col-lg-pull-* -> order-xl-1 col-md-pull-* -> order-lg-1 col-sm-pull-* -> order-md-1 col-xs-pull-* -> order-1 col-lg-push-* -> order-xl-2 col-md-push-* -> order-lg-2 col-sm-push-* -> order-md-2 col-xs-push-* -> order-2
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, review color systemqsm-odoo
Odoo used to declare two main colors: primary and optional (which are purple and turquoise in enterprise). Those were respectively assigned to the 'primary' bootstrap variable and the 'btn-primary' bootstrap variable. BS4, however, does not allow to have a different primary color for buttons. Instead, the 'primary' color is used for all 'primary' related components and utility classes, same as for all other colors. So, if we want to keep our enterprise buttons green, our 'optional' colors had to become our 'primary' color. The old odoo primary is then renamed to the 'odoo' color. The palette of grays is now larger by default and is numbered from 100 to 900 alongside the $black and $white variables. The equivalence for older variables and the way we used them is: $gray-darker -> gray 900 (unused before) $gray-dark -> gray 900 $gray -> gray 700 $gray-light -> gray 600 $gray-lighter-darker -> gray 400 (the old variable was created by us) $gray-lighter-dark -> gray 300 (the old variable was created by us) $gray-lighter -> gray 200 Fortunately, the 'lighter' variations we created fit well in the default BS4 system ! Unfortunately, our $gray-lighter which carried the same function as $gray-200 (see above) is very close to the new default $gray-100 and quite distant from the new $gray-200. This will be handled in the next commit.
2018-07-27[REF] *: BS4, adapt dropdowns and caretsqsm-odoo
- The dropdown structure was simplified, allowing to get rid of the 3-levels structure induced by <ul/> elements and dropdowns can now contain anything. The class 'dropdown-item' is now mandatory for each dropdown clickable element. The class 'dropdown-item-text' can be used to add same padding and style but without making the element have a clickable look. - Dividers now use the class 'dropdown-divider' - The way dropdowns are opened and hidden also changed (before the 'open' class was added on the `.dropdown-menu` parent, now the 'show' class is added on both the `.dropdown-menu` parent and the `.dropdown-menu` itself). - JS-wise, no click event handlers can be put on `.dropdown-toggle` elements anymore (instead, use handlers for dropdown events). - Carets are automatically put on `.dropdown-toggle` elements, so this commit replaces the `.caret` elements with this. This feature was possible to disable but would prevent us from adding a caret with scss. Also, this simplifies the DOM. The 'o-no-caret' class was also introduced to allow using the 'dropdown-toggle' class on non-caret elements. - Also adapt the scss to use $caret-width instead of $caret-width-base
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-27[REF] *: get rid of vendor prefixesqsm-odoo
BS4 do not provide vendor prefixes scss mixins anymore as it is meant to be used with the 'autoprefixer' library. As we only support the last version of every major browsers in Odoo, we took the decision to not use the library as it was also complex to integrate in Odoo. We decided to do the library's work by hand if it ever become necessary.
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-04-18[REF] *: review scss variables handlingqsm-odoo
Unlike LESS, SCSS variables are not lazy loaded. Our system has thus to be updated. This commit creates new templates which are t-called in assets bundles (to replace the old less_helpers template): - web._assets_utils: regroups the mixins and functions which *can* (and so should) be available in every asset bundle - web._assets_primary_variables: regroups the variables (or mixins used as variables) which *can* (and so should) be available in every asset bundle - web._assets_secondary_variables: same as above but provides an environnement where all the 'primary' ones are accessible. This is for example useful to handle the community/enterprise split: // Community primary variables $o-pink-color: pink; // enterprise color $o-brand-primary: blue; // Enterprise primary variables $o-brand-primary: $o-pink-color; // Community secondary variables $o-my-darker-primary: darken($o-brand-primary, 5%); => If there was only one variable template, enterprise edition would have been able to define its primary color at the end but the darker primary would not have been updated. Using the "!default" system and putting enterprise definition above would not have solved the problem as the $o-pink-color would not have been accessible. - web._assets_backend_helpers: regroups the variables, mixins and functions which *can* (and so should) be available in the backend asset bundle only. This is especially (only?) useful for bootstrap variables overriddes. - web._assets_frontend_helpers: regroups the variables, mixins and functions which *can* (and so should) be available in the frontend asset bundle only. This is especially (only?) useful for bootstrap variables overriddes. Note: bootstrap variables are not accessible in any of those anymore. If you have variables that should depend on bootstrap, you have 3 solutions: - Find another way: your variable is probably useless, use bootstrap variables directly or create a variable that will influence the value of bootstrap variables. E.g. instead of declaring: `$myvar: $bootstrapvar * 3` and using $myvar alone, declare: `$myvar: 3` and use `$myvar * $bootstrapvar` where needed. - Declare a copy of the bootstrap variable and use that one. In that case, you should also force-set the real bootstrap one to be sure they match (this should be done in appropriate templates mentioned above). E.g. ``` $o-boostrapvar: 5; ... $boostrapvar: $o-bootstrapvar; ``` - Set your variable to null and set it to your bootstrap expression in the file you will need it (where bootstrap variables are accessible) without forgetting to add the !default flag to allow overriddes. ``` $myvar: null; ... $myvar: $bootstrapvar * 5 !default; ``` This commit also partly changes the variable names to follow the convention: $o-<app_id>-<name> where 'app_id' is the current's app name or a meaningful unique identifier ("theme" for all themes for example, as no multiple themes can be installed).
2018-04-18[REF] *: convert less content to scss contentqsm-odoo
Convert content so that the assets compile on app installation. The style is still broken after this as the variables/mixins/... are not defined in the right order (as it did not matter in LESS but does in SCSS). This commit basically changes: - Variables: @​var_hello -> $var-hello - Mixins: .mixin_world() {} -> @​mixin mixin-world {} - Classes used as mixin: .my_class() -> @​extend .my_class - Here there were no other solution than to convert the use of a mixin call by the use of an extend as a first approximation - LESS functions -> SCSS functions (e.g. fade -> rgba) - Move first variable definition before the variable is used - Still need to make sure last variable definition is at the right place
2018-04-18[REF] *: rename all LESS files to SCSSqsm-odoo
This is a simple renaming without adaptation.
2018-04-06[IMP] project: Place every links on relative position on kanbans cardsValentin Löfberg
Purpose ======== The links on the project kanban cards are not always at the same place : https://drive.google.com/file/d/1aONUYkZerqqD7fSVmgozRScgLKR-QHtA/view ============ Specification ============ I get rid of the flex element to allow the placing of links using width attribute. Create the .o_project_timesheet_box class to assure that the timesheet/overview link is always placed in the middle. I also deleted the needaction_count button to avoid breaking the display. Task: 1817850
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-03-09[MERGE] forward port branch saas-11.2 up to 42659dc70c2Christophe Simonis
2018-03-01[MERGE] forward port branch 11.0 up to c2e878e34c8Christophe Simonis
2018-02-28[FIX] project: kanban needaction link well shownNicolas Lempereur
When something like this is in a html content: ``` <a href="hello"> <div> <b>this</b> <a href="world">!</a> </div> </a> ``` browsers may correct it to: ``` <a href="hello"> </a> <div> <a href="hello"> <b>this</b> </a> <a href="world">!</a> </div> </a> ``` which breaks our CSS. This change transforms the inner tag in a button tag. opw-1817668 closes #23373
2018-02-12[FIX] web,*: tests: remove src attr from img nodesAaron Bohy
In the tests environmnent, we don't want img and iframe nodes to perform RPCs when they are inserted into the DOM. For img nodes, we prefixed the src attribute by '#test: ' as soon as they were inserted into the DOM. Unfortunately, this didn't work as expected: an RPC was done to fetch route '/web/tests?' (i.e. the tests page), because everything after '#' in the url isn't sent to the server. This rev. completely removes the src attribute of img nodes, and set a 'data-src' attribute with the original src attribute's value, so that it can still be checked in the tests. Tests using this attribute have been adapted accordingly.
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
2017-11-17[REF] *: renaming AppSwitcher to HomeMenuAlexandre Kühn
Summary: AppSwitcher => HomeMenu AppSwitcherMenu => HomeStudioMenu Details: application_switcher => home_menu application-switcher => home-menu AppSwitcher => HomeMenu appswitcher => home_menu AppSwitcherMenu => HomeStudioMenu appswitcher_menu => home_studio_menu app_switcher => home_menu app-switcher => home-menu app_switcher_menu => home_studio_menu
2017-10-26[REM] web_planner: Remove the moduleYannick Tivisse
Purpose ======= User tests have been made by the Product Owners team. It showed that the planners are not used by new users on Odoo due to several reasons (They are too static, too heavy to use,...) Specification ============= Remove the module and its different applications. The onboarding on the business flow will be improvement in the weeks to come.
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-13[IMP] project,hr_timesheet,project_issue: clickable zone of project kanban boxJérome Maes
When clicking on kanban box, the first action is trigger; the user have to click on the label of the box to see the 'timesheet' (for instance), otherwise he will see the tasks. Since HTML5 supports `div`, `table`, ... being wrapped by `a` tag, we can use it to make the entire kanban box clickable. (See https://www.w3.org/TR/html5/text-level-semantics.html#the-a-element)
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-08-30[REF] project: change dashboard links' colorstefanorigano
2017-08-28[REF] *: adapt LESS changes and remove dead codeqsm-odoo
* project, sales_team, web