Commit Graph
243 Commits
Author SHA1 Message Date
Jérome Maes 063987c989 [IMP] project,hr_timesheet,project_issue: clickable zone of project kanban box
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-13 08:41:31 +02:00
Kirti Choudhary 36a2bfb9cf [IMP] *: add and improve kanban views for mobile
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-09-05 13:21:58 +02:00
stefanorigano 7452139552 [REF] project: change dashboard links' color 2017-08-30 16:55:10 +02:00
qsm-odoo fdb38afacf [REF] *: adapt LESS changes and remove dead code
* project, sales_team, web
2017-08-28 12:53:17 +02:00
stefanorigano 3ee2ab71ec [REF] project: set new project dashboard layout and design 2017-08-28 12:53:17 +02:00
stefanorigano e710a858b6 [REF] project: set new kanban layout for project kanban
New kanban design is basically new LESS to override the old one. In the
next version, we will work on a better and uniform layout (which will
allow better LESS). Here, we already set a better layout for project,
as an example.
2017-08-28 12:53:17 +02:00
Jigar Patel 2adc9d5032 [IMP] account: Add a new boolean_favorite widget
Purpose
=======

Projects and soon sales teams have a manual "favorite" button that calls a toggle_favorite method
It should actually be a widget on a boolean field

Specifications
==============

Develop a favorite widget for kanban view that allows to toggle a boolean field
Probably update boolean field to allow inverse method on it

