Skip to content
Snippets Groups Projects
  1. Sep 03, 2019
    • Thibault Delavallée's avatar
      [FIX] website_slides: do not allow fullscreen to bypass ACLs · 3f4bd440
      Thibault Delavallée authored
      Currently fullscreen takes all information from categorized slides to
      display its menu. In order to avoid calls to server some information
      is prepared in DOM to speedup loading. It means slide information is
      available even when not being member of a course which leads to some content
      leak.
      
      This commit fixes that by correctly checking that a slide can be accessed
      before allowing to have access to its information and embedded code. Access
      of a slide is either member of a course, either course publisher.
      
      Task 2058595 (eLearning v13 testing)
      Task 2064112 (fullscreen bug report)
      3f4bd440
    • Thibault Delavallée's avatar
      [FIX] website_slides: do not crash if there is any issue loading quiz data · 6d224059
      Thibault Delavallée authored
      Template displaying quiz should not crash if call to server did not answer
      correctly. Minimal fix is to have void data to display. Real issue is that
      unreadable quiz should not be displayed. This will be fixed in an upcoming
      fix.
      
      Task 2058595 (eLearning v13 testing)
      Task 2064863 (quiz bug report)
      6d224059
    • Thibault Delavallée's avatar
      [FIX] website_slides: do not put odoobot responsible of demo courses · 1aeba9b9
      Thibault Delavallée authored
      Yeah Odoobot is great but have you tried Admin ?
      
      Task 2058595 (eLearning v13 testing)
      1aeba9b9
    • Arnold Moyaux's avatar
      [REF] purchase_stock: multi company · e4d64afc
      Arnold Moyaux authored
      e4d64afc
    • Arnold Moyaux's avatar
      [REF] purchase_requisition: multi company · a5f07e16
      Arnold Moyaux authored
      Adapt purchase_requisition to the multicompany changes.
      
      task-1985992
      a5f07e16
    • Arnold Moyaux's avatar
      [REF] purchase: multi company · 20713735
      Arnold Moyaux authored
      Adapt purchase to the multicompany changes.
      
      task-1985992
      20713735
    • Simon Lejeune's avatar
      [REF] stock_landed_costs: multi company · b43b61e1
      Simon Lejeune authored
      Display company_id on the form.
      
      task-1985992
      b43b61e1
    • Simon Lejeune's avatar
      [REF] product: multi company · 03925faa
      Simon Lejeune authored
      Add an optional company_id on product.packaging to be able to share
      of restrict them, similar to what's done for product.product.
      
      task-1985992
      03925faa
    • Arnold Moyaux's avatar
      [FIX] mrp: same method name · 13d6f64a
      Arnold Moyaux authored
      Conflict between:
      commit ed642505
      commit 16e7a4b4
      13d6f64a
    • Simon Lejeune's avatar
      [REF] website_sale_stock: multi company · ae9ac488
      Simon Lejeune authored
      Adapt the module to the multicompany changes.
      
      task-1985992
      ae9ac488
    • Simon Lejeune's avatar
      [REF] product_expiry: multi company · 0f3b3e4a
      Simon Lejeune authored
      Adapt the module to the multicompany changes.
      
      task-1985992
      0f3b3e4a
    • Simon Lejeune's avatar
      [REF] point_of_sale: multi company · 6df0c3ef
      Simon Lejeune authored
      Adapt the module to the multicompany changes.
      
      task-1985992
      6df0c3ef
    • Simon Lejeune's avatar
      [REF] sale_stock: multi company · bf81b16c
      Simon Lejeune authored
      Ensure proper domains are applied and enforced on relation fields thanks
      to the `check_company` attributes.
      
      task-1985992
      bf81b16c
    • Simon Lejeune's avatar
      [REF] maintenance: multi company · 2b802cd5
      Simon Lejeune authored
      Ensure proper domains are applied and enforced on relation fields thanks
      to the `check_company` attributes.
      
      task-1985992
      2b802cd5
    • Simon Lejeune's avatar
      [REF] delivery: multi company · 20692736
      Simon Lejeune authored
      Ensure proper domains are applied and enforced on relation fields thanks
      to the `check_company` attributes.
      
      task-1985992
      20692736
    • Simon Lejeune's avatar
      [REF] mrp_subcontracting: multi company · 9d4a5526
      Simon Lejeune authored
      Ensure proper domains are applied and enforced on relation fields thanks
      to the `check_company` attributes.
      
      task-1985992
      9d4a5526
    • Simon Lejeune's avatar
      [REF] mrp: multi company · 96406dc2
      Simon Lejeune authored
      Ensure proper domains are applied and enforced on relation fields thanks
      to the `check_company` attributes.
      
      Make sure unbuild have proper sequence for each companies.
      
      The produce wizard and workorders company is the one of the production.
      The BoM line company_id is the one of its bom_id.
      Added some tests.
      
      task-1985992
      96406dc2
    • Simon Lejeune's avatar
      [REF] stock_picking_batch: multi company · 4a031781
      Simon Lejeune authored
      Ensure proper domains are applied and enforced on relation fields thanks
      to the `check_company` attributes.
      
      task-1985992
      4a031781
    • Simon Lejeune's avatar
      [REF] stock_account: multi company · d43d2502
      Simon Lejeune authored
      Ensure proper domains are applied and enforced on relation fields thanks
      to the `check_company` attributes.
      
      Adapt `_compute_value_svl` to return the valuation for a specific
      company.
      
      Every time a property is read, make sure `force_company` is properly in
      the context.
      
      Fixed the ir.rule.
      
      task-1985992
      d43d2502
    • Simon Lejeune's avatar
      [REF] stock_dropshipping: multi company · 27a4c071
      Simon Lejeune authored
      Now that company_id is required on the picking type, make sure we create
      as many dropship picking type/rules/sequence as there are companies
      
      task-1985992
      27a4c071
    • Simon Lejeune's avatar
      [REF] stock: multi company · b6f053b2
      Simon Lejeune authored
      Ensure proper domains are applied and enforced on relation fields thanks
      to the `check_company` attributes.
      
      product.template
      - make responsible a property field in order to ensure proper next activities when a product
        is used between multiple companies
      stock.putaway.rule
      - added a company_id field
      stock.move.line
      - company_id is not related anymore since a move line can exist without a move until its validation
      stock.package_level
      - added a company_id field
      stock.picking.type
      - company_id is now required
      stock.production.lot
      - added a company_id field, adapted the constraint accordingly
      stock.quant
      - check the consistency only in inventory mode
      stock.quant.package
      - company_id is now empty if the package is empty
      stock.picking
      - company_id is now related to the one of its picking type
      
      Added some tests.
      Moved stock_traceability in the `report` directory.
      Removed useless /tests/tours/route.js.
      
      task-1985992
      b6f053b2
    • Damien Bouvy's avatar
      [FIX] website_sale: don't assert, just check · f6ab2198
      Damien Bouvy authored
      
      If the session is unbound before a call to this route, this assertion
      will raise. The point of this code is not to crash when the parameters
      are incorrect or the session unbound - the point is to avoid leaking
      incorrect information.
      
      Simply return an empty object to the JS code, it will stop polling after
      a single failed attempt instead of crashing.
      
      closes odoo/odoo#36356
      
      Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
      f6ab2198
    • svs-odoo's avatar
      [FIX] sale,stock: relabelling · 9e100a7d
      svs-odoo authored
      
      `sale`
      Delivery Lead Time  -> Lead Time
      
      `stock`
      Assign owner        -> Assign Owner
      
      Task #2058665
      
      closes odoo/odoo#36132
      
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      9e100a7d
    • svs-odoo's avatar
      [FIX] stock: restart a canceled inventory · 16ee89a6
      svs-odoo authored
      When an inventory is canceled, the user is able to edit its locations
      and products fields. So, if he/she does and then restart the inventory,
      it can have some lines who don't match these fields.
      
      Now when an inventory adjustment is canceled, we delete all its lines.
      Its lines will be recreated when the inventory adjustment will be
      restarted. Thus, lines will always corresponding to their inventory
      `location_ids` and `product_ids`.
      Also, a confirmation popup was added to ask if user really want to
      cancel the inventory when he/shes clicks on the cancel button (to avoid
      users delete their on going inv. adj. by miss clicking).
      
      Task #2058665
      16ee89a6
    • svs-odoo's avatar
      [FIX] stock: forecast quantity only on warehouse · d3ef8a95
      svs-odoo authored
      Before this commit, forecasted quantity in the product stat button and
      in graph/grid view wasn't always equals.
      The issue was the forecasted quantity is based on quant in location who
      is child of warehouse location, and the `report.inventory.quantity` used
      in graph/grid view didn't filter on warehouse location (took all
      internal location).
      So, completes the domain on `report.inventory.quantity` to get only
      quantity in the warehouse.
      Same change is applied to the Forecasted Inventory report.
      
      Task #2058665
      d3ef8a95
    • svs-odoo's avatar
      [FIX] product_expiry: add space before "days" · 63852bc1
      svs-odoo authored
      In the product form view, add a space before the "days" word to avoid to
      have the value sticked to days.
      
      Task #2058665
      63852bc1
    • svs-odoo's avatar
      [FIX] stock: reordering rules scheduler message · 89c09e78
      svs-odoo authored
      The informative message about the scheduler on the reordering rules
      form view takes now all the width.
      
      Task #2058665
      89c09e78
    • Sébastien Theys's avatar
      [IMP] website, website_event, website_slides: add rel=canonical tag · 1781041f
      Sébastien Theys authored
      
      The canonical tag is important for SEO, indeed it prevents search engines from
      indexing duplicate content.
      
      Reasoning
      =========
      
      The choice has been made to create the canonical tag automatically depending on
      the request path, ignoring the query string, and manually prefixing the
      appropriate domain and language code.
      
      Indeed creating it manually for each resource would create a lot of code and
      potential mistakes.
      
      It is more dangerous to do it the generic way, but after investigation it
      appears that it is an acceptable trade-off since the vast majority of our routes
      are well built and already ready for this:
      
      - using query string only for minor features that do not change the main content
      - having the models, the ids, the pager and other important features in the path
      
      Override
      ========
      
      It is still possible to override the default behavior by passing
      `canonical_params` manually to the view or to the different methods.
      
      This is done for `/event` because the only way to display Past Events is to add
      `date=old`.
      
      Languages
      =========
      
      Fix an issue where it was possible for a bot to be on the URL without language
      code but to use a language that is not the default language.
      
      Adapt hreflang, because it:
      - must only be present on canonical pages
      - must always lead to canonical pages
      - should not be set if there is no alternate language
      
      Misc
      ====
      
      task-1958075
      closes #12532
      
      Inspired by OCA module `website_canonical_url` courtesy of Jairo Llopis.
      
      closes odoo/odoo#35852
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      
      
      Co-authored-by: default avatarJairo Llopis <jairo.llopis@tecnativa.com>
      Co-authored-by: default avatarSébastien Theys <seb@odoo.com>
      1781041f
    • Vincent Schippefilt's avatar
      [FIX] web: kanban: fix cursor blinking on settings column · b89e0f64
      Vincent Schippefilt authored
      
      When the cursor hovers just above the settings icon that appears when
      the cursor is in the column is blinking between the pointer and the
      "move column" pointer cursor
      
      Task: 2060825
      
      closes odoo/odoo#36377
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      b89e0f64
    • Pierre Paridans's avatar
      [FIX] web: don't mock mobile test suite environment · 96f456a2
      Pierre Paridans authored
      
      The mobile-specific code relies on the size of the browser <= SM
      (currently 767px).
      
      But when phantomjs was used to run the JS tests headlessly there was no
      way to force that size for the mobile test suite (e.g. when running from
      the command line, runbot...). The only solution was to mock some
      variables (isMobile, size_class) in web.config to force them to
      mobile-like values (see commits odoo/odoo@9bc5009481de188 and
      odoo/odoo@497dfb691774bd7b8).
      
      Since the switch to Chrome Headless the browser size is set to a
      mobile-friendly size (currently 375x667) when the mobile test suite is
      ran. So isMobile is automatically set to true.
      
      The code to mock the web.config has then become redundant.
      
      This commit removes it to only rely on the browser window size for the
      mobile test suite execution.
      
      Notes:
      
      When testing manually in the browser it's now required to set the
      browser window to a mobile-friendly size. Even if it was already the
      case, it will provide a more realistic environment and allows to test
      important/behavior-related media queries (e.g. clicking on a button only
      visible/present on mobile).
      
      BTW the easiest way to run all tests is to execute them directly using
      Chrome Headless (except for debugging of course).
      
      closes odoo/odoo#36328
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      96f456a2
    • wan's avatar
      [IMP] account: allow to reconcile taking amount from the label of the statement line · ac187676
      wan authored
      Task 2039772
      
      Add a new amount matching mode by taking the amount from the label, based on a regex. The regex must contain a capture group. If multiple groups are matched, there will be an error.
      Also add a 'remaining' option for the second line, that puts the remaining amount of the statement in the second line.
      
      closes odoo/odoo#35143
      
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      ac187676
    • wan's avatar
      [IMP] account: second line of reconciliation model based on open balance · 3c5c7b4d
      wan authored
      Part of task 2039772
      The second line of reconciliation models (client side) was computed based on the amount of the bank statement instead of the remaining balance, like on the server side.
      We also need it to be based on the remaining balance, for the next commit introducing the detection of the amount thanks to a regex on the commuication of the statement.
      3c5c7b4d
    • Arnaud Baes's avatar
      [FIX] repair: batch & grouped invoice creation. · 98fc0733
      Arnaud Baes authored
      Follow up of fix https://github.com/odoo/odoo/commit/c25803235a6db9d54755bfca5ea417c322a9fcba
      
      
      
      TaskID: BugsLogistics
      
      closes odoo/odoo#36311
      
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      98fc0733
    • William Henrotin's avatar
      [IMP] sale_stock: use popover instead of dialog · cadd65bc
      William Henrotin authored
      
      Commit fff2a30a introduces a dialog to show quantities on hand directly
      on sale order line.
      
      This commit replace the dialog by a bootstrap popover
      
      Task 2058670
      
      closes odoo/odoo#36213
      
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      cadd65bc
    • Raphael Collet's avatar
      [FIX] fleet: field recomputed with falsy fields · 31764a98
      Raphael Collet authored
      
      closes odoo/odoo#35910
      
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      31764a98
    • Raphael Collet's avatar
      95996e5c
    • Raphael Collet's avatar
    • Raphael Collet's avatar
    • svs-odoo's avatar
      [IMP] mrp: add production_id in search filter · 0518b231
      svs-odoo authored
      
      Add a filter for `production_id` in mrp.workorder search.
      
      Task #1965962
      
      closes odoo/odoo#36014
      
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      0518b231
    • mgh-odoo's avatar
      [FIX] stock: unable to create new manufacturing order in mobile · 1b1a1373
      mgh-odoo authored
      
      some fields are not added to mobile kanban that creates an issue
      for a new manufacturing order
      
      task-2056421
      
      closes odoo/odoo#36171
      
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      1b1a1373
Loading