Skip to content
Snippets Groups Projects
  1. Apr 25, 2022
    • Prakash Prajapati's avatar
      [ADD] hr_timesheet_attendance: add test for timesheet/attendance report · 8e52c36a
      Prakash Prajapati authored
      task-2727561
      
      Part-of: odoo/odoo#86914
      8e52c36a
    • Jacky (trj)'s avatar
      [FIX] point_of_sale,pos_{sale,gift_card}: product taken in total discount · c56b1e61
      Jacky (trj) authored
      
      When showing the discount the to the public, the down payment and gift card products were taken into account in the discount computation shown in the receipt.
      
      This also fix a mistake made in fc546e04 where it was implemented in the wrong place and returning a wrong value in a reduce callback.
      
      closes odoo/odoo#89603
      
      X-original-commit: 597ea7aa3f28ad82e602e1ba5679bb49d2973b78
      Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
      Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
      c56b1e61
    • Audric Onockx (auon)'s avatar
      [FIX] hr_timesheet : round hour spent correctly · 2beaa78d
      Audric Onockx (auon) authored
      
      Steps :
      Install project and activate Timesheets.
      Go to a task and add a timesheet with 30', then click elsewhere.
      
      Issue :
      The hours spent adapts, rounding to integer.
      
      Cause :
      The digits are not specified.
      
      Fix :
      Specify them.
      
      opw-2822018
      
      closes odoo/odoo#89596
      
      X-original-commit: 307f403156f20e56fe91cad5397b3db1b3ae3f99
      Signed-off-by: default avatarLaurent Stukkens (ltu) <ltu@odoo.com>
      Signed-off-by: default avatarOnockx Audric (auon) <auon@odoo.com>
      2beaa78d
    • Aurélien (avd)'s avatar
      [FIX] point_of_sale: speed-up picking creation at closing · 1412c6ed
      Aurélien (avd) authored
      
      Forward-port of PR odoo/odoo#86643.
      
      Add a unittest for multi_step route on Ship Later warehouse to
      ensure that the fix 5959d77f is not unintentionally reverted.
      
      closes odoo/odoo#89595
      
      X-original-commit: d5fb77e9d4716dd509e2e98ff39f7e1cb91ddaca
      Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
      1412c6ed
    • roen-odoo's avatar
      [FIX] point_of_sale: add warning for SN not set in PoS · 84b84702
      roen-odoo authored
      
      Current behavior:
      In PoS when you access payment screen with product tracked by SN
      and if some of the SN are not set you have no warning.
      
      Steps to reproduce:
      - Create product tracked by SN
      - Sell it in a PoS
      - Don't set the SN
      - Click on payment button
      - No warning is displayed
      
      Solution:
      Add a warning popup to inform the user that he is going
      to make a payment with missing SN
      
      opw-2818511
      
      closes odoo/odoo#89565
      
      X-original-commit: c1a4b89e93207d7e18c5f7491db110f0d28ae836
      Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
      84b84702
    • Yolann Sabaux's avatar
      [FIX] delivery: wrong invoice status for partially delivered orders · f9d6bda7
      Yolann Sabaux authored
      
      Steps to reproduce:
      - Select any two storable product that has invoicing policy set on 'Delivery'
      - Create a sales order lines with these two products and make sure that one of the lines should have a quantity set to 0
      - Add shipping
      
      Issue:
      - The Invoice Status has changed to 'To Invoice'
      
      Solution:
      Add en extra filter to consider only lines that have not been invoiced.
      
      opw-2750861
      
      closes odoo/odoo#89548
      
      X-original-commit: bfeb5f6317786edfd0fa464fe5798c7f7bc65ac9
      Signed-off-by: default avataryosa-odoo <yosa@odoo.com>
      f9d6bda7
    • Lucas Perais (lpe)'s avatar
      [FIX] web: basic_model: applyOnChange with 2 consecutive one2many · 6af8b7f9
      Lucas Perais (lpe) authored
      The problem is generally due to the use of `var`, this one
      
      https://github.com/odoo-dev/odoo/blob/58a046d2146e884d467cde827f89fa603ed98a3b/addons/web/static/src/js/views/basic/basic_model.js#L1780
      
       followed by an asynchronous call to a function using it
      
      We can therefore summarize the part of the `_applyOnChange` function
      that interests us by
      
      ```js
      
      for () {
        if (field. type === 'one2many' || field. type === 'many2many') {
          var list;
          ...
          //using list
          ...
      
          promiseFunction(list).then(function(){
            //using list
          })
        }
      }
      ```
      
      In the case where we have two one2many which follow each other,
      this scenario occurs:
        - `list` is initially the first o2m
        - the `promiseFunction` is called with `list` (first o2m)
        - before the promise is resolved the loop continues
        - `list` is `Promise.then()` the second o2m
        - the first call to `promiseFunction` with `list` (first o2m) is done
          - we enter in `Promise.then()`
          - `list` is currently worth the value of the second o2m because
            `list` is a `var`
        - the second call to `promiseFunction` with `list` is finished
          - we enter the `Promise.then()`
          - `list` is currently worth the value of the second o2m because
            `list` is a `var`
      
      Result: `Promise.then()` is called twice with the first o2m and never
      with the second
      
      We can see what happened with this code example:
      
      ```js
        const array = ["a", "b"];
      
        const asyncRead = async(value) => {
          console.log("async function arg", value)
          setTimeout(()=>{
            return Promise. resolve(value);
          }, 100)
        }
      
        const forFunction = () => {
          for (let i = 0; i < array.length; i++){
            var list = array[i];
            asyncRead(list).then(function (){
              console.log("then async function arg", list)
            })
          }
        }
        forFunction()
        /*
          async function arg a
          async function arg b
          then async function arg b
          then async function arg b
        */
      ```
      
      While if:
        We use `let`
          by replacing `var list = array[i];` with `let list = array[i];`
        OR
        We force the use of `Promise.resolve()` argument
          by replacing `.then(function (){}` with `.then(function (list){}`
      
      We will get:
      ```js
        /*
          async function arg a
          async function arg b
          then async function arg a
          then async function arg b
        */
       ```
      opw-2694855
      
      closes odoo/odoo#89160
      
      X-original-commit: 99cb2f52
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      6af8b7f9
    • Cedric Prieels (cpr)'s avatar
      [IMP] project: rename starred field and other generic improvements · 75c4468b
      Cedric Prieels (cpr) authored
      
      - The starred field was renamed as priority.
      - The assigned date is now set back to False when the user is unassigned from the task
      - An action helper was added to the collaborators view
      - The year mode was added to the calendar view of tasks
      
      task-2802506
      
      closes odoo/odoo#87139
      
      Signed-off-by: default avatarLaurent Stukkens (ltu) <ltu@odoo.com>
      75c4468b
    • Aaron Bohy's avatar
      [FIX] web: action service: do not switchView in dialogs · a40cbf9f
      Aaron Bohy authored
      
      Have an action with target="new" and a list or kanban view as
      first view. This view is displayed in a dialog. Click on a record.
      Before this commit, the action service tried to switch view, but
      in the action displayed in the background (since we cannot switch
      view inside the dialog anyway). As a consequence, if the action in
      the background was a window action with a form view, we opened that
      form view, which is absolutely not what we want (different action,
      different model...). And if the action in the background was a client
      action, it crashed, because we can't switch view in those actions.
      
      With this commit, we simply ignore calls to switchView when there's
      a dialog opened.
      
      opw 2791201 and 2793678
      
      closes odoo/odoo#89539
      
      X-original-commit: 81f8de82daa47a31e4a33478aeb537f2c9c1519c
      Signed-off-by: default avatarGéry Debongnie <ged@odoo.com>
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      a40cbf9f
    • Aaron Bohy's avatar
      [FIX] web: action service: correct breadcrumbs in dialogs · a0972150
      Aaron Bohy authored
      Have an action with target="new" and a list or kanban view as
      first view. It is displayed in a dialog, and a there is a control
      panel. Before this commit, the breadcrumbs in that control panel
      contained the complete history of controllers displayed in
      background, which isn't what we want. For instance, clicking on
      an element of the breadcrumbs crashed. After this commit, there's
      only one element in the breadcrumbs, which corresponds to the
      controller displayed in the dialog.
      
      Spotted when investigating on opw 2791201 and 2793678
      
      X-original-commit: 9838bb3a35e8b205fe30ceb5f86dcd81d536d1d0
      Part-of: odoo/odoo#89539
      a0972150
    • roen-odoo's avatar
      [FIX] mrp, sale_mrp: set bom_line_id on all moves for kits · a73e69b2
      roen-odoo authored
      
      Current behavior:
      When using 2 steps delivery and selling a kit product, not all
      moves had bom_line_id set. So if you go in the transfers you
      couldn't always see the "Kit" column in the operations.
      
      Steps to reproduce:
      - Activate 2 steps delivery
      - Create a Kit with 2 products
      - Create a quotation with kit and confirm it
      - Go in the delivery
      - In WH/Pick you can't see Kit column
      - In WH/Out you can see the Kit column
      
      opw-2796974
      
      closes odoo/odoo#89371
      
      X-original-commit: 88c3c3f4
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarEngels Robin (roen) <roen@odoo.com>
      a73e69b2
    • Pieter Claeys (clpi)'s avatar
      [FIX] mrp: Preserve component registration steps on backorder creation · 71bc97c1
      Pieter Claeys (clpi) authored
      Impacted versions: 15.0
      
      Steps to reproduce (starting from ENTERPRISE 15.2):
      - enable Work Orders
      - create new BoM for a new product
      - add 1 operation w/ 1 step (e.g. Instructions)
      - add 1 component to BoM with operation_id (Consumed in Operation) = the operation
      - Create and confirm a MO with new BoM + 2 Quantity to Produce
      - Produce 1 product via the tablet view flow (i.e. complete instruction step + Validate 1 component in "Register Consumed Materials" step + Mark As Done)
      
      Current behaviour:
      Backorder is correctly created, but its workorder is missing the "Register Consumed Materials" step
      
      Expected behaviour:
      Step is correctly created
      
      Note: same issue occurs with Byproducts having an operation_id (i.e. "Produced in Operation")
      
      Issue is due to when _split_productions() first creates the backorders, they are created without move_raw_ids and move_finished_ids (see: _get_backorder_mo_vals()). When the backorders are created, they auto-create and auto-confirm their workorders. Since a quality point (e.g. operation step) exists for the workorder, the initial _action_confirm will _create_checks() for the quality point, but the "Register Consumed Materials" steps are created by the operation_id values in the move_raw_ids and move_finished_ids which haven't been set yet. This makes it so when the second _action_confirm() is called on the workorders (i.e. after their moves have been set) at the end of _split_productions(), the _create_checks() will be skipped because it assumes all the quality points have been created since one already exists.
      
      Task: 2800975
      Community PR: https://github.com/odoo/odoo/pull/87681
      Enterprise PR: https://github.com/odoo/enterprise/pull/26437
      
      
      
      closes odoo/odoo#89486
      
      X-original-commit: 67524eb9
      Related: odoo/enterprise#26534
      Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
      71bc97c1
    • Tom De Caluwé's avatar
      [FIX] web_editor, website: allow autoplay of youtube videos on mobile · ca60af9d
      Tom De Caluwé authored
      
      The autoplay option for youtube videos in a .media_iframe_video snippet
      does not currently work on mobile devices. This happens because the
      autoplay param in the url is only considered for desktop devices.
      
      Mobile autoplay can be forced by using the youtube js api, in the same
      way as it is already done for background videos. Therefore, the common
      code is extracted into a mixin, extended by both widgets.
      
      opw-2607308
      
      closes odoo/odoo#89439
      
      X-original-commit: 83972aa28957414d53c69bb41ce36646891a829e
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
      ca60af9d
    • Paul Morelle's avatar
      [FIX] mass_mailing: ensure test templating is true · 19f05de5
      Paul Morelle authored
      
      When using a template with inline placeholders in the body, the Test
      button will replace the placeholders, but they will remain in the final
      body when the mass mailing is sent for real.
      
      This commit fixes this issue by using the correct rendering engine for
      the Test button too.
      
      OPW-2819032
      OPW-2828461
      
      closes odoo/odoo#89346
      
      X-original-commit: b0dcd2fa
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      Signed-off-by: default avatarPaul Morelle <pmo@odoo.com>
      19f05de5
    • Stanislas Gueniffey's avatar
      [IMP] l10n_es_edi_sii: imp. menu, default test env · c7d070e6
      Stanislas Gueniffey authored
      
      Make SII menu more readable and user-friendly
      Set l10n_es_edi_test_env = True by default
      
      Task-2809043
      
      closes odoo/odoo#89480
      
      X-original-commit: d96c9a28
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      c7d070e6
  2. Apr 24, 2022
  3. Apr 23, 2022
  4. Apr 22, 2022
    • Beshoy's avatar
      [CLA] Beshoy nabeih CLA · b029b272
      Beshoy authored
      
      closes odoo/odoo#89510
      
      X-original-commit: c25a3ae5
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      b029b272
    • Kartik Chavda's avatar
      [FIX] project,sale_project: fix action of milestone stat button · 43644341
      Kartik Chavda authored
      
      This commit fix button action of milestone stat button.
      
      task-2784776
      
      closes odoo/odoo#89326
      
      X-original-commit: 70f67d8ca012ccc7980a2cc8da1c2fea1fd15678
      Signed-off-by: default avatarLaurent Stukkens (ltu) <ltu@odoo.com>
      43644341
    • dbkosky's avatar
      [FIX] l10n_it_edi: format_alphanumeric · d7c6033f
      dbkosky authored
      
      The Italian edi system accepts utf-8 encoded documents, but actually the
      contents of the fields have to be latin-1 encoded. Format-alphanumeric
      should remove any non-latin1 characters and replace them with a ?
      
      Several fields to are also truncated before the function is applied.
      This is so that these fields better match the specification. This will
      help to prevent edi rejections in the future.
      
      A test is also included to test with a few lines that should / should
      not be adapted in by the format_alphanumeric function. Along with the
      addition of the test, the test partner italian_partner_a's is_company
      field is changed to True, since the partner is a company. The expected
      xml has been altered to match the changes to partner_a.
      
      closes odoo/odoo#89494
      
      Task-id: 2826424
      X-original-commit: 712758fc
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      d7c6033f
    • Dejanae Benton's avatar
      [IMP] release: correct typo in code comment · c336ddda
      Dejanae Benton authored
      
      Fixes odoo/odoo#88866
      
      closes odoo/odoo#89454
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      c336ddda
    • Dejanae Benton's avatar
      [CLA] Dejanae Benton · d2dd7fbd
      Dejanae Benton authored
      Part-of: odoo/odoo#89454
      d2dd7fbd
    • Fabio Barbero's avatar
      [IMP] gamification: improve performance of ranks · 9dc6234e
      Fabio Barbero authored
      
      Purpose
      =======
      Avoid calling _recompute_rank for users that are not affected by the
      newly created/written ranks, by filtering users by karma_min
      
      Task-2746929
      
      closes odoo/odoo#89463
      
      X-original-commit: 3a0562ea
      Signed-off-by: default avatarWarnon Aurélien (awa) <awa@odoo.com>
      9dc6234e
    • Fabio Barbero's avatar
      [FIX] gamification: stop notifying users on intermediate ranks · c0dd1e4f
      Fabio Barbero authored
      Purpose
      =======
      Avoid sending lost of emails for new ranks rank for each user when
      installing gamification module.
      
      Emails are now only sent outside of module installation.
      
      Task-2746929
      
      X-original-commit: 5dc3b3ef
      Part-of: odoo/odoo#89463
      c0dd1e4f
    • Fabio Barbero's avatar
      [FIX] gamification: allow multiple karma ranks to be written · 7ce480b7
      Fabio Barbero authored
      Purpose
      =======
      Make sure write method supports multiple records.
      
      Task-2746929
      
      X-original-commit: 2d86356e
      Part-of: odoo/odoo#89463
      7ce480b7
    • Laurent Stukkens (LTU)'s avatar
      [FIX] project: rename Ancestor into Ancestor Task · 892a0d6a
      Laurent Stukkens (LTU) authored
      
      This commit change the ancertor_id field string to `Ancestor Task`
      
      closes odoo/odoo#89461
      
      Signed-off-by: default avatarXavier <xbo@odoo.com>
      892a0d6a
    • Touati Djamel (otd)'s avatar
      [FIX] mrp: stop all timers when cancelling work order · e37ededc
      Touati Djamel (otd) authored
      
      Steps to reproduce the bug:
      - Create a manufacturing order to produce “Table”
      - Confirm and plan the MO
      - Start the work order
      - Cancel the MO
      
      Problem:
      - The work order is cancelled, but the timers continue to run.
      - "Block", "Unblock" and “Unplan" button should be hidden when MO is cancelled
      
      opw-2817842
      
      closes odoo/odoo#89442
      
      X-original-commit: 56820159
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarDjamel Touati (otd) <otd@odoo.com>
      e37ededc
    • Nicolas Lempereur's avatar
      [FIX] l10n_it_edi: imap seen flag more compatible · 2130fb38
      Nicolas Lempereur authored
      For an imap "PEC server" we will fetch mail and set \Seen flag according to
      current value.
      
      But the way imaplib was used seem to possibly cause an issue on some
      particular mail providers.
      
      Mailing RFC* gives example of adding flags with parenthesis around flag:
      
      eg. "A003 STORE 2:4 +FLAGS (\Deleted)"
      
      but we are sending these command wihtout parenthesis (which seems to be
      working, but apparently not for some providers).
      
      To fix this issue, we change how we use the API to do the same thing
      than in fetchmail module that is a lot more battle tested (and from logs
      is sending flags in parenthesis).
      
      * https://datatracker.ietf.org/doc/html/rfc3501#section-6.4.6
      
      
      
      fixing #89305
      fixing #81443
      opw-2714596
      
      closes odoo/odoo#89379
      
      X-original-commit: 7dd5437a
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      2130fb38
    • Samuel Degueldre's avatar
      [IMP] web: improve core Dialog API · 7c4f200b
      Samuel Degueldre authored
      *: base_automation, iap, web_tour
      
      Previously, when trying to create a custom dialog, one would need to
      extend the base Dialog class and configure it directly on the class,
      using separate templates for the body and footer as necessary. This is
      very unidiomatic owl code, and it is much more natural to simply extend
      Component, and use Dialog at the root of the template, giving it slots
      and props to configure its properties and contents.
      
      This commit changes the dialog API to work as described and adapts code
      that uses it.
      
      closes odoo/odoo#89113
      
      Enterprise: https://github.com/odoo/enterprise/pull/26462
      
      
      Related: odoo/enterprise#26462
      Signed-off-by: default avatarGéry Debongnie <ged@odoo.com>
      7c4f200b
    • Gitdyr's avatar
      [FIX] l10n_dk: fix spelling of "virksomhed" · e9b87c2c
      Gitdyr authored
      
      closes odoo/odoo#87943
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      e9b87c2c
    • Gitdyr's avatar
      [CLA] signature for Butikki · 7bdea694
      Gitdyr authored
      Part-of: odoo/odoo#87943
      7bdea694
    • Yolann Sabaux's avatar
      [FIX] ir_actions: home action restriction · 7c0e93c7
      Yolann Sabaux authored
      
      Steps to reproduce:
      - define a home action for the user
      - delete the action in configuration > Window Action
      - refresh to the home page
      -> id not found
      
      Solution:
      - prevent the deletion of a window action if used as a home action
      
      OPW-2728824
      
      closes odoo/odoo#89420
      
      X-original-commit: b8685836
      Signed-off-by: default avataryosa-odoo <yosa@odoo.com>
      7c0e93c7
    • Swapnesh Shah's avatar
      [FIX] product: show barcode on archived templates · 03c697a1
      Swapnesh Shah authored
      
      Before this commit, Barcode was not displayed on template
      when related product variant is archived.
      
      Here we are making sure that even when a product is
      archived, its barcode is still visible in template.
      
      closes odoo/odoo#89363
      
      X-original-commit: f0c7cde3
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      03c697a1
    • Thibault Delavallée's avatar
      [FW][IMP] mail: add message_id in references to help thread formation · bc8421f0
      Thibault Delavallée authored
      Issue: when using Amazon's SES SMTP service they rewrite the Message-Id of all
      outgoing messages. When someone replies, In-Reply-To contains the SES Message-Id
      which we don't know. Threading is therefore broken. Amazon requires to remember
      new Message-Id and handle it ourself, which is complicated [1].
      
      Possible solution: copy the Message-Id to References in outgoing message as if
      we were pretending that the message is part of a pre-existing thread with
      itself. Since Amazon does not alter References it is kept during transport.
      Replies will therefore contain both Amazon Message-Id and Odoo Message-Id as
      well as original parent Message-Id in case of nested replies.
      
        * ``In-Reply-To``: Amazon Msg-Id
        * ``References``: Odoo Parent Msg-Id Odoo Msg-Id
      
      Task-2643114 (Mail: Message-Id in references to ease thread formation)
      
      [1] https://docs.aws.amazon.com/ses/latest/DeveloperGuide/header-fields.html
      
      
      
      closes odoo/odoo#89328
      
      X-original-commit: bc568747bdf92c6bbca400ce3ba11f6487679f3a
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      bc8421f0
    • Thibault Delavallée's avatar
      [FW][FIX] mail: fixup gateway parent finding · bd8a39d8
      Thibault Delavallée authored
      Followup of odoo/odoo@de7c119e666d108564b3889d1c08e5bf2e4da082 where the parent finding was incorrectly refactored.
      Indeed due to a typo new_parent was not updated. Instead of getting higher in
      the parent chain until the first message, only the first parent's parent was
      considered.
      
      Moreover ``_mail_flat_thread`` is incorrectly taken into account. Due to the
      hereabove issue it was not really impacting discussion channels, as anyway
      parent finding was not working.
      
      New parent management, depending on ``_mail_flat_thread`` is now
        * ``_mail_flat_thread`` True: no free message. If no parent, find the first
          posted message and attach new message to it. If parent, get back to the
          first ancestor and attach it. We don't keep hierarchy (one level of
          threading);
        * ``_mail_flat_thread`` False: free message = new thread (think of mailing
          lists). If parent get up one level to try to flatten threads without
          completely removing hierarchy;
      
      Tests show that parent is correctly flattened on business documents and left
      untouched for channel-like documents.
      
      Task-2822652 (Mail: fix parent message fetch / flattening)
      
      X-original-commit: 86f21c1f384e37a4555b4b1ce4831904c8d40b6f
      Part-of: odoo/odoo#89328
      bd8a39d8
    • Thibault Delavallée's avatar
      [FW][IMP] test_mail: test gateway with multiple references · 4193b1ee
      Thibault Delavallée authored
      Purpose is to test behavior when having multiple references in mail headers.
      We have to check that parent_id is correctly taken (as it impacts internal
      flag), and that flattening is performance when posting the message (always
      attaching to the thread first message being the default behavior).
      
      Note that tests highlighted that flattening is currently a bit broken as it
      does not go up until the first ancestor, which is the expected behavior for
      business documents having ``_mail_flat_thread``. Next commit will fix that.
      
      Task-2822652 (Mail: fix parent message fetch / flattening)
      Task-2643114 (Mail: Message-Id in references to ease thread formation)
      
      X-original-commit: f7d4f1d29213c71e76564c485db2bbecf0bbf37c
      Part-of: odoo/odoo#89328
      4193b1ee
    • nda-odoo's avatar
      [FIX] base: performance of has_group() · c7d54d9e
      nda-odoo authored
      
      Avoid calling with_user() inside method has_group() when possible, as it
      represents a major overhead inside this method which is commonly called. This
      sole optimization speeds up the accounting general ledger by about 6%.
      
      closes odoo/odoo#89206
      
      X-original-commit: e858507a
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      c7d54d9e
    • Arnold Moyaux's avatar
      [REF] mrp: onchange to compute · d7716f07
      Arnold Moyaux authored
      
      This task will:
      - Clean the code (e.g. the production's moves are now created directly)
      - Have the same behavior when creating object in the UI or directly in
      backend
      
      It's mainly on the `mrp.production` object and most of the computed
      stored field are used as default value or act like an onchange on draft
      production. Once the production order is validated, it's only modify
      by direct write
      
      Task-2709753
      
      closes odoo/odoo#83576
      
      Related: odoo/enterprise#24405
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      d7716f07
    • Paolo (pgi)'s avatar
      [FIX] purchase: tests should not rely on demo data · ab9cb62c
      Paolo (pgi) authored
      
      Fixed the TestPurchaseInvoice.test_double_validation and the setupClass
      to use test accounting data in setupClass instead of the demo data.
      
      closes odoo/odoo#89370
      
      X-original-commit: a7546aea
      Signed-off-by: default avatarSteve Van Essche <svs@odoo.com>
      Signed-off-by: default avatarPaolo Gatti (pgi) <pgi@odoo.com>
      ab9cb62c
Loading