Skip to content
Snippets Groups Projects
  1. Mar 31, 2023
  2. Mar 30, 2023
    • Victor Piryns (pivi)'s avatar
      [FIX] hr_timesheet: timesheet uom fallback when AAL's company is False · b39642bf
      Victor Piryns (pivi) authored
      
      Current behaviour:
      When creating a timesheet, if in the vals passed the AAL doesn't
      have a company (possible since it's not required), then the `uom`
      of the timesheet is False, which doesn't make sense.
      
      Expected behaviour:
      The timesheet `uom` should fallback on the uom of the company
      of the project.
      
      Steps to reproduce:
      - Install hr_timesheet, Accounting
      - Activate the AAL in the settings
      - Create a project with an AAL
      - Remove the company on the AAL of the project
      - In that project create a task and log some timesheet.
      - `uom` field should be empty
      
      Reason for the problem:
      When setting the `product_uom_id` in the vals when creating/writing
      a timesheet, we just take the `project_time_mode_id` on the company
      linked to the AAL. The problem is that the company on an AAL is not
      a required field, so it can be `False`, leading the setting the val
      for `product_uom_id` to `False`.
      
      Fix:
      In case the AAL has no company, we get the `uom` from the company
      linked to the project.
      
      Affected versions:
      - 14.0
      - 15.0
      - saas-15.2
      - 16.0
      - saas-16.1
      - saas-16.2
      - master
      
      opw-3245671
      
      closes odoo/odoo#117012
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      b39642bf
    • Mylyna Hy's avatar
      [FIX] coupon: writes on empty & multiple records · da88ad08
      Mylyna Hy authored
      
      Problem:
      When doing a write on an empty recordset from coupon programs,
      a traceback error about tuple index out of range is thrown.
      
      When doing a write on multiple records, it's not guaranteed to have the
      same (discount_line_product_id, reward_id) pair per record.
      Thus, it's not correct to use the reward_id of the first record and
      apply it to all records.
      
      Solution:
      Pass in self as a condition to check whether self is empty or not.
      The method should just return res if self is empty.
      
      For each coupon program in self, update its discount_line_product_id to
      its respective reward_id.display_name
      
      Steps to Reproduce in Runbot14:
      1. Install Sales & Coupons
      2. Enable Coupons & Programs in Settings
      3. Create a server action to do a write on an empty recordset
      ex. env['coupon.program'].write({'discount_fixed_amount': 0})
      4. Create a server action to do a write on multiple records
      
      opw-2658794
      
      closes odoo/odoo#116096
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      da88ad08
    • Rodrigo Serrano's avatar
      [CLA] Update Vauxoo's CLA · 7af8c2cb
      Rodrigo Serrano authored
      
      Incorporate Rodrigo Serrano (Rodrigosu_Vauxoo) as Vauxoo's contributor.
      I confirm I have signed the CLA and read the PR guidelines at:
      www.odoo.com/submit-pr
      
      closes odoo/odoo#117087
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      7af8c2cb
    • Julien Van Roy's avatar
      [FIX] account_edi_ubl_cii: create partner at import if vat · 710714cd
      Julien Van Roy authored
      
      When importing an electronic invoice, we only want to create the partner
      when the vat and the name were retrieved.
      
      closes odoo/odoo#114900
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      710714cd
  3. Mar 29, 2023
    • qsm-odoo's avatar
      [FIX] portal: use proper muted color for portal chatter published dates · 29d69132
      qsm-odoo authored
      
      The color that was used for portal chatter published dates was the muted
      color that we use at some places in the backend. The portal screens
      being frontend screens, it of course did not work with all website color
      schemes.
      
      This simply uses the `$text-muted` color to fix the issue. This probably
      needs refactoring in master to avoid those extra CSS rules that could
      simply be gone with proper bootstrap XML structures.
      
      opw-3146164
      
      closes odoo/odoo#116968
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      29d69132
    • Paolo Gatti (pgi)'s avatar
      [FIX] l10n_it_edi_sdicoop: Revert retrigger · 5ee53342
      Paolo Gatti (pgi) authored
      The trigger that downloads FatturaPA used the `_trigger` function only available in Odoo 15.
      This means that if we manually re-trigger, each iteration will have less time before timeout and will eventually do.
      So, we revert the change in Odoo 14.
      
      Reversal of odoo#116373
      https://github.com/odoo/odoo/pull/116373
      
      
      
      closes odoo/odoo#116731
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      5ee53342
    • niyasraphy's avatar
      [FIX] website_profile: show + only when gained karma is positive · d4068589
      niyasraphy authored
      
      Before this commit, in the website profile frontend, if we filter the users
      using 'This week' or 'This month' filters we always get a '+' displayed before
      the karma gain.
      
      If user gained negative karma, lets say -500, currently it displays as follows
      --> +-500 , instead of -500.
      
      After this commit, if the gained karma during the period is it will show
      -500 instead of +-500.
      
      closes odoo/odoo#114506
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      d4068589
    • Stefan-Calin Crainiciuc (stcc)'s avatar
      [FIX] sale_stock: customer reference displays properly · a4859993
      Stefan-Calin Crainiciuc (stcc) authored
      
      Steps to reproduce:
      
      - Install Sales, Inventory
      - Sales > Create quotation > Fill data > Other Info tab >
      Customer Reference = *insert very long string here* > Confirm
      - Click on delivery stat button > Print > Delivery Slip
      
      Issue:
      
      The customer reference overlaps with the other information in the same row.
      In the resulting XML there are two nested divs with `class="row"`.
      
      Solution:
      
      Remove the row div in the derived xml.
      
      opw-3121097
      
      closes odoo/odoo#116681
      
      Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
      a4859993
    • Mahamadasif Ansari's avatar
      [FIX] survey: consider question as normal if question selection is random · 73552632
      Mahamadasif Ansari authored
      
      Currently in the survey:
      - If we have a conditional question and the question selection mode is
        random and we select the question layout as one page with all questions
        or one page per section, the conditional question is not visible. This
        happens because the  random mode condition is ignored.
      - If we have a conditional question and the question selection mode is random
        and we select the question layout as one page per section, the traceback is
        generated when we start the survey. This is because it is trying to get value
        from the "selected_answer", which does not exist in random mode.
      
      Expected behaviour is If the question selection mode is random, the conditional
      questions are considered normal and visible and do not generate a trace back if
      the question layout is one page per section.
      
      This commit fixes the above issue by adding a condition that treats
      the conditional question as a normal question when the question
      selection mode is random.
      
      task-3142209
      
      closes odoo/odoo#111171
      
      Signed-off-by: default avatarWarnon Aurélien (awa) <awa@odoo.com>
      73552632
    • Laurent Smet's avatar
      [REV] account: Revert https://github.com/odoo/odoo/commit/687f479297fcaa047cd26a34883e7de11b3d3dea · 61d3b9d7
      Laurent Smet authored
      
      When creating an invoice from e-commerce, the invoice is not sent by mail but the user must be able to see it from the portal.
      
      closes odoo/odoo#116867
      
      Signed-off-by: default avatarOlivier Colson (oco) <oco@odoo.com>
      61d3b9d7
  4. Mar 28, 2023
    • Loan (LSE)'s avatar
      [FIX] hw_drivers: Avoid duplicated actions execution · fbea7227
      Loan (LSE) authored
      Before this commit:
      Assuming we have a "Shipping Labels Printer" set on an operation type.
      Assuming we also have a delivery carrier which send Label through the chatter of this picking type (like DHL or BPost).
      If we have several sessions connected with the same user (author of the chatter message), for examples, on different devices.
      Each session will send the same IoT request to print the label (as the code rely on the bus).
      
      In consequences, the same label will be printed multiple times
      
      After this commit:
      The label is print only once
      
      Associated enterprise PR: https://github.com/odoo/enterprise/pull/36904
      
      
      
      opw-3081423
      
      closes odoo/odoo#112355
      
      Related: odoo/enterprise#36904
      Signed-off-by: default avatarSens Loan (lse) <lse@odoo.com>
      fbea7227
    • David's avatar
      [FIX] sale_coupon: prevent sending coupon message on failed sale confirm · 14103b62
      David authored
      
      There can be multiple causes that could prevent a sales order gets
      confirmed when we push the *Confirm* button. This can be common when
      extension modules come to play.
      
      The simplest way to reproduce it (no extra modules needed) would be to
      make an automated action on sale.order with a criteria that could avoid
      the confirmation throwing a UserError.
      
      The coupon email would be sent anyway as we can't rollback a mail
      sending once it's gone away but it wouldn't be valid as the process
      stopped after it.
      
      So we want to prevent sending that mail if the sale.order can't be
      confirmed.
      
      TT42124
      
      closes odoo/odoo#116817
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      14103b62
    • niyasraphy's avatar
      [FIX] stock: typo in user group · 59d0f7f4
      niyasraphy authored
      
      before this commit, for the company_id field
      the user groups given was base.main_company,
      such a group is not existing in the system
      
      after this commit, the group will be changed
      to base.group_multi_company from base.main_company
      
      closes odoo/odoo#116793
      
      Related: odoo/enterprise#38871
      Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
      59d0f7f4
    • niyasraphy's avatar
      [FIX] base: prevent copying of contact tag partners · 1ffc0471
      niyasraphy authored
      
      before this commit, on duplicating a contact tag
      will duplicate the assigned partners also.
      
      suppose if we have a partner A with tag B assigned,
      and then we duplicate tag B and create new tag C,
      the newly created tag is automatically getting
      assigned to partner A.
      
      after this commit, the copy is set to False for
      partner_ids field in tag and then the partners
      wont be copied on duplicating a tag
      
      closes odoo/odoo#116632
      
      Signed-off-by: default avatarJulien Castiaux (juc) <juc@odoo.com>
      1ffc0471
  5. Mar 27, 2023
  6. Mar 26, 2023
  7. Mar 24, 2023
  8. Mar 23, 2023
  9. Mar 22, 2023
    • Yolann Sabaux's avatar
      [FIX] base: allow printing one pdf even if damaged · abe0b2da
      Yolann Sabaux authored
      Steps to reproduce:
      - have a damaged pdf (such as in the ticket)
      - Create Bill B and attach it to it
      - in the list view of bills select multiple bills
      - Print - Original Bills
      -> Error => Ok
      - Select only the Bill B
      - Print - Original Bills
      
      Issue:
      You cannot print only one invoice
      
      Cause:
      Since https://github.com/odoo/odoo/commit/266a8e2a8abf936d5fbd45752ddf492d92e6a397
      
      
      we are checking if the PDF's are readable before trying to merge them.
      But in this case, since there is only one PDF, we don't want to
      merge it
      
      Solution:
      Skip the readable_pdf check for only one pdf
      
      opw-3142646
      
      closes odoo/odoo#114576
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      abe0b2da
    • imanie383's avatar
      [FIX] payment: bootstrap classes in processing page · 4892bc5c
      imanie383 authored
      
      Odoo 14 uses BS v4.3.1
      but `col-sm-offset-3` is a is BS class version 3 causing
      a error in the message alignment because the offset in BS
      4 is `offset-sm-3`
      
      closes odoo/odoo#116142
      
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      4892bc5c
    • niyasraphy's avatar
      [FIX] website_forum: assign value for computed 'karma_flag' field · bfa3f2d1
      niyasraphy authored
      
      Before this commit, the compute method was not returning the value for the
      field karma_flag field, and thus it was returning compute method failed to
      assign value error.
      
      After this commit, the compute method will return correctly set the value
      for karma_flag field from the forum.
      
      closes odoo/odoo#116141
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      bfa3f2d1
    • Benjamin Vray's avatar
      [FIX] website: fix navbar position and alignment options · 3eaab4e8
      Benjamin Vray authored
      This commit fixes several bugs with the navbar and the header templates:
      
      - The "right" alignment options didn't work with most headers. This was
      due to a missing CSS rule.
      
      - The "right/left" alignment option was reversed with the "vertical"
      header template.
      
      - The navbar collapse style was broken with the "Hamburger Full" header
      template.
      
      - This commit hides the alignment options in cases where they have no
      effect ("Hamburger Full" or "Magazine" header template + not
      "off-canvas"). It also changes the options label to "Mobile Alignment"
      when the alignment only impacts the mobile view (since this commit =>
      [1], the "alignment" option no longer only impacts the mobile view,
      depending on the templates, it can also impact the "desktop" view).
      
      - The text section of the "Magazine" header template had no background
      color (It was transparent after scrolling the page).
      
      - The "off-canvas" navbar was not positioned correctly with several
      header templates (e.g. "Boxed" header template).
      
      [1]: https://github.com/odoo/odoo/commit/2a1aa808e939eeaa3caec6a1a82e19f023f1d010
      
      
      
      opw-2951315
      
      closes odoo/odoo#106764
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      3eaab4e8
Loading