Skip to content
Snippets Groups Projects
  1. Nov 30, 2022
    • Florent de Labarre's avatar
      [FIX] purchase, stock : datetime is not correctly converted in date · 91e7364d
      Florent de Labarre authored
      
      With this commit datetime of stock move are correctly converted with the current timezone.
      
      closes odoo/odoo#106849
      
      X-original-commit: 242da76b2763d5add36da6e23d4b1f7e640c72aa
      Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
      91e7364d
    • clesgow's avatar
      [FIX] mrp: Add ACL for users for workcenter capacity · 3095eb4d
      clesgow authored
      
      Add an ACL to allow read-only access for basic users to the workcenter
      capacities. This avoids an error in the bom overview opening with a
      simple MRP "user".
      
      closes odoo/odoo#104893
      
      Related: odoo/enterprise#33613
      Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
      3095eb4d
    • clesgow's avatar
      [FIX] mrp: avoid mixing up route_info · 9ceb6b4f
      clesgow authored
      Take the following BoM :
      Final_product
          Semi_final_1 (Subcontracted)
              Component_1 (Dropshipped to subcontractor)
          Semi_final_2 (Manufactured by us)
              Component_1 (Bought then put in stock)
      
      Component_1 is used in both semi_finals, but in different contexts. For
      Semi_final_1, it's directly dropshipped to the subcontractor, while for
      Semi_final_2 we resupply our stock and then use it from there.
      
      Problem is, since both components are the same, there was no distinction
      made when fetching the data for the resupply methods. So if the first
      case encountered was the dropship (like here), then for Semi_final_2 the
      dropship would be used as well, while we're not in a subcontracting
      context anymore.
      
      Now we consider the parent_bom when fetching and storing the resupply
      data, as different boms can have different contexts.
      
      Part of task-2985735
      
      Part-of: odoo/odoo#104893
      9ceb6b4f
    • clesgow's avatar
      [FIX] mrp{,_subcontracting}: Detect subcontracting rules · feeef868
      clesgow authored
      Before this commit, the rules were checked related to the currently
      selected warehouse. Doing this didn't allow to check the subcontracted
      locations for their related rules (like Drophip subcontractor on order).
      
      The point here is that when no rules are found within the warehouse, it
      checks the subcontracted location of the parent if the parent is
      subcontracted itself.
      
      Part of task-2985735
      
      Part-of: odoo/odoo#104893
      feeef868
    • clesgow's avatar
      [FIX] mrp{,_subcontracting}: Add parent_product in bom overview · c855038c
      clesgow authored
      Before this, when working on a bom with variants, when checking the
      parent from the component / child_bom, it would always take the first
      variant since it used the bom's product_template.
      
      This could lead to incorrect data when working with subcontracting, as
      when another variant from the first would be selected, when fetching
      quantities no parent info would be found as it would seek info from the
      first variant of the bom instead of the correct one.
      
      By doing this, we can now have the right variant and fetch the right
      informations.
      
      Part of task-2985735
      
      Part-of: odoo/odoo#104893
      c855038c
    • clesgow's avatar
      [FIX] mrp: BoM Overview filters display · 4ee3875a
      clesgow authored
      Since the pager div doesn't appear anymore in the DOM when it would be
      empty, the filters buttons (warehouse and display) would be pushed back
      to the end of the flex div.
      
      Part of task-2985735
      
      Part-of: odoo/odoo#104893
      4ee3875a
    • tsm-odoo's avatar
      [FIX] mail: chatter attachments overflow · 73fb78e7
      tsm-odoo authored
      
      Before this PR, posting a message containing an attachment with a long
      name in the chatter would result in the chatter overflowing the main
      window. This is due to the fact that flex items cannot be smaller than
      their content.
      
      This PR fixes the issue by adding the `overflow-auto` class to the
      chatter container in order to override the default `min-width: auto`
      of flex items thus allowing them to be smaller.
      
      closes odoo/odoo#106892
      
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      73fb78e7
    • Nshimiyimana Séna's avatar
      [FIX] crm_iap_enrich: correctly save 'Enrich lead automatically' setting · 2be5cd95
      Nshimiyimana Séna authored
      
      ## Steps to reproduce
      1. navigate to Settings -> CRM -> Lead Enrichment section
      2. change the Lead Enrichment option to "Enrich leads on demand only"
      3. click Save button
      4. wait for system to save and refresh.
      
      You should see that the change you made was not saved.
      
      opw-3063639
      
      closes odoo/odoo#106851
      
      X-original-commit: 0803775e4a156aa6988453edbbaf799730c996b2
      Signed-off-by: default avatarWarnon Aurélien (awa) <awa@odoo.com>
      2be5cd95
    • Stefan-Calin Crainiciuc (stcc)'s avatar
      [FIX] base: cannot specify 24-hour clock format and meridian · c2b8faa1
      Stefan-Calin Crainiciuc (stcc) authored
      
      - Settings > manage languages > english > Set time format to `%H:%M:%S %p`
      > Save
      - Install Planning app > go to list view > Try modifying a time manually
      (without using the widget which pops up).
      
      Issue:
      When trying to save the new time, an error pops up: `Can't include meridiem
      when specifying 24-hour format`.
      
      While parsing the new date, the `luxon` library throws this error to
      prevent wrong hour values, such as `17 AM`.
      
      Fix:
      Prevent the user from inputting both `%H` and `%p` in the same time format
      and display a warning notification.
      
      opw-3038797
      
      closes odoo/odoo#106846
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      c2b8faa1
    • Touati Djamel (otd)'s avatar
      [FIX] product: hide cost label from the view if product with variant · 206e88b0
      Touati Djamel (otd) authored
      The group `“base.group_user”` is added in the view for the field
      `standard_price` while it is already set on the python side:
      https://github.com/odoo/odoo/blob/16.0/addons/product/models/product_template.py#L76
      
      
      this causes an issue in the case of a product with variants,
      the invisible attrs is ignored, the `standard_price` and
      `uom_name` field are hidden, but the label will still be displayed
      
      opw-3076827
      
      closes odoo/odoo#106842
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      206e88b0
    • Victor Piryns (pivi)'s avatar
      [FIX] sale: not change the package type when setting the package qty · acfa94b7
      Victor Piryns (pivi) authored
      
      Current behaviour:
      Changing the package quantity may change the package type,
      leading to an incoherent product quantities in the SOL.
      (For ex: 20 uom in 2 packages of 20)
      
      Expected behaviour:
      When setting the package quantity, don't change the
      package type. If the user wants to change the package type
      they can do it by manually setting it or changing the product_uom.
      
      Steps to reproduce:
      - Install Sale and Inventory
      - Activate Packages in settings
      - Create 2 package types for a product of choice, one of 10, another of 20
      - Create a new SO with that product
      - Set the quantity to 10 (a new package_qty=1 and packaging type of 10 should appear)
      - Save
      - Edit package_qty to 2
      - Observe that we have 20 units of the product, 2 packages of 20,
        instead of 2 packages of 10
      
      Reason for the problem:
      When setting the `product_packaging_qty`, the `product_uom_qty` compute is triggered.
      When `product_uom_qty` changes, it triggers `product_packaging_id`'s compute.
      When `product_packaging_id` is computed, it doesn't trigger `product_package_qty`,
      because it is protected, since we are writing to it.
      
      Fix:
      When we are writing the `product_packaging_qty` and the `product_uom_qty`
      we remove the compute for `product_packaging_id`.
      
      Affected versions:
      - saas-15.2
      - saas-15.3
      - 16.0
      - master
      
      opw-3010703
      
      closes odoo/odoo#106811
      
      X-original-commit: 42c9f7fb2287e4653999d5a5ce010547e9c3712f
      Signed-off-by: default avatarPiryns Victor (pivi) <pivi@odoo.com>
      acfa94b7
    • niyasraphy's avatar
      [FIX] mrp_subcontracting_repair, test_sale_{}: LGPL-3 license · 243d8d66
      niyasraphy authored
      
      closes odoo/odoo#106645
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      243d8d66
    • JF Aubert's avatar
      [FIX] mrp(workorder_hr): fix workorder duration · 8638ec14
      JF Aubert authored
      
      Previously, _intervals_duration (called by _compute_duration)
      sometimes loose the last mrp.workcenter.productivity.
      A fix has been made.
      First, mrp.workcenter.productivity.loss _convert_to_duration
      calculates according to the loss type, we have to take that in account.
      Second, mrp.workcenter.productivity _close badly generates
      performance timers.
      For example, test_mrp_employee_analytic_account generated
      - productive for 1st employee from 10:00 to 11:00
      - performance for 2nd employee from 10:00 to 11:00
      - performance for 2nd employee from 11:00 to 11:00 (! duration = 0)
      Now, the timers are
      - productive for 1st employee from 10:00 to 11:00
      - productive for 2nd employee from 10:00 to 11:00
      which is correct.
      
      closes odoo/odoo#105410
      
      Task: 2985735
      Related: odoo/enterprise#33796
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      8638ec14
    • JF Aubert's avatar
      [FIX] mrp(workorder_hr): fix workorder times · 7dceef12
      JF Aubert authored
      Fix workorder times problems:
      - sum in workorders list view
        (displays numeric value rather than mins:secs)
      - timers sometimes starts at -00:01
      - almost all tablet view actions reset the timer (click burger, ...)
      - clicking pause stops the timer at the next second
      - seconds are lost in employee timers
      
      Task: 2985735
      Part-of: odoo/odoo#105410
      7dceef12
    • Touati Djamel (otd)'s avatar
      [FIX] delivery: raise a UserError if the total weight is 0 · c18064d7
      Touati Djamel (otd) authored
      Steps to reproduce the bug:
      - Install `delivery_dhl`
      - Create a storable product “P1”:
          - make sure the weight of the product is equal to 0
      - create a transfert:
          - Type: delivery orders
          - Add the product “P1”
          - Go to “Additional info” tab and select “DHL” in the carrier field
          - Mark as Todo
          - Validate
      
      Problem:
      A traceback is triggered, because in order to set the shipment details,
      a package should be created, so the `_get_packages_from_picking`
      function is called:
      https://github.com/odoo/enterprise/blob/aed802ee17dba5ebe12b42594503732a2662be68/delivery_dhl/models/dhl_request.py#L166
      
      But as the total weight of the products is equal to 0, the package is
      not created:
      
      https://github.com/odoo/odoo/blob/6b0ab28791f4a29254d294f8a116545d4c124e8b/addons/delivery/models/delivery_carrier.py#L324-L325
      
      then, the result is used without checking if the package has been
      created:
      https://github.com/odoo/enterprise/blob/aed802ee17dba5ebe12b42594503732a2662be68/delivery_dhl/models/dhl_request.py#L185
      
      
      
      Solution:
      If the total products weight is equal to 0, raise a UserError
      
      opw-3076826
      opw-3075562
      
      closes odoo/odoo#106809
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      c18064d7
    • Touati Djamel (otd)'s avatar
      [FIX] delivery: avoid a traceback when calculating the shipping cost · f173300f
      Touati Djamel (otd) authored
      Stpes to reproduce the bug:
      - Install delivery_ups
      - Go to shipping method > UPS BE > Package type
      - Set the max weight to 10 kg
      - Create a product “P1”:
          - Go to inventory tab > weight: 10 kg
      - Create a SO:
          - Add the product “P1”
          - Add shipping
          - Select UPS Be
          - Click on get rate
      
       Problem:
      Traceback is triggered, because we devise a number by an empty list:
      https://github.com/odoo/odoo/blob/6b0ab28791f4a29254d294f8a116545d4c124e8b/addons/delivery/models/delivery_carrier.py#L301
      
      The `last_package_weight` is the result of the modulo of the weight of
      all the products by the maximum weight of a package, in this case it is:
      0 -> 10% 10
      
      We then use this result to calculate the weight of the package,
      but parenthesis have been forgotten and therefore an empty list is
      returned in the case where `last_package_weight` is 0
      
      https://github.com/odoo/odoo/blob/6b0ab28791f4a29254d294f8a116545d4c124e8b/addons/delivery/models/delivery_carrier.py#L298-L300
      
      
      
      opw-3075295
      
      closes odoo/odoo#106780
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      f173300f
    • niyasraphy's avatar
      [FIX] base, hr_recruitment_skills: fix typo · 4e85ee76
      niyasraphy authored
      
      closes odoo/odoo#106798
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      4e85ee76
  2. Nov 29, 2022
  3. Nov 28, 2022
Loading