summaryrefslogtreecommitdiff
path: root/odoo/addons/test_main_flows/static/src/js
AgeCommit message (Collapse)Author
2019-06-05[IMP] *: move test and tour files to new folder hierarchy and assetRomain Derie
As we now have a new debug mode 'tests' which load a new asset bundle containing tour-test files, we moved those files to a new folder hierarchy. That will clean the .js files trees. Also, those files should be included in the new asset. Basically, the .js tour files (not test) should be inside /static/src/js/tours while .js tour test files (test=true) should be inside /static/tests/tours next to QUnit tests, inside a tours folder. + test_new_api: don't run the test in debug assets task-1934445 Comes with https://github.com/odoo/enterprise/pull/4281 Closes #33213
2019-06-04[IMP] web: add optional fields parameterDavid Monjoie
This commit adds a new parameter on fields for list view and one2many. The parameter name is "optional" and its values are "hide" or "show". Columns of the list view which have the optional parameter set are listed in a dropdown that can be toggled from the last cell of the table header. The ones with optional set to "hide" are hidden by default. User choice is stored in local storage. If no saved parameter can be found in local storage then the default value from the view is used. Due to the overflow behavior of the responsive table, we were forced to wrap the table-responsive div in yet another div. We changed the o_list_view class on the table to o_list_table in order to reuse the more generic o_list_view class on the top-most div. CSS rules and selectors had to be updated according to this change. Task-1902765
2019-04-04[IMP] account: visible but not required bank account on paymentwan
When making a manual payment with account_sepa we want to allow people to add a bank account as it might display the European QR code for banking app, but this should stay optional. So we made sure that the conditions making the field visible and required weren't the same. part of task #1918423 closes odoo/odoo#32198 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-04-04[REF] account: simplification of payments objectswan
simplification of payments objects and refactoring of the code * registering payment(s) from the list of invoice now generate a single payment per invoice selected * no more abstract object for payments/payment wizard as the logic is now really simple: - group_invoices option is now removed and we never try to group payments based on the currency/customer of whatsoever (see above), - the payment amount is the full residual amount of invoice and users cannot change it anymore * partner_bank_account_id not required as soon as visible (depends on the payment method) * refactoring to name tags and allow easier inheritance via xpath part of task #1918423
2019-03-28[IMP] sale_product_configurator: improve p. configuratorAurélien Warnon
Task #1891970 Original p. configurator commit d3530eb Purpose ======= - The p. configurator now comes with a widget that is "o2m" like in the SO lines view. The widget is only used on the added "product_template_id" field on the SO line. This widget controls the opening of the configuration window and removes the need of a "Configure a product" button. The "SectionAndNoteListRenderer" is now cleaned from p. configurator specific code. The widget is also responsible for handling the configuration provided by the p. configurator form and applying it on the SO line with a 'field_changed' event that updates all the necessary fields. - Added support for 'MULTI' and 'DELETE_ALL' operations on X2Many fields in basic_model.js - 'MULTI' allows to batch multiple operations at once - 'DELETE_ALL' behaves like 'DELETE' with all the current data of the field Spec ======= - remove "configure a product" from sale order lines When the product configurator is active, replace the product_product_id by a product_template_id in the sale order line. When we select a template without variants, it sets the variant automatically, but when we select a product template having variants, it opens the configurator dialog. - add a widget to modify the product configuration in the sale order line (next to product template field) - UX improvements: - Invert image and configuration in the main screen - If the product doesn't have an image, hide it instead of showing the placeholder (only for first screen?) - new independent option in sales settings to activate product configurator. (same in e-commerce) - demo data: Change demo data to set Customizable Desk & Conference Chair as make to order - If only one attribute value that is Custom, don't display radio, selection or even color box
2019-03-25[IMP] account: display sample data on dashboard if emptywan
Task: 1893104 closes odoo/odoo#28131 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-03-08[FIX] web,*: adapt autocomplete dropdowns after jquery updateAaron Bohy
*partner_autocomplete,test_main_flows In jQuery 3, the active element in autocomplete dropdowns is no longer identified with class 'ui-state-focus' on the <li/>, but with class 'ui-state-active' is on its child <a/>. Moreover, the background color of the active element is now set on the <a/> instead of the <li/>. This rev. adapts scss rules accordingly, and selectors in the main_flow_tour. Issue reported on the jquery update pad. closes odoo/odoo#31693 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-01-28[MERGE] forward port branch saas-12.1 up to d3b8422c9c4Christophe Simonis
closes odoo/odoo#30614
2019-01-18[MERGE] forward port branch 12.0 up to f854e01a983Christophe Simonis
2019-01-09[MERGE] forward port branch 12.0 up to 3e4138deaa2Christophe Simonis
closes odoo/odoo#30045
2019-01-08[FIX] test_main_flows: open operations menu in enterprise onlyChristophe Monniez
In community, when entering the Manufacturing app, the first view is the Manufacturing orders list view as it's not the case in enterpise, the two steps are only necessary in enterprise. Note: even if it fix the tour, the main bug could still be there. closes odoo/odoo#30016
2019-01-04[FIX] test_main_flows: more explicit triggerChristophe Simonis
2019-01-14[FIX] test_main_flows: remove patches due to tour manager delayAaron Bohy
Since the removal of the delay in the tour system, some patches that had been done to make the tour pass (all the time) can be removed.
2019-01-08[FIX] test_main_flows: make tour pass without all modulesMartin Geubelle
With the current test_main_flows dependencies, the tour does not pass in community. Since rev. odoo/odoo@32db86e the `extra_trigger` waiting for `payment_method_id` is never reached because the onchange who is supposed to display this field hides it because there is only one payment method on the journal. The second payment method is added by the module account_check_printing but we don't want to add it in the dependencies because this module is not very common. Note that this `extra_trigger` was meant to wait for the onchange triggered by the journal modification on the 'Register Payment' modal but this modification is not useful as the journal is already 'Bank (USD)' by default. closes odoo/odoo#30023
2019-01-09[MERGE] forward port branch saas-12.1 up to 8aa8548d8abChristophe Simonis
2018-11-27[REF] mrp: compute state for productionArnold Moyaux
Refactor production order state: - Directly have an idea of linked workorders's state - Computed in order to manage it in a single method - Add tooltips for each state Remove the None in availability selection field instead use a False Also refactor the ready_to_produce field in order to only set as assigned a production order that have the component for its first workorder.
2018-11-26[IMP] stock: rename 'Make to Order (MTO)' into 'Replenish on Order (MTO)'Haresh Shyara
2018-12-11[IMP] mrp: Produce wizard save and produce anotherTejas Shahu
When a user produces multiple finished products with SN/lots, he has to save the wizard go back to the production order and click again on produce button for the second SN/lot. It could be annoying with a huge number of SN/lots to encode. This commit adds a 'Continue' button that saves the wizard and directly opens a new with the new lot/SN.
2018-11-12[FIX] test_main_flows: adapt tourMartin Trigaux
To reflect changes in enterprise closes odoo/odoo#28600
2018-09-17[FIX] *: adapt tours for the new community navbarAlexandre Kühn
*: crm, hr_expense, hr_recruitment, point_of_sale, project, sale, stock, web_tour, test_main_flows, test_new_api To sum up: - Click on "Apps Menu" then the app item. (previously: click on '+' then the app item). - Click on navbar section menu item. (previously: click on sidebar section menu item).
2018-08-28[IMP] purchase: create bill buttonHetashree Chauhan
Before this commit the user add to click on vendor bill button that redirect him to an empty list view where he has to click on create. Now, vendor bill show a list view of existing invoice and it exists a new button create bill that directly create a new invoice with missing delivered product. It also order button in order to put primary buttons first in the header. The tour is modify since the stat button is invisible if the PO does not have an invoice linked. Instead it clicks on 'create bill' button. This commit is related to task ID 1835441.
2018-08-13[FIX] test_main_flows: fix issue with button nameSébastien Theys
Commit 4c31a758cf0715b1c1ff2f5b3cef18fec92c2d84 changed the name of a button, but the test wasn't updated correctly. PR: none Task: none
2018-08-03[IMP] note, purchase: rename main menu namePriyanka Kakadiya
This commit renames main menu name same as module name in order to be less confusing to users. This implies a small fix in test main flow because it is based on the menu name. This commit is related to task ID 47179 and PR #22689.
2018-07-27[REF] web, *: BS4, use custom BS4 checkbox everywhereqsm-odoo
Before this commit, Odoo used checkboxes in three different ways: - A simple <input type="checkbox"/>, mainly in the frontend. The style is browser dependant. - Same as above but with the BS3, checkbox structure. The style is still the same, but the alignement is supposed to be better (which is not always the case). - The Odoo official structure: ``` <div class="o_checkbox"> <input type="checkbox"/> <span/> </div> ``` which allows to have a cross-browser checkbox style and correct alignements. The goal after this commit is to only use the BS4 *custom* checkbox structure to achieve the same goal as our official structure (and remove that one): ``` <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" id="customCheck1"> <label class="custom-control-label" for="customCheck1">...</label> </div> ``` /!\ Labels are now required (use a zero-width space if necessary)
2018-07-27[REF] *: BS4, review breadcrumb structureqsm-odoo
Now, the 'breadcrumb-item' class has to be put explicitely on breadcrumb items.
2018-07-09[FIX] *: fix some side-effects of ↵qsm-odoo
https://github.com/odoo/odoo/commit/9de1bc0eef6f5bfaa2a8d745431caa361ae91548 - JS Modals were not correctly built anymore, their .modal-body element was duplicated and many without-effect JS lines were introduced (as a side effect, the form view design was broken when inside modals) - Tests were changed to make bugs go unnoticed. For example, the media dialog functionnality was entirely broken because the .modal-dialog element was not receiving the correct class anymore. - The JS translation function is _t, not _ - Do not use the <title/> tag as a regular DOM element, it is meant to be unique, in the <head/> section - CSS rules were added to the utils.scss file, which is meant to contain functions and mixins, otherwise, the rule is duplicated in every asset - Some icons were still broken, as missed by https://github.com/odoo/odoo/commit/f90cf060a3cfeb37a67bec83264c0aaab8892b56 - Tests were changed to use [role="dialog"]/footer/header in their selectors without any reason, this commit restores some of that to avoid rebase conflicts with the BS4 work. - ... Note: other elements should still be discussed, like the direct use of the 'o_form_label' class in views definition... but those do not cause direct problems.
2018-07-05[IMP] product: Unify/Clean product demo dataFabien Pinckaers
PURPOSE ======= 1. Unified product demo data 2. Less demo: one per use case 3. Demo data for all models Specification ============= 1. Refactor all the brol in the demo data 2. Adapt the tests to make them green, as some products are renamed, removed, created in python instead of as demo data ...
2018-06-22[IMP] Improve compatibility with screen readers (accessibility) (#24574)kujiu
Today, Odoo is really tricky to use without seeing the screen, it must be improved to be usable. This PR forbid to use labels without a "for" attribute, add some title, rule and aria attributes in HTML. With that, Odoo will be fully usable with a screen reader. * [IMP] Labels must have a for attribute. Improve accessibility. * [IMP] Better error message when trying to read a missing cached value * [FIX] Add some aria-label and title attributes for screen readers. * [FIX] Template name is not included in the error message in case of SyntaxError in QWeb * [FIX] Improve the Tour failed at step error message to be more explicit. * [IMP] Add aria-labels * [FIX] Add missing aria-label on failing test * [IMP] aria-hidden means hidden. Fix all bad aria-hidden and hide aria-hidden for all. * [IMP] Color names on kanban views and many2many tags * [IMP] Add some checks on views for accessibility. * [IMP] Add `alt` attribute on `img` tags. * [IMP] Add aria-label and title on non-described icons * [IMP] Add button role to widgets with btn class * [IMP] Translate aria and formatted attributes. * [IMP] Remove wrong aria-labelledby * [IMP] Add menu role on dropdowns * [IMP] Buttons must be focusable * [IMP] Add aria attributes on progress bars * [IMP] Improve accessibility of basic widgets * [IMP] Change main layout to more semantic tags * [IMP] Add menuitem role when missing * [IMP] Remove wrong role='presentation' * [IMP] Improve accessibility of tab panels * [IMP] Add aria-invalid on invalid fields * [IMP] Add aria-sort on ordered columns * [IMP] Add role on alerts * [IMP] Use dialog role, header, main and footer tags for modals * [IMP] Add labels on o_status * [IMP] Improve accessibility of kanban view with feeds and articles * [IMP] Add alerts in case of new messages * [IMP] Add widget, navigation or img role to aria-labelled items
2018-06-08[FIX] test_main_flows: fix tour, to make it work with the new stuff in ↵Olivier Colson
accounting's dashboard
2018-06-08[FIX] test_main_flows: let the redbot go greenqdp-odoo
2018-06-08[IMP] account: facilitate bank account and bank journal configOlivier Colson
With this change, * some modules are now set to be automatically installed by default * the setup bar of accounting has been changed in order to allow more easiliy the configuration of bank accounts/journals (and the step to oversee the opening entry has been removed) * the kanban view in the dashboard has been enhanced (mostly for bank journals, but not only) Was task: 32668 Was PR #23049
2018-04-18[IMP] web, *: do not use 'oe_highlight' and 'oe_link' class in the DOMqsm-odoo
* test_main_flows The style of a primary/link button is given by the 'btn-primary'/'btn-link' class. The old 'oe_highlight'/'oe_link' class should still be supported in views but not rendered in the DOM.
2018-04-10[IMP] web: keyboard navigation in form viewVincent Schippefilt
The goal of this commit is to allow fast entry of the same model using the keyboard for navigating through the form once, by blocking the user from advancing in the form if there is a required field or once they went through the form once to get them to a primary action (button) This commit includes the following changes 1) Enable moving forward from field to field using the TAB key 2) Entering the one to many and many to many using the TAB key a. When entering it, set the focus on the "add new line" link or button b. When adding a new line, set the focus on the field visible editable field of the new line c. Discard adding a new line with ESC key d. If the user leaves the first field empty and uses TAB, we will cancel the adding of a new line and move to the next field of the form 3) When a field is required and not filled in, do not allow the user to move out of the field using the TAB key (the user is still allowed to use the mouse though), mark the field as invalid instead 4) After going though the form once, using the TAB key on the last field will move the focus to the first primary button of the page 5) When the focus is on a primary button (EDIT/SAVE), the user cannot move the focus forward using the TAB key. Hitting TAB again will display a tooltip telling to hit ENTER to activate the button. The mouse is still available to move the focus. 6) When the user saves, the focus is placed on the first primary button of the form renderer (like VALIDATE for a new invoice) 7) On dialogs, primary buttons should stop the users from moving out of them, and showing a popup if the user tries 8) When closing a dialog, the focus will be moved back to the widget that opened it. This commit does not include the following features 1) Navigation with the keyboard on a selection one to man 2) Navigate between tabs in a form using the keyboard 3) Cancelling the adding of a new line in a many to many using the ESC key do not set the focus correctly 4) Enhancing the focusses fields (like blue underline)
2018-03-20[FIX] test_main_flow: adapt test to default taxes on productsChristophe Simonis
2018-03-20[MERGE] forward port branch 11.0 up to 2835d299792Christophe Simonis
2018-03-16[FIX] test_main_flows: set tax on product in testNicolas Lempereur
Following odoo/odoo@87c09b8 if a chart of account template with falsy complete_set_tax is installed, the default sale and purchase taxes are not set. This made a enterprise step fail in test_main_flow, so this commit set the tax on product inside the test explicitely.
2018-01-26[FIX] crm,test_main_flows: adapt tours to flow changesAaron Bohy
The 'crm_tour' and 'main_flow_tour' tours both create a 'crm.lead' record from the Kanban view at some point. Since last commit, this doesn't open a form view in a dialog anymore, but instead opens a form view in the QuickCreate widget. Some steps of those tours had to be adapted accordingly.
2018-01-18[IMP] core: menu tip ux/ui improvementAlexandre Kühn
We would like to make the "no item found" screens more appealing. Before this commit, it shows a small help tip in the top-left corner of the screen, just below the "Create" button. With this commit, these help tips have been replaced by onboarding screens, which consist of a picture and some text below, both of which are horizontally centered. The texts have been slightly changed, so that they are shorter and clearer. Considered modules: (A) account, account_asset, account_budget, account_test, account_voucher, analytic (B) barcodes, base, base_automation, board (C) calendar, contacts, crm (D) delivery (E) event (F) fleet (G) gamification, google_drive (H) hr, hr_attendance, hr_contract, hr_expense, hr_gamification, hr_holidays, hr_payroll, hr_recruitment, hr_timesheet (I) im_livechat (L) l10n_fr_sale_closing, link_tracker, lunch (M) mail, maintenance, mass_mailing, membership, mrp (N) note (P) payment, point_of_sale, post_mercury, pos_restaurant, product, project, purchase, purchase_requisition (R) rating, repair, resource (S) sale, sale_timesheet, sales_team, stock, stock_account, stock_landed_costs, stock_picking_batch, survey (U) utm (W) web, website, website_blog, website_customer, website_event_track, website_forum, website_quote, website_sale, website_sale_digital, website_slides
2017-11-30[FIX] test_main_flows: rename menu entry 'Catalog', workaround for ↵Alexandre Kühn
the_flow.customer Menu entry 'Catalog' has been renamed into 'Products' (see https://github.com/odoo/odoo/commit/941037194d0644a0f2d3348aedd888bce5b1eb74) The step 'the_flow.customer' with enterprise fails due to an unexpected out-of-focus issue.
2017-11-17[REF] *: renaming AppSwitcher to HomeMenuAlexandre Kühn
Summary: AppSwitcher => HomeMenu AppSwitcherMenu => HomeStudioMenu Details: application_switcher => home_menu application-switcher => home-menu AppSwitcher => HomeMenu appswitcher => home_menu AppSwitcherMenu => HomeStudioMenu appswitcher_menu => home_studio_menu app_switcher => home_menu app-switcher => home-menu app_switcher_menu => home_studio_menu
2017-10-19[IMP] products,...: Few improvements in product form view,Hiral Bhavsar
Purpose ======= Invoicing is now optional with ecommerce and POS -> there shouldn't be an Invoicing tab in product form by default Specification ============= - Move 'Customer Taxes' field from 'Invoicing' tab to right below 'Sales Price' (in General Information tab). - Move 'Invoicing' section from 'Invoicing' tab to 'Sales' tab. - Add section 'Inventory Valuation' in 'Inventory' tab and move 'Cost' field from 'General Information' tab to this section. Also move 'Landed Costs' section from 'Invoicing' tab to this section (without heading 'Landed Costs'). - Rename tab 'Invoicing' to 'Accounting' and apply group 'group_account_invoice'. - Remove 'Notes' tab and move descriptions and warnings to relative tabs(Sale, Purchase, Inventory). - Apply groups 'stock.group_stock_multi_locations' to 'Description for Internal Transfers' in 'Inventory' tab. - Improve tooltip of 'Description for Customers', 'Description for Receptions' and 'Description for Internal Transfers'. - Visible/Invisible 'Sales' and 'Purchase' stat buttons based on 'Can be Sold' and 'Can be Purchased' checkbox fields. - Update 'main_flow_tour', set trigger 'Sales' instead of 'Invoicing' as now fields 'service_policy' and 'service_tracking' will be placed in 'Sales' tab. - Move 'TaxCloud Category' field from 'Invoicing' tab to 'General Information' tab. - Rename ebay option 'Use eBay' to 'Sell on eBay' and move 'ebay' tab next to 'Sales' tab. - In 'Sales' tab, set 'Subscription Product' field before description and add string 'Subscription' to differentiate it. Full details and discussion under : https://www.odoo.com/web#id=33939&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720
2017-09-21[IMP] stock: rename Inventory Control menuitemPrakash Prajapati
2017-09-13[FIX] test_main_flows: adapt to rev 8bca882b56b6c7911c6ce1a341297429881df1f6Simon Lejeune
2017-09-13[IMP] sale_timesheet: product config for serviceJérome Maes
The purpose is to simplify the product configuration. Adding detailled options about the service tracking (create task and/or project) make the setup less confusing for users. The invoice policy is replaced by "Invoice based" (only for services). We don't support "ordered quantities" with "manual" tracking anymore. The supported use cases are : - Ordered quantities (using timesheet) - Timesheet on task (delivered with timesheet) - Milestones (delivered manually) Also, even when selecting 'Milestones', the SO line can generate a task/project, but timesheeting on thoses objects will not change the delivered quantities on the SOL. So, a task can always be created whatever the service invoice policy of the product. Every generated task or project are linked to their SO line. But this SO line is only incremented (on delivered quantity) if its product 'service_type' is timesheet.
2017-09-08[IMP] stock: remove procurement orders to fufill immediatelyFabien Pinckaers
This removes the procurement.order model. To fufill their needs SO, PO, MO and stock moves now call the _run method of the relevant procurement.group. This mecanism is now only used for stockable product, tasks now uses their own independent mecanism. The _run method will check all the applicable rules and create directly the needed model to fufill the need. The modules stock, purchase, mrp, extends the _run method to implement their specific strategy relevant for the rule type they define. If an exception happens the message will be logged as a mail messsage on the source model, for example, if a sales order cannot be fufilled the salesperson will now see directly the reason. OLD commit messages: [WIP] procurement: removing procurement.order in stock, sale, purchase, sale_stock. WIP fixup! [WIP] procurement: removing procurement.order in stock, sale, purchase, sale_stock. WIP [IMP] Basic tests [FIX] test not necessary anymore [FIX] remove unnecessary print statement [FIX] unnecessary test + why passing warehouse worked before? [IMP] purchase: one move by purchase order line [FIX] purchase: correct inventory tests and pass move_dest_ids among procurements [FIX] because of bad cherry-pick merge [IMP] make mrp pass by adding move_dest_ids there too [IMP] tests of sale_mrp, no need for cancelpropagation then [IMP] better to consistently use recordsets also for one2many [FIX] purchase_requisition [FIX] Exceptions should trigger errors, which should be caught in the tests [FIX] sale_mrp: remove usage of procurement.order and use sale order name instead of sol [FIX] stock_dropshipping: add sale_line_id on purchase_line_id [FIX] Remove pdb [IMP] add stock_dropshipping files [IMP] stock: search carrier through sale line instead of procurement group [IMP] add procrule test and preision needed when updating sol [FIX] sale_order_dates + [IMP] procurement exceptions by scheduler [FIX] No need to return task [IMP] move file as name changes and add corrections [FIX] Continue Run Schedulers wizard fix [FIX] name issues of takss [FIX] updating sale order line, but there is still a problem with the recompute
2017-09-01[FIX] test_main_flows: Fix induced error from 23e77b8Yannick Tivisse
2017-08-31[MERGE] forward port branch saas-17 up to fe77df3ba48Christophe Simonis
2017-08-30[IMP] stock: restructured some menuitems in operationsHaresh Shyara
- Operations - Products - Transfers - Inventory Adjustment - Sraps - Scheduling - Run Scheduler
2017-08-10[MERGE] forward port branch saas-17 up to 48b2ce60ed1Christophe Simonis
2017-08-10[MERGE] forward port branch saas-16 up to 85571bb78c9Christophe Simonis