summaryrefslogtreecommitdiff
path: root/odoo/addons/base/static/src/js
AgeCommit message (Collapse)Author
2019-03-13[MERGE] forward port branch saas-12.2 up to c9f832d9f03Christophe Simonis
closes odoo/odoo#31790 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-03-06[REF] base: promisify 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-03-06[REV] base: revert "Hide Save/Discard on Settings until there are modifications"Thibault Delavallée
Why reverting ? The fact that the control panel changes width on first edit is confusing to the user. The whole form shifts down. We want to avoid having elements appearing and disappearing. The issue that the user does not know if he has to save is still up to date, and will be addressed in the next saas. We will most likely use what has been done in this task to only display 'There are unsaved changes'. Thank you all for your work here! Original task and revert discussion can be found on task ID 1917637 . This reverts commit 514d6fb90d40d33a309955652b2f768575b072e1. closes odoo/odoo#31622 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-02-04[IMP] base: Hide Save/Discard on Settings until there are modificationsParth Choksi
Purpose ======= It only makes sense to display 'Save' and 'Discard' if the user actually changed something in the settings. So after this commit, the 'Save' and 'Discard' buttons of statusbar in general settings will only appear when you make any changes. Also when there are changes, there will be a message shown that will tell the user that he/she has unsaved changes. The commit is related to Task ID: 1917637 Co-authored-by: Mohammed Shekha <msh@openerp.com> closes odoo/odoo#29726
2018-12-05[REV][IMP] base: Improve search and ordering in settingsThibault Delavallée
This reverts commit 01173f374581845651495e28ecb2ea04dd83b5f3. This commit added improvements in search and ordering of settings. However due to DOM manipulation some events are not bound correctly. Notably saving settings could be broken if several different tabs are modified before saving. After checking more in-depth settings code it appears it will be difficult to ensure a proper re-rendering and re-ordering of settings without having to modify deeply the code. This is therefore more a task for JS framework team. closes odoo/odoo#29285
2018-12-04[IMP] base: Improve search and ordering in settingsqmo-odoo
Allows users to not only search on settings name but on their description too. Improves search results relevance : Instead of the actual fixed order, top results should be about the module selected in the left panel Task : #1893252 closes : #28094
2018-11-14[FIX] web: restore formview mode when coming back (breadcrumbs)Géry Debongnie
Before this commit, when the user is in a form view (edit mode) and click on a stat button, a new action is added to the action stack. When the user then comes back to the form view by clicking on the breadcrumb, it is supposed to be in readonly mode. Before this commit, this was not the case. This bug comes from the action manager refactoring, which removed the view manager. With this commit, we add a new action lifecycle method which is called when the action is restored. Note that this commit implicitely changes the semantic of actions with 'target=inline'. As far as I can tell, this only applies to the settings form view, which can easily be fixed by overriding the restore hook. closes odoo/odoo#28663
2018-10-10[FIX] web: do not warn on empty fieldMartin Trigaux
If no value is specified on the datefield, do not set a warnfuture message Remove code comment that was referring the condition present at b51b0d66c2f7 but no longer present. Add tests Fixes #27551 closes odoo/odoo#27593
2018-10-10[FIX] base: res_config_settings allow deferred fieldNicolas Lempereur
If a deferred field, for example with auth_user_policy installed: <field name="f" password="True" widget="password_meter"/> is inside the res_config_settings view, the rendering will be deferred which is not taken into account when initializing the content (_initModules) or attaching to DOM (after start). Thus we would would get an error and have no access to settings. The issue that happened in 12.0 was solved with 23bec7fb7 and refactored in between in 5bbbd25ed, but the heart of the issue was not solved in the case of a customization. With this commit, we do not lose the deferred when it is necessary to keep them in the case of deferred while rendering. Without fix, the added test fails with a traceback and message: TypeError: Cannot read property 'settingView' of undefined opw-1890343 closes #27589
2018-09-07[IMP] base: properly focus search input in settingsMahendra Barad
Before this commit, the search input was focused everytime the settings view was rendered after a timeout of 0. This is not considered as correct. It is fragile as asynchronous code could break in many situations. This commit fixes that behavior by using a hook 'on_attach_callback' which is called when the widget is put in the DOM. This commit is linked to task ID 47221 and PR #26483.
2018-06-28[FIX] base: properly render settings form view after reloadGéry Debongnie
Before this commit, something strange could happen after reloading a settings form view: all 'sections' were displayed. The issue was caused by the fact that the state of the view was read from the arch of the form view at render time. Also, as a form of optimization (I suppose), the settings did not call the initModules method twice, when it rerenders. This is unfortunate, because the very same method is actually responsible for removing unused sections. This fix is the safe fix, but definitely not the perfect fix (this would involve a larger change, something like reading the state from the arch once in the view (factory), then only rendering what is necessary).
2018-04-24[MERGE] forward port branch saas-11.2 up to 7fd9dbdd9f8Christophe Simonis
2018-04-24[FIX] base: do not read settings record againGéry Debongnie
The settings view is supposed to open a new record on the model res.config.settings, perform the default_get and onchange calls, then display the result. However, once this is done, if the user then clicked on some links (which do save the current record and navigate to another action), then click on the breadcrumbs to come back to the settings view, then the settings view will reload the current record, which has an id, and this also will update the url. This could be a problem. For example, in a multicompany settings, reloading a settings view from an id will reload the settings for a given company, even if the user changed its current company. To fix this issue, we make sure the basic model for the settings view 'forgets' the res_id key, so it will be compelled to actually reread a new settings form record.
2018-03-23[MERGE] forward port branch saas-11.2 up to 8a7b8453531Christophe Simonis
2018-03-22[FIX] base: settings view match on label.textJeremy Kersten
Before this commit, search was broken because containsLike was searching on the innerHtml. (3dd93ed129) Settings use _wordHighlighter to change the background of the matching text into the label, so the label was not only text, but html. <label><span class="highlighter">Mul</span>ti-company</label> : looking for (mul) After this commit, the match is based on the text content and not on the html.
2018-03-15[IMP] base,web: settings view: enable swipe on mobileDeep Patel
Task 38926
2018-03-15[REF] base,web: move and rename settings tests fileAaron Bohy
and remove some unnecessary code
2018-03-15[FIX] base: settings view: don't patch jQueryAaron Bohy
especially to alter the behavior of a standard function to make it behave like a function that is already available (defined in our extension of jQuery).
2018-03-15[FIX] base: settings view: don't patch jQueryAaron Bohy
especially to alter the behavior of a standard function to make it behave like a function that is already available (defined in our extension of jQuery).
2017-11-16[FIX] base_setup,etcie: translate left setting menuNicolas Lempereur
In left menu used for switching between "apps" particular menu, the apps names were not translated. This commit use the "string" attribute which is translated instead of "data-string" fallbacking on data-string (so things still work without updating the module). opw-781728 closes #20972
2017-10-20[FIX] base: prevent enterprise label to lose style on searchrde
Before this commit, when you were entering search mode en settings view, enterprise label would lose its style. (even when leaving search mode by removing search text) Now, the style remains.
2017-09-29[FIX] account,sale: Don't show sale/invoicing settings if only ecommerce ↵Sanjay Jamod
installed
2017-09-29[FIX] web, mail, base: config's `isMobile` definitionqsm-odoo
The `isMobile` variable was defined at the right place (`config.device`) but was set at the wrong place (`config`). Thank you for making me author of all the `isMobile` lines by the way... :)
2017-09-29[FIX] res_config: Don't lose left panel when clicking on links or actionsDeep Patel
1/ Lint 2/ Follow new .js guidelines (mainly re-sequence function alphabetically) 3/ Introduce BaseSetting.SearchHeader template for search header instead of replicating html code 4/ Add some comments in code 5/ When we close a modal or come back using breadcrumb, left panel is lost and all the settings are displayed. This commit fix the issue 6/ Remove the fact that the current app is in top of the app list 7/ Improve search
2017-09-01[IMP] web,account,...: Regroup settings, add a nav and search barDeep Patel
Purpose ======= Settings are often way too long and hard to scan and sometimes you don't know where to find the settings you're looking for. By adding a left navigation, you can already have an overview of the settings, and switch easily between them. Specification ============= - Add a search bar on all the apps that have settings which can search results from all the installed apps. (If i'm on sales settings,and I search anything then it shows results from sales settings and also shows all the other matching results from all the other apps such as, Inventory...etc) with app name. - Able to activate feature from the current page results (no matter if the searched result is from another apps). - Highlight searched word in results - Delete the sheet, have a full white background - Add left navigation bar on setting - Left navigation bar fixed - List displayed based on installed apps - On right panel, by default display current app setting and change accordingly - [Mobile] Left navigation bar displayed on top - Add Breadcrumb on top of the page: have the name "Settings" + Save / discard CTA + Search - Add General Settings on the nav bar - remove "save this page..." notif in all settings - Delete all recommanded apps section + all checkbox that install app should disappear: payroll: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrSkMzWVpuZ0ZoaFE/view?usp=drivesdk Events: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrYXlHMHd2NTM2blE/view?usp=drivesdk Manufacturing: Delete Repair - Quality Control - Maintenance - Product Lifecycle Management [LAP][ok] Timesheets: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrdFg5XzNydkd2TlU/view?usp=drivesdk project: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrraWo3NE04TktwcTQ/view?usp=drivesdk inventory: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrQkRaVUR5ekFQYTQ/view?usp=drivesdk recruitment: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrbDdqLWQweF80UkE/view?usp=drivesdk purchase: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrRlAyUDBnb0trQWs/view?usp=drivesdk email marketing: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrOUZONjhvX2k3Y2s/view?usp=drivesdk expenses: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrR0JpN1ZpQmtxU3M/view?usp=drivesdk attendances: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrralpjZ1VJclNpMWs/view?usp=drivesdk - About duplicate settings: Docsaway: Delete from Sales + delete Default Print Provider Attributs & Variants: Delete from Purchases - Manufacturing Multi-currencies: delete from Sales Unit Of Measures: Delete from Purchase & Expenses - Add a scroll bar on the left bar when there's too many apps - Keep the navbar visible even when you search - Move General Settings to the bottom of the list - Update on Settings: - Accounting: - rename automatic rates - Anglo Saxon Account: Should be in technical feature - Place Accounting Reports section before Taxes section - CRM: - Phone Validation: Enforce international format becomes - Local Numbers: (2 radio buttons proposals) Add international prefix / No prefix - Fleet: typo " ... a new car if ..." + text is too long <br> - project: fix tooltip for colab pads