Functionally nothing changed.
2017-08-09 15:11:53 +02:00
qsm-odoo 5f1ef0910b [IMP] web, *: lazy load dialog xml template
* 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-07-24 14:28:35 +02:00
Harshad Modi 922a04dbd2 [FIX] project: fix traceback while setting cover image
from project task kanban view (PR #17165)
2017-06-07 10:15:04 +02:00
qsm-odoo 250e716c3a [REF] web, *: restore views design
Since the new views merge, a lot of design elements were broken. This
was particularly impacting the fields in the editable list view; indeed
the editable list view is not using an inline form view anymore so the
fields in the list were not properly styled as the LESS was still
defined assuming the form view environment (for example the invalid
fields were red for o2m fields in form view but not in editable list
view even though they got the right CSS class).

This commit refactor the LESS following these rules:
- No more division of non-layout and layout rules. Dividing LESS rules
  in x_layout.less and x.less was a mistake. Many rules can be
  considered to be layout and not layout at the same time, developers
  always have to switch from one file part to the other, many CSS
  selectors (and rules!) are duplicated for nothing, ...
- Field style is extracted from x_view.less and put in the new
  fields.less file. As before, the fields_extra.less will contain the
  rules specific to community so that the enterprise repo can override
  those by replacing the whole file.
- Many classes have been renamed so that o_form_x_y becomes o_x_y as
  many classes can now be applied outside of form view. These classes
  should not be used in templates anyway.

The commit also changes the DOM of fields so that it is more minimalist
(no useless parent div, etc).

Input elements are not automatically styled anymore, they have to get
the o_input class explicitely. This allows to fix lots of small style
bugs of previous versions (required monetary field had not the proper
style, readonly m2m tags appeared as editable, ...). This also improves
the LESS code.

The editable list view should also completely stop flickering on chrome
and firefox.

The commit also removes the orange outline on list view dirty cells.

The commit also removes deprecated static xml, LESS and other code.

Notice there are still styles to restore/fix and LESS to improve.
2017-05-04 12:07:30 +02:00
Géry Debongnie 2106e3dd2e [REF] web, *: simplify our RPC system (in JS)
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 19:44:38 +02:00
Aaron Bohy fc08507fdb [REF] web,*: convert Kanban widgets to new style
The remaining widgets were KanbanRecord and the two quick create
widgets. Now, all kanban files have been converted and refactored.
2017-04-11 19:44:38 +02:00
Géry Debongnie 86a87aa8b0 [REF] *: use _rpc method for all rpcs
The _rpc method is now the preferred method to do a rpc, so we need to
update all calls.
2017-04-11 19:44:38 +02:00
Géry Debongnie e574027056 [REF] web,*: remove 'web.model' and 'web.dataModel
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 19:44:38 +02:00
qsm-odoo b34279c89a [IMP] web, *: let kanban column and record know about modelName
* 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 19:44:38 +02:00
Géry Debongnie 905e01921f [REF] web, *: redesign all JS views
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
2017-04-11 19:44:38 +02:00
Jigar Patel 91b07d5092 [IMP] web_kanban,*: Change the More Call To Action by a 3dots icon to improve readability 2017-03-16 11:40:30 +01:00
Christophe Simonis 2d26229052 [MERGE] forward port branch 10.0 up to ea675d8 2016-11-18 18:29:23 +01:00
Christophe Simonis f05e8655ee [FIX] project: correct tour (bis)
Automatic tour should not open the kanban record directly in edit mode.
This "edit" link wasn't working and has been fixed by 2e0a300016.
2016-11-17 19:27:28 +01:00
Christophe Simonis 639421e8a5 [MERGE] forward port branch 10.0 up to fb77309 2016-11-17 18:13:45 +01:00
Christophe Simonis fb773091d8 [FIX] project: Correct tour
Remove useless step as we are already in edit mode after clicking on
edit action link
2016-11-17 17:50:06 +01:00
qsm-odoo 669336baa9 [REF] web_planner, *: refactor planner code
* Share code between website and backend
* Do not do a [100ms - 500ms] RPC on each app change in the backend
but do it only if the planner is asked to be opened
* Use the Dialog class so that the planner is not broken
* Simplify/optimize code, use standard conventions, lint files, ...
2016-11-15 13:08:59 +01:00
Géry Debongnie 78d9f612fd [FIX] project: increase clickable zone in dashboard
In the kanban project dashboard, the records are displayed with a column
of small 'boxes' on the right.  Those boxes seems clickable and lead to
other actions, such as issues, forecast, timesheet, ...  However, the
actual clickable zone is the tag 'a' inside those boxes.  This leads to
confused users (myself included).

With this commit, the size of the link is increased to the full width of
the box. This is not the perfect fix, since the height is not
necessarily exactly the same as the surrounding box, but it is
significantly easier to click on it in some cases.
2016-11-04 11:45:43 +01:00
qsm-odoo fb363b572b [FIX] *: adapt odoo interface violet
Change color #a24689 to #875A7B

Commit https://github.com/odoo/enterprise/commit/8ac1c19fac7615fecd51e670f798d13158a4e53c
changed the odoo interface violet by changing the main LESS variable
but forgot there was many direct occurences in XML/HTML/... (for
example for the mobile browser color).

Even if it's community the odoo interface violet is used at many places
(module description, XML demo data, ...).
2016-10-05 10:29:00 +02:00
Thibault Delavallée d4ee7971e2 [IMP] project: improve user tour
* Correct some language
 * Add extra steps to redirect to the implementation planner after having
  finished the tour
2016-09-29 14:25:50 +02:00
Martin Trigaux 11812b0b9e [FIX] all: remove external ids fakely from base
Several modules defines records with the external ID `base.foo_bar` while it is
created inside this module (typically menus and groups).
While there is no technical reasons to do so but this may introduce issues:

- these records will not be deleted during uninstall
- if a language is loaded before the installation of the module, it won't be
  translated

The uninstallation will only remove the records with an external id linked to
this module (these would only be removed when removing base).

Installing a language before the module will drop the translations not linked
to an existing external id (as it can not be resolved).

This commit correct all the external ids tagged as from base or other incorrect
modules.
2016-09-02 16:14:26 +02:00
Yannick Tivisse ed0c151222 [IMP] project: Display the favorite icon front of the project card 2016-09-02 08:46:33 +02:00
Christophe Matthieu 5c2274e169 [IMP] crm, project: do not assume number of records in column during tour 2016-08-26 09:30:38 +02:00
Nicolas Lempereur ae34fd50c8 Revert "[IMP] project: tour mini improvement"
This reverts commit 45a13cac80.

The commit failed the tour test since there is invisible
".o_kanban_ghost" cards after the last. Since the created new
project is already sorted in the right location, we don't know
if it will be the first or the last.

But if it is the first, we know we will see the help tip.
2016-08-12 08:38:45 +02:00
Fabien Pinckaers 5ee5e427b7 [FIX] project: typo is setup --> is set up 2016-08-11 18:23:34 -07:00
Fabien Pinckaers 45a13cac80 [IMP] project: tour mini improvement 2016-08-11 18:20:50 -07:00
Fabien Pinckaers 52a0cdacce [IMP] typo: collegues --> coworkers (colleagues would have been good but coworkers is more american) 2016-08-11 18:03:24 -07:00
qsm-odoo eaf8e82efb [IMP] *: activate automatic tour tests
* project, crm, point_of_sale, website, website_sale, website_blog,
website_event, website_forum
2016-07-18 14:22:29 +02:00
Aaron Bohy fd9d9ce171 [FIX] crm, project, sale: make tours work in community
The step consisting to go back to the app switcher doesn't work in community,
obviously, so this commit make it active in enterprise only.

Also make the Settings app selector more robust by accessing it through its
xmlid, as we do for other apps and menus.
2016-07-05 12:42:49 +02:00
Aaron Bohy 5a619d25ef [IMP] *: web_tour: remove 'Skip tour' link in tips 2016-07-05 12:42:49 +02:00
Fabien Pinckaers 7aa835ae11 [NEW] hr_expense: new tour
[NEW] point_of_sale: new tour
[IMP] hr_expense: main employee is created by default, so that you can
use the email gateway and record expenses, without configuration
required
[IMP] all tours: applying JWR propositions: americanization of tips
[IMP] crm tour: add invite people steps

Merge branch 'master-expense-tip-fp'
2016-06-29 22:00:44 -07:00
Fabien Pinckaers 8c65bb7311 [IMP] project: tour improvements 2016-06-29 21:58:36 -07:00
Fabien Pinckaers 0ea1db4d34 [FIX] project: tour: misc fixes: missing extra_trigger, clean selectors,
missing _t(), adding a step to edit before asking to change a field.
2016-06-29 21:50:29 -07:00
Fabien Pinckaers 724eb557d1 [IMP] partial revert of 3106d5a3f2
Usability: remove the Settings tour and include the addition of users
back at the end of others tour. The reasons:
- When someone starts with Project, we don't want to invite him going on
  the settings tour (Don't make me think/choose)
- If the user starts with Settings (e.g. out of curisity), he will not
  have a great on boarding experience.
- We expect the user to follow the steps in this order 1/ discover
  project tasks and, only after, 2/ invite users (he will probably not
  invite users before discovering the application)

The drawback is that we have to add "Invite Users" steps on others tour,
but only those for which it has a sense:
- Website, Accounting, eCommerce are typically single-users apps (we
  don't need to make him invite people)
- CRM, Project are multi-users apps
2016-06-29 21:23:42 -07:00
Fabien Pinckaers 33ce526aa2 [IMP] tours 2016-06-29 21:14:00 -07:00
Yannick Tivisse 51a8bc1a60 [IMP] sale_crm,project: usability improvement from user tests 2016-06-29 16:40:59 +02:00
Yannick Tivisse 3106d5a3f2 [IMP] web_settings_dashboard,web_tour: usability improvement from user tests
1/ The tip should be on the textarea, not on the button.

2/ The access right field on the quick user creation form is confusing.
   I propose to put it in "Technical Feature" so that it's not visible for normal users.

3/ dissociate les settings tour from project tour
2016-06-29 12:02:19 +02:00
Fabien Pinckaers 62d6f52312 [IMP] project: tour: improved sentence 2016-06-27 11:24:59 -07:00
Fabien Pinckaers df3631ee3a [IMP] project: tour: add a Done stage to be able to close tasks. 2016-06-27 10:25:24 -07:00
Fabien Pinckaers bb7f933818 [IMP] project: tour americanization of copywriting by jwr 2016-06-22 14:27:59 -07:00
Yannick Tivisse 24d8fe0aef [IMP] project: Add 3 steps in web_tour 2016-06-22 16:04:06 +02:00
Fabien Pinckaers ad0bc9adf2 [ADD] project: onboarding tour
Also:
 - creation of a (archived by default) sample project with tasks, that the
   user can activate to discover the project app.
 - improvement of the simplified form view to create a new project
2016-06-16 14:59:41 +02:00
Adrien Dieudonne ff4cffd5a3 [IMP] project: usability improvements
Simplified form view to create new projects
Always use quick create to create tasks
Remove chatter from project form view
Display the 'more' link in project dashboard in gray
2016-06-16 14:59:39 +02:00
Foram Shah 684cd54945 updated the description of 'project' 2016-05-10 15:24:47 +02:00
Dhaval Panchal dc7aca3ca6 [IMP] project: favorite
A favorite system is introduced in project model. It uses a many2many between
users and projects. This allow users to favorite a project and see them by
default in their project dashboard.

The new default fitler when seeing projects is now favorited projects.
2016-03-04 15:00:54 +01:00