Skip to content
Snippets Groups Projects
  1. Aug 10, 2023
  2. Aug 09, 2023
    • Julien Alardot (jual)'s avatar
      [FIX] hr_expense: adding expense after post · 3b3c7dca
      Julien Alardot (jual) authored
      
      As the move is posted,
      no editing should ever
      be allowed to the expense sheet
      
      task-3458179
      opw-3446247
      
      closes odoo/odoo#131173
      
      Signed-off-by: default avatarHabib Ayob (ayh) <ayh@odoo.com>
      3b3c7dca
    • niyasraphy's avatar
      [FIX] website_forum: show votes from same forum · ae33d2e3
      niyasraphy authored
      
      before this commit, if the user profile is opened
      from a particular forum, the votes tab is displaying
      the votes from all the forums for this user.
      
      where us, the questions and answers tab is filtering
      the data based on the selected forum.
      
      after this commit, the data displayed in the votes
      tab will also be filtered based on selected forum,
      similar to questions and answers tab.
      
      closes odoo/odoo#127023
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      ae33d2e3
    • Nshimiyimana Séna's avatar
      [FIX] l10n_de: allow tax other than account's default on line · 90de1797
      Nshimiyimana Séna authored
      
      Steps to reproduce
      ------------------
      * install l10n_de
      * switch to a german company
      * create an invoice
      * add a line such that the account's default tax is different from the
        tax set on the line (ex, account: `8400 Erlöse 19% USt` and
        tax: `7% Umsatzsteuer`)
      
      Attempt to confirm the invoice, you should see that you can't. The
      system requires the account's default tax to be the same as the tax set
      on the line. This should not be the case. It's a practice in Germany to
      link a tax to an account like this, but it's not a legal requirement.
      
      opw-3324323
      
      closes odoo/odoo#127238
      
      Signed-off-by: default avatarHabib Ayob (ayh) <ayh@odoo.com>
      90de1797
    • Andrius Laukavičius's avatar
      [FIX] hr_expense: improve computed field performance · a98a8f54
      Andrius Laukavičius authored
      
      If you have large amount of product.template records (e.g. over 40k),
      `hr_expense` module can't be installed as you would get MemoryError. It
      would consume all memory while computing `can_be_expensed` field.
      
      For that, using `_auto_init` to make it less of a memory hog.
      
      closes odoo/odoo#109729
      
      Signed-off-by: default avatarHabib Ayob (ayh) <ayh@odoo.com>
      a98a8f54
    • Thomas Lefebvre (thle)'s avatar
      [FIX] membership: add payment terms on the invoice · 61b5dd38
      Thomas Lefebvre (thle) authored
      
      Versions:
      ---------
      - 14.0
      - 15.0
      
      Steps to reproduce:
      -------------------
      - in Members app, add a membership product;
      - add a "Payment Terms" on a contact (Sales & Purchase tab);
      - in Membership tab click on "Buy Membership";
      - add the membership product and invoice;
      
      Issue:
      ------
      There is no payment term on the invoice.
      
      Cause:
      ------
      In the invoice creation flow, the following logic is not triggered:
      ```py
      if self.is_sale_document(include_receipts=True) and self.partner_id:
      	self.invoice_payment_term_id = self.partner_id.property_payment_term_id or self.invoice_payment_term_id
      ```
      Consequently, we have no invoice_payment_term_id.
      
      Solution:
      ---------
      Specify `invoice_payment_term_id` in the values used for invoice creation.
      
      Note:
      -----
      This FIX solution only handles the invoice creation
      from the membership module, to be as non-invasive as possible.
      
      In version 16.0, this is handled by the account module,
      which has made the `invoice_payment_term_id` field computed and dependent on `partner_id`.
      
      opw-3382398
      
      closes odoo/odoo#130998
      
      Signed-off-by: default avatarAndrea Grazioso (agr) <agr@odoo.com>
      61b5dd38
  3. Aug 08, 2023
  4. Aug 07, 2023
    • Ahmed Mohamed's avatar
      [CLA] 0xSaltyHash Signature · f6a996aa
      Ahmed Mohamed authored
      
      closes odoo/odoo#131005
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      f6a996aa
    • duybq86's avatar
      [CLA] signature for DuyBQ · 0a1d7d71
      duybq86 authored
      
      closes odoo/odoo#130977
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      0a1d7d71
    • stcc-odoo's avatar
      [FIX] website_sale: make website_sequence unique · 51ac0092
      stcc-odoo authored
      
      Steps to reproduce:
      
      - Install website_sale
      - Go to website shop in the frontend
      	- Login, Edit
      	- Click on 3rd or 4th kanban item
      	- Push down
      
      Issue:
      
      The item goes to the end of the list instead of moving one element to
      the right/down. Pushing an element down searches for the next element
      with a higher `website_sequence` and places the current element right
      after, by switching their sequence values.
      
      Normally the logic works fine, but the problem arises when the
      `website_sale` module is installed, when records with
      `website_sequence = NULL` are set to the same default value, namely
      10000. Then, when an item with `website_sequence = 10000` is pushed
      down, it will skip many items, before finding one with a higher
      `website_sequence`.
      
      Solution:
      
      When updating records with `website_sequence = NULL`, assign an unique
      sequence to each one. We can set the `website_sequence` relative to the
      inverse of the id to ensure that the order on the shopping page remains
      the same as it was prior to the fix.
      
      opw-3318867
      
      closes odoo/odoo#127982
      
      Signed-off-by: default avatarStefan-Calin Crainiciuc (stcc) <stcc@odoo.com>
      51ac0092
  5. Aug 06, 2023
  6. Aug 04, 2023
    • Aurélien (auma)'s avatar
      [FIX] web_editor: fix uneditable block when height > 10000px · 493d31a9
      Aurélien (auma) authored
      
      When applied, this commit will restore the edition of a block when
      the content has a height > 10000px.
      
      Steps to reproduce:
      1) Go to a runbot
      2) Go to a blog or on the homepage
      3) Enter edit mode
      4) Add some text in one bloc with a total height above 10000px
      5) The text will be uneditable on the top
      
      Current behavior:
      If the text is too important in one block (more than 10000px),
      the text will be uneditable
      
      Expected behavior:
      The text should be accessible and editable even if the block
      has too much content
      
      opw-3393570
      
      closes odoo/odoo#127719
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      493d31a9
    • Jinane Maksoud's avatar
      [FIX] account: avoid infinite loop when creating taxes of type 'group' · d20f2e2b
      Jinane Maksoud authored
      
      When updating taxes, creation of taxes of type 'group' does not
      work correctly if either a child or the parent itself has been deleted.
      Indeed the creation of _generate_tax() method suppose that both the parent
      and the child needs to be created in the same batch while we can have
      databases where one of those already exists and will go in the 'update'
      and not 'creation' part of the script.
      
      closes odoo/odoo#130407
      
      Signed-off-by: default avatarOlivier Colson (oco) <oco@odoo.com>
      d20f2e2b
  7. Aug 03, 2023
  8. Aug 02, 2023
  9. Aug 01, 2023
    • Matheus Leal Viana (malv)'s avatar
      [FIX] account: display amount due field in boxed layout · f71626fa
      Matheus Leal Viana (malv) authored
      
      Versions:
      ---------
      - 14.0+
      
      Steps to reproduce:
      -------------------
      1. Settings -> Configure document layout
      2. Select the Boxed layout
      3. Go to Invoices -> create a new invoice and register payment
      4. Click on Preview
      5. The field “Amount due” is in the wrong color and barely visible
      
      Issue:
      ------
      The field “Amount due” is in the wrong color and barely visible in
      invoice boxed layout
      
      Cause:
      ------
      The issue is happening because we have `<strong>`  before the text
      ”Amount due” and it changes the font color to gray because of the CSS definitions
      
      Solution:
      ---------
      We need to make the text bold in a different way, to do it we can use the bootstrap
      class font-weight-bold, this way we keep it bold and do not break the colors
      
      OPW-3374092
      
      closes odoo/odoo#128451
      
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      f71626fa
    • Yash Vaishnav's avatar
      [FIX] hr_timesheet: fix task_id field records when creating a timesheet · 174612e4
      Yash Vaishnav authored
      
      To reproduce the issue, follow these steps:
      
      1. Install the Timesheet and Project.
      2. From the settings menu, create a new company.
      3. Create a project using the newly created company(e.g. New Company) and add
         a task to it.
      4. Open the Timesheet application and create a new timesheet.
      5. In the timesheet, select the project created in step 3, and observe that the
      dropdown for tasks does not display any task.
      
      Cause for this issue:
      -The timesheet application has a domain set for the task field where the company
      associated with the task_id should be the same as the company selected in the
      current environment.
      -However, when a new project is created with a 'New Company', the tasks
      associated with it also have the  'New Company' assigned to them. On the other
      hand, the current environment has a default company called 'Your Company'
      associated with it.
      -Therefore, due to this domain setting, the task field does
      not display any tasks since there are no tasks associated with the
      'Your Company' in the current environment.
      
      Fix:
      Since the cause of the issue is related to the company domain set in the task
      field, we can solve it by removing it from the domain.
      
      task-3323027
      
      closes odoo/odoo#122631
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      174612e4
    • hupo-odoo's avatar
      [FIX] account: auto post valid invoices · 5a7fa16c
      hupo-odoo authored
      
      Previously, when account moves were set to auto post, and the cron was triggered to post them, if a single invoice triggered a UserError, none of them were posted (User error might be for example missing required field to post, archived journal, inactive currency, ...). This commit enables to post all valid invoices. The invoices that could not be posted are now visible on the accounting dashboard on their respective journal card with the 'to check' attribute, and a note is written on the chatter of the problematic invoices, describing the reason why the move could not be posted.
      
      For performance reasons, we lowered the number of moves that can be posted in a single batch. This way, if a move among a batch cannot be posted, all moves of this batch must be handled one by one. Doing batch of 100 is already the case in 16.0
      
      task-3244310
      
      closes odoo/odoo#128420
      
      Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
      5a7fa16c
  10. Jul 31, 2023
    • Victor Piryns (pivi)'s avatar
      [FIX] web: don't apply tz on daterangepicker input field · 919beb75
      Victor Piryns (pivi) authored
      
      Issue:
      When opening the daterangepicker, but not modifying anything and
      closing it, and then discarding the record, the timezone is
      reapplied on the input. (value in DB is correct).
      
      Steps to reproduce:
      - Install an app that has a daterange field (ex: FSM in 14, Project
        for 15->saas-15.2)
      - Edit the daterange, don't change anything, close it, discard the
        record.
      - Observe the timezone has been reapplied on the input value.
      
      Cause:
      When opening the daterangepicker, the initial dates read from the
      input field were already localized based on the tz, but the
      daterangepicker object expect it to receive datetime in utc.
      
      Fix:
      Parse the input and make sure it's in utc.
      
      Affected versions:
      - 14.0
      - 15.0
      - saas-15.2
      
      opw-3342274
      
      closes odoo/odoo#127962
      
      Signed-off-by: default avatarBruno Boi (boi) <boi@odoo.com>
      919beb75
    • Antoine Dupuis (andu)'s avatar
      [FIX] l10n_eu_oss: Create OSS account with correct tags · f541ef90
      Antoine Dupuis (andu) authored
      
      Bugfix. When installing l10n_eu_oss with l10n_de_skr03, an OSS account
      '17010 Unsatzsteuer 19% OSS' is created. However, this account has
      no account tags set on it, so it gets left out from the Balance Sheet
      report. (Note that in Germany, due to there being two CoAs, the Balance
      Sheet report still works using account tags.)
      
      The solution: when creating the OSS account, re-use the account tags
      of the account we are copying.
      
      closes odoo/odoo#130185
      
      Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
      f541ef90
  11. Jun 08, 2023
  12. Jul 30, 2023
  13. Jul 28, 2023
  14. Jul 27, 2023
    • Benjamin Vray's avatar
      [FIX] website: fix add menu item dialog traceback · c71af144
      Benjamin Vray authored
      Steps to reproduce the bug:
      
      - Website application
      - Go to Website
      - Go to menu "Pages"
      - Click on "Edit Menu"
      - Click on "Add Menu Item"
      - Bug: This leads to a traceback.
      
      This bug was introduced by the commit [1], where we do a
      "querySelectorAll" on the anchor selector element, which doesn't
      actually exist in the "Add Menu Item" dialog. The code related to adding
      an anchor shouldn't be executed in this modal. This was changed in
      versions higher than 14, where we separated the code used in the
      "Add Menu Item" dialog from the code used for editing links in edit
      mode.
      
      In this commit, we fix this issue minimally by adding a "return"
      statement if the anchor selector element doesn't exist.
      
      [1]: https://github.com/odoo/odoo/commit/c9dbfd35ffda80f0ad07288f13ce9d0dde9591f2
      
      
      
      opw-3422898
      
      closes odoo/odoo#129710
      
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      c71af144
  15. Jul 26, 2023
  16. Jul 25, 2023
    • Thibault Delavallée's avatar
      [FIX] phone_validation: add missing translation · 59669e99
      Thibault Delavallée authored
      
      An action name was not translated.
      
      closes odoo/odoo#129508
      
      Related: odoo/enterprise#44533
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      59669e99
    • Thibault Delavallée's avatar
      [IMP] test_mail{..mailing}: improve tooling (recipient / email check) · ab42c572
      Thibault Delavallée authored
      Improve low-level checks of recipients in mail asserts. Sometimes 'email_to'
      cannot be easily deduced from given input (partners, records customers, ...)
      when some record -> email transformations are involved e.g. when dealing
      with multiple emails input, double encapsulation, ...
      
      Those tools are about to be used in upcoming tests and fixes.
      
      Task-3438381 (TestMail: backport tools)
      Prepares Task-2612945 (Mail: Defensive email formatting)
      
      Part-of: odoo/odoo#129508
      ab42c572
    • Thibault Delavallée's avatar
      [IMP] test_mail{..mailing/full}: backport tooling improvements · 66d79551
      Thibault Delavallée authored
      PURPOSE
      
      Purpose of this commit is to backport some improvements done in mail testing
      tools done in newer versions. Some of them are required for incoming tests
      to be added, other just to try to ease writing tests across versions.
      
      SPECIFICATIONS
      
      Partial backport of odoo/odoo@94208cb8b470bda745f7cbb6bc386f44d7bf14ad
      
      Improve finding outgoing mails and emails when batch methods (mass mailing)
      create similar emails, that can be distinguished notably by the subject
      in addition to from / to.
      
      Partial backport of odoo/odoo@c98f259736b5aa9c37a3580b2dad5795e8d5f6df
      
      Add a method to check MailMail, based on a given record. When having duplicates
      to differentiate in a given mailing, having just recipients is not sufficient
      as multiple emails may match a given recipients list. Checking model / res_id
      is another method for finding emails.
      
      Partial backport of odoo/odoo@a3e404e17ea36447e0bbe5f92aef94e26c299366
      
      Add some information and values propagation in some custom asserts in mail
      test tooling.
      
      Partial backport of odoo/odoo@b915617569c1de1ddef8c116aa1f7c9f66037598
      
      Allow to return <mail.mail> records and found outgoing emails when using
      asserts. It eases doing checks in some specific tests e.g. checking
      notification layout usage in emails. Indeed this is quite low level and
      does not really deserves its own assert tooling methods.
      
      Partial backport of odoo/odoo@bbf4783ac68f296dd028b46aff882b4187a0f9fb
      
      Improve checks and asserts done when asserting content of produced
      mailing content (mails, traces, ...).
      
      Task-3438381 (TestMail: backport tools)
      Prepares Task-2612945 (Mail: Defensive email formatting)
      
      Part-of: odoo/odoo#129508
      66d79551
Loading