summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
AgeCommit message (Collapse)Author
2017-10-20[MERGE] forward port branch saas-16 up to dc2a6c6cd2aChristophe Simonis
2017-10-20[FIX] web: correctly render the field imageMartin Geubelle
Before this commit, the image was directly built without using the corresponding template, which set some properties on the image (class, width, etc.).
2017-10-18[FIX] document: display create_date of attachment timezone aware (#20242)Lucas Perais
Before this commit, when putting the mouse over an attachment in the attachment drop menu list, the date time displayed was UTC only. After this commit, we convert that value to the correct timezone datetime. OPW 776704
2017-10-13[MERGE] forward port branch saas-16 up to 8ee9024a4c8Christophe Simonis
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-28[FIX] web: review UI tag color systemqsm-odoo
- Kanban colors and tag colors are now the same - Tag color 0 (default) is now back to be the invisible kanban one - Same colorpicker for kanban and tags - Define correct number of colors (12 not 13) - Color 0 should be a neutral one (gray) - ...
2017-09-25[REF] web: preliminary work for the mobile Burger MenuAaron Bohy
2017-09-15[IMP] web: reference field: add 'hide_model' optionYannick Tivisse
It allows to see only records from a given model without allowing to change the model. It gives a better experience to users that choose records using a reference field when the model comes from some other choice and should not be changed.
2017-09-14[IMP] im_livechat: add copy to clipboard for the website live chat widget codeMitali Patel
This commit adds 2 buttons to copy directly the code needed to add the livechat in the website.
2017-09-06[REF] web: review form view layoutqsm-odoo
The goal of this review is to have a layout which is correct to implement the enterprise side-chatter. This also removes/fixes deprecated community rules and xml templates.
2017-09-05[REF] web, mail: change minors top-menu designstefanorigano
- Remove carets - Fix badges position - Vertical align user avatar - If a dropdown is open, the menu-toggle should appear active - Dropdown menus' widths should be at least as the dropdown-toggle
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
2017-08-24[MERGE] forward port branch saas-17 up to 877e7098719Christophe Simonis
2017-08-23[MERGE] forward port branch saas-16 up to aec6248bb37Christophe Simonis
2017-08-23[FIX] web: reimplement conditions in the "Set Default" dialogMartin Geubelle
The rev. https://github.com/odoo/odoo/commit/49f0413290821cb123e75b4546873cf98edf1d25 reintroduced the "Set Default" dialog but forgot the conditions part. This rev. reintroduces the missing part.
2017-07-26[MERGE] forward port branch saas-17 up to 3d4238f71e4Christophe Simonis
2017-07-24[FIX] web: frontend does not need X.tooltip templatesqsm-odoo
WidgetLabel.tooltip and WidgetButton.tooltip are backend static xml templates. They should never have been in base_common.xml.
2017-07-13[FIX] web: move 'SwitchCompanyMenu' xml in the right fileqsm-odoo
Since commit https://github.com/odoo/odoo/commit/09659cca30a98dd9a522c53918e389e0d8f667eb: The switch company menu feature has been introduced, which is a backend one. The associated static XML was placed in the common xml file by mistake.
2017-07-11[FIX] web,odoo: Remove remaining workflow related codeMehul Patel
2017-07-07[MERGE] forward port branch saas-16 up to 0f2b2c4e2b9Christophe Simonis
2017-07-07[FIX] web: explicit color attribute for m2m_tagsMartin Geubelle
Before this fix, the field 'color' was hardcoded in the m2m_tags widget, which means that: - one couldn't specify another field (problem for custom models, with x_...) - if the related model didn't have the field 'color', a warning was raised by the server Now, the color attribute needs to be specified on the widget options if one wants to display colored tags. If the color is not specified, the tags will be displayed in grey.
2017-06-29[FIX] web: handle 'domain' key returned by onchangesAaron Bohy
Onchange RPCs return an object that may contain a 'domain' key. When it does, its value is an object whose keys are field names and values are the new domain for the corresponding field. Before this rev., the 'domain' key was totally ignored by the BasicModel. This feature is used for example in the account.payment form view (go to an open invoice, click on 'Register payment'): the domain of field payment_method_id is updated by the onchanges (e.g. when changing the journal_id). As the domain was ignored, it always displayed all possible payment methods.
2017-06-28[FIX] web: deal with reference fieldsMartin Geubelle
The reference fields haven't been correctly implemented with the new views. This commit restores their behaviour. Note that an small improvement has been introduced in this commit. Before saas-16, a `name_get` was done for each record (so 80 if the field was displayed in a full list view), which is not optimal. The calls are now batched by model (so one `name_get` by model appearing in the field values).
2017-06-27[MERGE] forward port branch saas-16 up to 278e478d552Christophe Simonis
2017-06-20[IMP] base_automation: Improve field labels naming in automated actionPrakash Prajapati
Purpose ======= Some field labels are not very explicit Specification ============= - Rename "Base Model" into "Model" - Change "Trigger condition" (Condition Frist char(C) uppercase) - Rename Domain into Apply on
2017-06-19[FIX] web: use 'o_input' class on search view elementsqsm-odoo
Since the new views, the 'o_input' class has to be set explicitely on <input/> and <select/> elements to have the proper styling.
2017-06-09[MERGE] forward port branch saas-16 up to cc38b93ab2aChristophe Simonis
2017-06-09[MERGE] forward port branch saas-15 up to 49f819a7a79Christophe Simonis
2017-06-09[MERGE] forward port branch saas-14 up to b6c7d718995Christophe Simonis
2017-06-09[MERGE] forward port branch 10.0 up to cd1a8f62527Christophe Simonis
2017-06-08[FIX] web: CrashManager can crash if trying to show an empty messagexmo-odoo
If `d.message` is an empty string, `!!d.message` is false and the crashmanager will try to display `d.error.data.message`… which does not exist as it's a warning with an empty message not an upstream error. That causes the crashmanager itself to crash, and even the warning name/title to be lost.
2017-06-07[FIX] project: fix traceback while setting cover imageHarshad Modi
from project task kanban view (PR #17165)
2017-06-01[MERGE] Forward-port saas-16 up to ba15df47cb25625cb0921cba554aa0879048c90aOlivier Dony
2017-05-29[FIX] web: Properly label buttons which change views, with aria-labelLuis González
Closes #16576 Description of the issue/feature this PR addresses: According to HTML good practices, when an element is used but there's no text displayed on the screen, the attribute aria-label should be used to label that element. This is the case in the buttons to change view types (List, Kanban, etc) since there's no text displayed, but an icon instead. This HTML attribute is specially useful for screen readers, which usually are not able to figure out a button's functionality when that button is not properly labeled. Current behavior before PR: Buttons are not properly labeled Desired behavior after PR is merged: Appearance should be the same, but the produced HTML should be of better quality, because it would fit more HTML good conventions and it whould be more accessible Related issue: I had already reported this issue on the branch 10.0 at PR #16030. However, I decided to report it on this branch, because I believe this branch is the right place to be reported.
2017-05-29[FIX] web: domain selector's inputs designqsm-odoo
Since the new views, the 'o_input' class has to be added on form elements for them to be correctly styled.
2017-05-22[FIX] web: FieldMany2ManyCheckBoxes: label not clickableAdrien Dieudonne
Before this commit, it was only possible to click on input to change the value of the many2many_checkboxes widget. For better consistency, we must allow to click on labels.
2017-05-18[FIX] web: FieldRadio with numerical keys encoded as stringsAaron Bohy
Before this rev., the FieldRadio didn't work on selection fields with keys like "0", "1"... i.e. strings that can be converted to numerical values. This was due to an automatic conversion of those keys to their numerical value by JQuery, so when the user changed the value, an unknow key was sent to the server (e.g. 1 instead of "1"), causing a crash. This rev. changes the logic a bit so that the keys are no more written in the DOM, but their index in the selection are.
2017-05-15[FIX] web: display a translation alert when saving the form viewChristophe Matthieu
In the form view, when the user saves a record (with a multilang instance), an alert is displayed to display all modified translatable fields.
2017-05-09[FIX] web: add `o_input` class on m2o dialog inputMartin Geubelle
Since the rev https://github.com/odoo/odoo/commit/250e716c3a12e88acb4a199b427dc47d4ec55d5d the class `o_input` needs to be set on an input to correctly style it.
2017-05-04[REF] web, *: restore views designqsm-odoo
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-03[FIX] web, document: adapt toolbar to the new viewsfwi-odoo
- Fix the toolbar behaviour since there is no more dataset in the widget. - Improve the communication beetwen the controller and the toolbar. - Move the code linked to the document upload in the right file. - Adapt the tests to mock the search_read done by ´document´ addon - Adapt the mock server to be able to give a custom toolbar action
2017-04-27[FIX] mrp: reintroduce pdf_viewer field widgetMartin Geubelle
This field widget has been adapted to the new views. This commit also introduces some tests.
2017-04-27[REF] web: relational fields: FieldStatusAaron Bohy
Moves back the mobile rendering part of the FieldStatus to enterprise, alongside all other tweaks to improve the UX in mobile. This part had been moved to community inadvertendly in the new views branch.
2017-04-24[FIX] web: reintroduce many2many_binary field widgetMartin Geubelle
The field has been adapated to the new views. This commit also introduces some tests.
2017-04-24[FIX] web: debugmanager view metadata should not crashGéry Debongnie
In general, I think that we can safely consider that crashes are not the intended behaviour. In this case, viewing metadata crashed because we tried to format a date which was not parsed (so, a string), instead of a moment object. We simply just parse the date before, and it works as intended.
2017-04-11[REF] barcode, *: update code to new JS frameworkChristophe Matthieu
With the new views, the barcode mechanisms were completely broken, because the view and widget JS code was totally changed. This commit update and refactor all that code to make it work with the new design philosophy. Also, it update the coding style.
2017-04-11[FIX] web: fix two small crashes in debug managerGéry Debongnie
- remove edit workflow link in debug manager. The workflow feature was removed, but there was still a link in the debug manager. Clicking on that link was a crash. - the rpc to fetch a view was wrongly updated, so the return value was not properly used.
2017-04-11[IMP] web: domain & field selector usability (+ design)qsm-odoo
+ Document and refactor the files using the new guidelines * Now only non-technical names are used when building field chains and domains (technical names can be used in debug mode). * Better warnings are displayed when using the field and/or domain selector widgets (also checks domain validity in both domain field AND domain selector widget). Also improve design (thanks to original work of @stefanorigano): - Hovering 'remove' highlights the element that will be removed - Hovering 'add node' btns shows where the new node will be created - Restyle debug domain input field (make it similar to a text editor) - Improve design and layout - Resize inner fields
2017-04-11[FIX] web: restore FieldStatus behaviorqsm-odoo
FieldStatus was broken: - With a selection, the statusbar_visible attribute forces the choices to display, the discarded ones do not appear at all (even folded) - With a m2o, the fold_field option tells the field to check in the relation to know if the choice has to be folded or not, this was not properly supported - Changing a m2o value was broken as the parseMany2one function did not exist - The status were misordered - ... * Also refactor the way the rendering is handled. * Also modify all statusbar tests so that the statusbar widget is placed in the form header tag (as it is the common use case).
2017-04-11[REF] web,*: improve the way field_utils are doneGéry Debongnie
We replace a bunch of formatting and parsing functions by an object (parse or format) which can be used to dispatch on the correct type. It allows us to remove the format_field and parse_field functions. Also, we camelcase our new code and add some comments.