summaryrefslogtreecommitdiff
path: root/addons/web_planner/static/src/js/web_planner_common.js
AgeCommit message (Collapse)Author
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-08-04[REF] web_planner: remove useless constructor redefinitionqsm-odoo
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-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] *: 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 calls to performmodelrpcGéry Debongnie
The this.performModelRPc method is deprecated, so with this commit, we remove some 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[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-11-15[REF] web_planner, *: refactor planner codeqsm-odoo
* 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-10-19[FIX] web_planner, account: add support for enterprise module + fix link ↵Jeremy Kersten
'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-01-11[FIX] web_planner: fix autosize textareaGéry Debongnie
2016-01-11[FIX] web_planner: cleaner way to handle initial percentageSimon Lejeune
Instead of using a default value of 5%, we now add a fictive first step and consider it as done. this is related to 9a8153ee553f3585b41845217c85df6d061dd418 (fp is watching my ugly commits)
2016-01-08[FIX] web_planner: show the planner when the state is 0%Simon Lejeune
2015-12-24[IMP] web(_planner),website: navbars & menus mergeqsm-odoo
Merge appswitcher navbar and app navbar. Merge planner menu and user menu.
2015-12-23[FIX] web_planner: untranslated plannerMartin Trigaux
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-11-25[FIX] web, openerp: make the webclient edition awareDamien Bouvy
- 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 07fe5afc874b9527eac5408d9adc53a9a700aad3 which implemented the idea in a more limited way. Closes #9625
2015-11-04[FIX] web_planner: hide background pn planner destroyNicolas Lempereur
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-10-08[FIX] web_planner: correct link in helpMartin Geubelle
2015-09-28[FIX] website, web_planner: shared help comportement in frontend/backendMartin Geubelle
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-14[FIX] planners: next step as btn-primary when hide_mark_as_done is setSimon Lejeune
2015-09-07[FIX] web_planner: detach on closeAaron Bohy
2015-09-07[FIX] web_planner: don't crash when restoring on a deleted pageSimon Lejeune
2015-08-26[REF] planner: back again in a modalSimon Lejeune
fp's request
2015-08-18[REF] planner: sidebar menuSimon Lejeune
fp's request
2015-08-18[FIX] planner: don't apply fa-* on a button tagSimon Lejeune
It doesn't make sense and it obviously applies a different font to the text of the button.
2015-07-23[REF] web_planner: adapt style to webclients and websiteSimon Lejeune
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[REF] web_planner: javascript & dom cleaningSimon Lejeune
* 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[REF] web_planner: refactor to make less brittle and reliant on layoutJoren Van Onder
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-05-15[IMP] website, website_sale, crm, web_planner : add planner for website modulesDarshan Kalola
This commit impact crm, website, website_sale and web_planner modules because it - add planner for website and website_sale - improve planner notebook by setting texterea and input size to 100% and using col-md-* class - split js code into common part (used in backend and frontend) and backend part (only for backend) - adapt some tour, since every page will have the planner modal in its DOM, the tour selectors msut be more accurate - introduce some style fixes and adaptations - ...