Commit Graph
56 Commits
Author SHA1 Message Date
Darshan Kalola 5604151b6e [FIX] web_planner: fix layout of close button in planner dialog
remove double cross

close #19731
2017-09-28 09:51:38 +02:00
qsm-odoo ed58cee2b9 [REF] web_planner: remove useless constructor redefinition 2017-08-04 12:31:58 +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
stefanorigano 219edc67a2 [IMP] web, web_planner: remove navbar unnecessary borders
Although a dark 'border-bottom' is necessary in some occasions (to add
contrast between the page's content and the navbar itself), the other
borders were totally unnecessary.

Moreover, having a complete border causes complications to calculate the
sidebar height and to manage buttons' size and line-height.

This fix will keep the border-bottom only, removing the other ones.
Compensation rules ("- 2px") are no longer necessary.
2017-07-10 13:37:40 +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
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 25fecd932a [REF] web, *: remove calls to performmodelrpc
The this.performModelRPc method is deprecated, so with this commit, we
remove some 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
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
Kishan Gajjar 167057800b [IMP] web,website: Only display planner for group_system users
Planners should only be visible for "base.group_system" user group (admin settings) because there are links to install apps etc. For now missing access rights messages whenever you click a settings link.Only for admin and not by company.
Admin and the user who has "base.group_system" rights can see the planners.
2016-12-01 16:32:01 +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
Christophe Simonis 3bb022d57c [MERGE] forward port branch saas-12 up to 6f8e40c 2016-10-27 18:17:59 +02:00
Christophe Simonis 25e0b25508 [MERGE] forward port branch 9.0 up to 6690bfb 2016-10-24 12:48:56 +02:00
Jeremy Kersten 62c0a161ef [FIX] web_planner, account: add support for enterprise module + fix link 'Revenue Recognition'
Now, when the module is not found, instead to display a traceback, we open a popup to upgrade to Enterprise.

That will be wrong in case of outdated / wrong link, but in most cases, it is because it is an enterprise module.

This commit closes #13882

TODO: Remove zindex 1051 on planner in master/saas-14
2016-10-19 18:31:37 +02: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
Aaron Bohy 66cb0d7aa3 [IMP] mail,web,web_planner: order of systray items
Sort systray items by sequence to allow, e.g. to force the planner item to
be the left-most item of the systray as it is not displayed in all apps, and
thus produces a flickering of the other items.

Also invert the push order of the two mail items to keep the previous order
as they are now prepended instead of appended.
2016-09-28 16:55:51 +02:00
Aaron Bohy aebc17f22a [FIX] addons: .less compatibility between both web clients 2016-04-21 15:21:40 +02:00
qsm-odoo 5b65befcd8 [REF] web,web_editor,website,report,mass_mailing,mail: LESS
* Convert some CSS to LESS
* Split/Join LESS files
* Remove duplicates between website and web_editor
* UI improvements
* Allow simple customizations thanks to LESS var&mixins for website
2016-02-24 13:09:48 +01:00
Géry Debongnie 6567725ac8 [FIX] web_planner: fix autosize textarea 2016-01-11 14:32:51 +01:00
Simon Lejeune 7d30769980 [FIX] web_planner: cleaner way to handle initial percentage
Instead of using a default value of 5%, we now add a fictive first
step and consider it as done.

this is related to 9a8153ee55

(fp is watching my ugly commits)
2016-01-11 14:27:30 +01:00
Géry Debongnie 0336f109f1 [FIX] web_planner: hidden by default
The web planner should be hidden by default.  Now, it is displayed,
then hidden in js after a while (but it can be seen by the user), then
displayed again if necessary
2016-01-08 15:57:21 +01:00
Simon Lejeune 9a8153ee55 [FIX] web_planner: show the planner when the state is 0% 2016-01-08 15:50:55 +01:00
qsm-odoo bcca4a44c7 [IMP] web(_planner),website: navbars & menus merge
Merge appswitcher navbar and app navbar.
Merge planner menu and user menu.
2015-12-24 17:11:55 +01:00
Martin Trigaux edfa2c4732 [FIX] web_planner: untranslated planner
Missing context in call to render the planner leading to untranslated planner.
Use the session to get the user context as outside of the view manager.

opw 660627
2015-12-23 10:51:21 +01:00
David Monjoie 9c43f79627 [FIX] web_planner: modal body height in IE11
Credits go to qsm for the fix.
2015-12-14 14:20:38 +01:00
Damien Bouvy 0a6edac151 [FIX] web, openerp: make the webclient edition aware
- Differentiate between the Community and Enterprise editions
in the version number. By adding this attribute on the global
odoo JS object in the web client bootstrap controller /web,
we can differentiate between versions easily on the client
side without extra RPC calls.

- Remove a couple of version-related RPC calls in case
the global version info is present in the JS environment

- Update "About" panel to display the edition info

- This commit also reverts 07fe5afc87
which implemented the idea in a more limited way.

Closes #9625
2015-11-25 18:12:42 +01:00
Nicolas Lempereur dc69248e29 [FIX] web_planner: hide background pn planner destroy
A PlannerDialog does not extend Dialog for historical and graphical
reasons. Thus sometime a logic in Dialog is missed in a PlannerDialog
whilst it is useful.

In this instance, when doing an action from the planner which destroyed
it, the modal backdrop was not removed by bootstrap. Bootstrap does this
when the modal 'hide' function is called.

opw-653734
2015-11-04 16:19:10 +01:00
Martin Geubelle 703b384a1e [FIX] web_planner: correct link in help 2015-10-08 10:57:22 +02:00
Martin Geubelle 5946623d3f [FIX] website, web_planner: shared help comportement in frontend/backend
Help has been moved to web_planner, but only in backend. The comportement needs to be defined in website also so it is now shared in frontend and backend (mixin in common)
2015-09-28 15:42:44 +02:00
Martin Geubelle 1b3939a8b1 [IMP] web, web_planner: add wow effect on button
* As the animations were already defined in web_planner, they are now moved in web (animations.less)
2015-09-24 15:14:12 +02:00
Martin Geubelle e89d528788 [IMP] web, web_planner: move 'Help' in systray
* 'Help' has now its own dropdown, directly accessible in the systray, instead of being hidden in the Administrator dropdown
* 'About' has been moved there also
* We can access the planner through this dropdown, even if the planner is hidden (complete)
2015-09-24 11:25:43 +02:00
Simon Lejeune a693a60082 [FIX] planner: correct tooltip text changes
and only init the tooltip once
2015-09-15 18:09:18 +02:00
Simon Lejeune 4c3264122f [REF] planners: increased font-size on the first page 2015-09-14 22:18:10 +02:00
Simon Lejeune 7a421f2191 [FIX] planners: next step as btn-primary when hide_mark_as_done is set 2015-09-14 22:06:23 +02:00
Martin Geubelle b3d8057512 [IMP] crm, stock: planner content 2015-09-14 10:49:00 +02:00
Simon Lejeune 598475c3f2 [FIX] crm, project: planner layout issues 2015-09-08 17:57:43 +02:00
Simon Lejeune ef3d0d87bc [FIX] web_planner: tooltip on progress bar 2015-09-07 13:36:12 +02:00
Aaron Bohy 7d1590ef33 [FIX] web_planner: detach on close 2015-09-07 12:15:44 +02:00
Simon Lejeune 9f985c98ea [FIX] web_planner: don't crash when restoring on a deleted page 2015-09-07 11:37:06 +02:00
Fabien Pinckaers a093114065 [IMP] removing fp photo 2015-09-05 18:07:58 +02:00
Darshan Kalola 7f024fe5ef [IMP]planner: some correction according to new features added in master. 2015-09-01 15:46:22 +02:00
Simon Lejeune 623b7cc051 [REF] web_planner: style changes
Also correctly left align the menu when there is a multi line item and
vertical-align all the elements of the header so that it does not look
broken when there is a multi line title.
2015-08-28 00:32:24 +02:00
Simon Lejeune 5c374313f6 [REF] planner: back again in a modal
fp's request
2015-08-26 14:53:00 +02:00
Simon Lejeune ad66daa6a9 [REF] planner: responsive width
fp's request
2015-08-18 17:57:39 +02:00
Simon Lejeune f97b44580b [REF] planner: sidebar menu
fp's request
2015-08-18 17:57:38 +02:00
Simon Lejeune 295423af78 [FIX] planner: don't apply fa-* on a button tag
It doesn't make sense and it obviously applies a different font
to the text of the button.
2015-08-18 17:57:38 +02:00
Simon Lejeune 7c0d5f16e0 [REF] planner: no title on the top bar
lle's request
2015-08-18 17:57:38 +02:00
Simon Lejeune 22fe0f5d0e [REF] web_planner: adapt style to webclients and website
With selectors here and there to make it work with the community
webclient, the enterprise webclient and the website without duplicating
the module.
2015-07-23 14:02:41 +02:00
Simon Lejeune 5666cd3643 [REF] web_planner: javascript & dom cleaning
* Correct inheritance of async method
* Correct calls to do_hide/show
* Fetch the template in `willStart`
* Correct bootstrap structure for the layout, remove useless branding
  and dom depth
* Each planner page is now in its own bootstrap grid
* Compatibility between both webclients
2015-07-23 14:02:40 +02:00
Joren Van Onder b2eafca067 [REF] web_planner: refactor to make less brittle and reliant on layout
This introduces a new way to define web_planners. They now take the
following form:

<template id="project_planner">
    <t t-call="web_planner.pages">
    <t t-call="web_planner.category">
        <t t-set="menu_categorytitle" t-value="'Prepare'"/>
        <t t-set="menu_categoryclasses" t-value="'fa-flag-checkered'"/>
        <t t-call="web_planner.page">
            <t t-set="page_title" t-value="'Welcome'"/>
            <t t-set="hide_mark_as_done" t-value="True"/>
            <t t-set="hide_from_menu" t-value="True"/>
            <!-- content here -->
        </t>
    </t>
</template>

The menu is not manually created anymore, it is automatically generated.

Pages do not have to be part of a category and can just be defined as
children of web_planner.pages. A page can have hide_mark_as_done and
hide_from_menu, these are optional and will both default to False when
omitted.
2015-07-23 13:56:07 +02:00