Skip to content
Snippets Groups Projects
  1. Sep 13, 2023
  2. Sep 12, 2023
  3. Sep 11, 2023
    • Fabien Meghazi's avatar
      [ADD] base: add support for custom functions in imbus & cron_trigger notify · 71b5ffd7
      Fabien Meghazi authored
      
      This patch provides the possibility to implement a custom security layer on top
      of Odoo's bus notification system (and cron live triggering system) which both
      use postgresql's NOTIFY command.
      
      The key addition is the `ODOO_NOTIFY_FUNCTION` environment variable (opt-in),
      which can now define a postgresql function to be called instead of the NOTIFY
      command. This allows for greater flexibility and control over the notification
      and triggering mechanisms within Odoo.
      
      closes odoo/odoo#130370
      
      Signed-off-by: default avatarFabien Meghazi (fme) <fme@odoo.com>
      71b5ffd7
    • Antoine Boonen's avatar
      [IMP] hr_expense: Don't hide taxes on hr.expense when product has cost · 25923e66
      Antoine Boonen authored
      
      Problem
      ---------
      In 15, taxes are hidden from hr.expense when the expense category has a
      cost. They can however be configured and added. The current behaviour is
      counter intuitive.
      
      Objective
      ---------
      Don't hide taxes when product has cost in v15.
      
      Solution
      ---------
      Remove the `hidden` attribute in the expense xml form as well as the
      `groups` attribute.
      
      task-3491868
      
      closes odoo/odoo#134147
      
      Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
      25923e66
    • miad-odoo's avatar
      [FIX] mass_mailing: fix finding duplicate mails · 66f9aa25
      miad-odoo authored
      
      Before the commit, the _get_seen_list() function in the mass_mailing module was
      not able to correctly identify all the duplicate email addresses in a given mass
      mailing. This was because the function chose and used only one way to find an
      email address for each record in the mailing list, even though there are many
      ways to find an email address for a record.
      
      For example, a crm.lead record might have an email address in its partner_id
      field, but it might also have an email address in its email_normalized field.
      This can vary from record to record.
      
      To fix this issue, the _get_seen_list() function was updated to only look at the
      email address to which emails have already been sent, rather than trying to
      fetch it from the record itself. This ensures that all duplicate emails are
      correctly identified and that no duplicate emails are sent in the mass mailing.
      
      Task-3234378
      
      closes odoo/odoo#134867
      
      X-original-commit: dc0ccc19
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      66f9aa25
    • Francesco Ballerini's avatar
      [FIX] mrp: fix typo in mrp_immediate_production_views · 3bee8aa5
      Francesco Ballerini authored
      
      Typo error detected on `/mrp/wizard/mrp_immediate_production_views.xml`.
      It doesn't cause any issue on module installation or updates, but
      it's probably gonna cause issue on view inheritance.
      
      If you can confirm this is unintended typo I will edit commit msg.
      I also detected this on version 15.0 and 16.0.
      
      closes odoo/odoo#134773
      
      X-original-commit: 80e8222f
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      3bee8aa5
  4. Aug 29, 2023
  5. Sep 10, 2023
  6. Sep 08, 2023
  7. Sep 07, 2023
  8. Sep 06, 2023
  9. Sep 05, 2023
    • Abderraouf Ghrissi (abgh)'s avatar
      [FIX] sale_timesheet: default_service_policy not working in product form · f6869bf2
      Abderraouf Ghrissi (abgh) authored
      
      Before this commit:
      - There is a bug in odoo enterprise.
      project.project form view > invoicing notebook > services created using create and edit
      should be configured by default with an 'invoicing policy' set to 'based on timesheets'.
      Technically, while we're using 'default_service_policy' with the right value, we're
      getting a different value in the form.
      
      After this commit:
      - The bug is fixed.
      
      closes odoo/odoo#134360
      
      X-original-commit: fa034b2a
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      f6869bf2
    • Maitri Patel's avatar
      [FIX] calendar: handle singleton exception for sync calendar event · 6ba4a671
      Maitri Patel authored
      This error occurs when recurrence_id has no records when the user tries to
      delete the sync calendar which has recurrent events.
      
      Error: 'Expected singleton: calendar.recurrence()'
      
      See-
      https://github.com/odoo/odoo/blob/15.0/addons/calendar/models/calendar_event.py#L715
      
      
      
      sentry-4367276387
      
      closes odoo/odoo#131155
      
      Signed-off-by: default avatarArnaud Joset (arj) <arj@odoo.com>
      6ba4a671
    • Jinjiu Liu's avatar
      [FIX] website_sale: add conditions to make sure partner's name exists · 593277de
      Jinjiu Liu authored
      Reproduction:
      1. Install Event, Sales, Website, Contacts
      2. Login as Admin, create a new portal user 123, set the password as 123
      3. Go to Contacts, find the created user, add a shipping address, leave
      the name blank
      4. Open another tab login as the portal user, place an order
      5. At the Address step, Edit the billing address, change the name from
      empty to “Test Name”, click next
      5. An error is thrown cause the new name is not equal to empty value
      
      Fix: this fix aimed the conditions we have in the previous PR: https://github.com/odoo/odoo/pull/111708
      This change will allow the user to add a name for shipping address at
      checkout.Without the fix, if you
      change the name of a shipping address, it won’t be able to get through.
      This is because of how we manage the shipping address, e.g. shipping
      address is managed as child partners. For shipping address, the check
      can_edit_vat is always false. See here: https://github.com/odoo/odoo/blob/14.0/addons/portal/models/res_partner.py
      Another check, e.g. if shipping is being edited, is added to make sure
      name/email can be changed for delivery address. For internal user, the
      editing of shipping address is not blocked because of the `share` check.
      But the same condition is used to ensure the consistency in case we
      change how the shipping address is managed in the future.
      
      Note: if the data is '' for name for example, the pre-process will
      convert it to `False`. Thus the edge case that `'' != False` doen't
      exist anymore
      
      Related PR: https://github.com/odoo/odoo/pull/111708
      
      
      
      opw-3126325
      
      closes odoo/odoo#134328
      
      X-original-commit: 38ca3917
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      Signed-off-by: default avatarJinjiu Liu (jili) <jili@odoo.com>
      593277de
    • Yann Papouin's avatar
      [FIX] sale_timesheet: Invalid `read_group` usage · fb47754e
      Yann Papouin authored
      
      `read_group` signature is not respected: the offset integer param is filled with a list
      
      closes odoo/odoo#134265
      
      X-original-commit: d805521d
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      fb47754e
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] sale_timesheet_margin: sale order line cost · cb551051
      Andrea Grazioso (agr-odoo) authored
      
      Set Default UoM on Timesheet Settings page: Hours
      Set [Employee] Timesheet Cost (HR Settings tab): 65.00/hour
      Create a product [TEST] as follows:
      - Product type: service
      - Invoicing Policy: Based on Timesheets
      - Create on Order: Project & Task
      - Unit of Measure: Days
      - Purchase UoM: Days
      - Sales Price: 1.00
      - Cost: 0.00
      Create a sales order
      Add an order line with product [TEST], quantity 1
      Confirm. Project and task will be created
      On the task add a 1 hour timesheet entry for [Employee]
      Save and go back to the SO
      
      Issue: SO line cost is incorrectly computed.
      
      opw-3378688
      
      closes odoo/odoo#133448
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      cb551051
    • tsm-odoo's avatar
      [FIX] mail: fix push to talk key registration · ecb77c94
      tsm-odoo authored
      
      Before this commit, the push to talk key was not correctly
      captured. Indeed, Alt/Control/Shift/Meta was condifered
      twice when present, resulting in an incorrect HotKey registration.
      
      Steps to reproduce:
      - Go a discuss channel
      - Access the call setting menu
      - Try to set your push to talk key to "Ctrl + Alt"
      - The HotKey is incorrect ("Ctrl + Alt + Alt").
      
      task-3058665
      
      closes odoo/odoo#134248
      
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      ecb77c94
    • Adnan Saiyed's avatar
      [FIX] web_editor: unexpected copy paste behaviour of link · db6d65a4
      Adnan Saiyed authored
      
      Current behaviour before commit:
      
      -When pasting copied content from editor inside
      link inserts text with HTML content, in result
      the pasted content seems isolated from the link.
      
      e.g. <a href="#">te[]st</a>
      	+ pasting <h1>123</h1>  <=>
      	<a href="#">te<h1>123</h1>st</a>
      
      Desired behaviour after commit:
      
      -Now only text content is pasted which makes
      pasted content as a part of the link.
      
      e.g. <a href="#">te[]st</a>
      	+ pasting <h1>123</h1>  <=>
      	<a href="#">te123st</a>
      
      closes odoo/odoo#125776
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      db6d65a4
  10. Sep 04, 2023
    • prye-odoo's avatar
      [FIX] hr_holidays: handle tz attribute error if user timezone empty · 2b0f9e39
      prye-odoo authored
      When a user tries to create a leave request without linking an employee
      with the user and without a configured login user timezone, a traceback
      will be generated.
      
      Steps to reproduce:
      - Install the "hr_holidays" module.
      - Create a new user, e.g., "Test user", and login with another browser.
      - Login as an admin user and go to Settings > Users & Companies.
      - Search for "Test user" and set Timzone as empty.
      - Go to the Time Off menu and create a leave request; after that, a traceback
      will be generated.
      Error: AttributeError: 'bool' object has no attribute 'upper' 
      
      When a user tries to create a leave request without linking an employee with the
      user and without a configured login user timezone, the
      _get_start_or_end_from_attendance() function of the "hr.leave" object will call
      at that time timzone not getting.
      Code reference:
      https://github.com/odoo/odoo/blob/15.0/addons/hr_holidays/models/hr_leave.py#L111
      
      
      
      Sentry-4441512696
      
      closes odoo/odoo#133955
      
      Signed-off-by: default avatarSofie Gvaladze (sgv) <sgv@odoo.com>
      2b0f9e39
    • Nicolas Bayet's avatar
      [FIX] web_editor: prevent creation of RTCPeerConnection when offline · 8f9a3e1e
      Nicolas Bayet authored
      
      Before this commit, when the browser was offline and when an attempt
      to make a RTCPeerConnection was made, a traceback was raised by
      firefox:
      
      > InvalidStateError: Can't create RTCPeerConnections when the network is
      > down
      
      This commit prevents the creation of the RTCPeerConnection when the
      browser is offline.
      
      task-3186872
      
      closes odoo/odoo#133770
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      8f9a3e1e
Loading