Skip to content
Snippets Groups Projects
  1. Sep 16, 2022
    • Demesmaeker's avatar
      [FIX] sale_product_matrix: error in matrix tour · 5ccc7dfc
      Demesmaeker authored
      
      Following the steps that changed every quantity in a matrix, the next
      step was triggered after at least one sale order line's quantity was
      changed. Due to the number of lines created, one of the so lines was
      sometimes not updated before the next step, which produces an error in
      the final sale_count.
      
      In order to check the total and ensure every line was updated, we set
      the partner sooner in the tour, which in turn sets the pricelist used to
      get the price of each line. Thus allowing a check on the subtotal.
      
      Backport of commit-af1e67aa2c6c676479ee4ea73106bcabd20c621e
      
      closes odoo/odoo#100301
      
      X-original-commit: e0461e1d
      Signed-off-by: default avatarMorgane Demesmaeker <edm@odoo.com>
      5ccc7dfc
    • Stanislas Sobieski's avatar
      [FIX] base: avoid indexing attachment on copy · 3d59cc84
      Stanislas Sobieski authored
      
      When sending a mass mailing with a pdf attachment, the ir.attachment
      is copied in the mail.composer for each email. Spending time and
      resources in the indexing of the pdf. On copy that value is already in
      the vals. This is especially true when attachment_indexation is
      installed, processing the pdf documents can be costly with pdfminer.
      
      It could also be done by overwriting the copu from ir_attachment but it
      could happen a misuse of mass create of ir.attachment with the same file
      has the same issue
      
      closes odoo/odoo#99856
      
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      3d59cc84
    • nouraellm's avatar
      [FIX] stock: fix todo filter for product moves · 27cd3c08
      nouraellm authored
      
      Steps to reproduce:
      - Create a transfer and choose whatever operation
      - Enable detailed operations option for the operation
      - Check availability and set quantities
      - Cancel the transfer then Go to Product Moves
      
      Current behavior:
      - todo filter is broken, it shows canceled moves
      
      Desired behavior:
      - Show only moves that are assigned or waiting
      
      - Task id: #2981249
      
      closes odoo/odoo#100292
      
      X-original-commit: 49c8351f
      Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
      27cd3c08
  2. Sep 15, 2022
    • Didier (did)'s avatar
      [FIX] mail,hr: fix performRpcRead on user model · 95d3f4b0
      Didier (did) authored
      
      Fields param is actually not a kwargs. This cause a stack trace when opening a chat window (other than a chat with yourself) from a Kanban user avatar icon.
      
      closes odoo/odoo#100259
      
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      95d3f4b0
    • Abdelouahab (abla)'s avatar
      [FIX] product_expiry: fix expiration date on stock move line · f1b0e6e6
      Abdelouahab (abla) authored
      
      To Reporduce
      =============
      - Install inventory, purchase and product_expiry
      - Create a new storable product that is tracked by lots or serial numbers and expiration date and set expiration days to a value
      - Go to inventory > configuration > Warehouse Management > Operations Types
      - In “San Francisco: Receipts” > Enable "Create New Lots/Serial Numbers"
      - Create a new RFQ > select the created product > Confirm the order
      - Click on “Receipt”
      - Click on the icon with 3 bars (last thing on line) to open Detailed Operations view
      - add a line and set a `lot/serial Number`
      - from the same view open the `lot/serial number` wizard and edit the expiration the date
      - save/confirm
      
      Problem
      =======
      The expiration date on Detailed Operations doesn't change
      
      Solution
      =========
      to solve the issue a condition in compute method was corrected
      
      opw-2937438
      
      closes odoo/odoo#97898
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      f1b0e6e6
    • Raphael Collet's avatar
      [FIX] core: remove confused log message about existing index · fe8d0024
      Raphael Collet authored
      
      When a module extends model 'base', the database schemas of all models are
      checked, including indexes.  And a log message appears for "unexpected index
      mail_message_subtype_id_index on table mail_message_subtype".  The index indeed
      exists, but not for the table mentioned in the message.  The ORM actually makes
      a confusion between:
       - the index mail_message_subtype_id_index for subtype_id on table mail_message
       - the index mail_message_subtype_id_index for id on table mail_message_subtype
      
      The fix consists in logging the message about the unexpected index only if the
      index is on the expected table.
      
      closes odoo/odoo#100217
      
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      fe8d0024
    • jbw-odoo's avatar
      [FIX] l10n_it_edi : invoice template node order · 71da80de
      jbw-odoo authored
      
      The RappresentanteFiscale and CessionarioCommittente nodes must be in this order in the invoice xml. The RappresentanteFiscale node is only added if the company has a tax representative configured. In that case, before this fix, submitting an invoice to the SDI (Italian tax agency) would not go through and generate an error :
      The invoice has been refused by the Exchange System
      File non conforme al formato : Invalid content was found starting with element 'RappresentanteFiscale'. One of '{TerzoIntermediarioOSoggettoEmittente, SoggettoEmittente}' is expected.
      
      How to reproduce :
      - Install l10n_it_edi_sdicoop
      - Configure a tax representative on the company
      - Go to accounting settings > Electronic Document Invoicing and choose the test mode + check the “Allow odoo…” checkbox.
      - Create a new invoice and confirm
      - Click on “Send now”
      - Click again on “Send now” until there is an update and the error is displayed.
      
      closes odoo/odoo#100129
      
      Task: opw-2952098
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      71da80de
  3. Sep 14, 2022
  4. Sep 13, 2022
  5. Sep 12, 2022
  6. Sep 11, 2022
  7. Sep 09, 2022
    • root's avatar
      [FIX] calendar: prevent crash of get_interval return · 7017a8bd
      root authored
      
      Before this commit if you would call get_interval() with a wrong interval type'
      the function would crash and cause a traceback.
      This was due to the result being returned while it is only initialized in the if statements.
      If you would for example do get_interval('year') or another option/typo the 'result' was never initialized.
      This was especially an issue and annoying to figure out on mail templates as the render would fail with a message saying
      'Failed to render template: local variable 'result' referenced before assignment'.
      The only way to find/debug this is by looking in the logs and then figuring out it came from this function.
      
      This commit solves this by preventing a crash if you provide a non-supported interval (by returning '')
      
      closes odoo/odoo#99908
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      7017a8bd
    • pedrambiria's avatar
      [FIX] pos_restaurant: synchronize orders in TicketScreen · bba4c637
      pedrambiria authored
      
      Before this commit: if more than one user work on a PoS restaurant, the
      synced validated orders wouldn't remove from other user devices.
      
      Steps to reproduce the issue:
      	1. Create a PoS resturant
      	2. Login to the PoS with two different browser
      	3. Create some orders with some products in one of the browsers
      	4. Complete the orders in another browser
      	=> Orders will not remove from the first browser
      
      The solution is to retrieve the latest orders of every table when going to
      the TicketScreen
      
      opw-2925193
      
      closes odoo/odoo#98928
      
      Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
      bba4c637
    • pedrambiria's avatar
      [FIX] point_of_sale: prevent saving a finalized order to unpaid orders · 86abed0a
      pedrambiria authored
      
      Before this commit: it was possible to use the pos reference of a validated
      order for another order. It causes the order to miss because the server
      wouldn't save a new order if there is an existing order with the same pos
      reference.
      
      Steps to reproduce the issue on the runbot:
      
      	Open a PoS session
      	Throttling the network
      	Create an order by selecting some items
      	Pay the order
      	Validate the order and just before it finishes the job, go back
      	Now it's not possible to add an item or change the quantity
      	Now click on one of the order lines
      
      	The order will save to unpaid order, and if you reload the page, it will
      be possible to modify the order and use it for a new PoS order.
      
      Solution
      
      	The solution is to prevent it from saving it again.
      
      opw-2951938
      
      closes odoo/odoo#99472
      
      Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
      86abed0a
  8. Sep 08, 2022
  9. Sep 07, 2022
  10. Sep 06, 2022
    • Stefan Rijnhart's avatar
      [FIX] mail: clean context on creation of messages with chatter · 421ee12a
      Stefan Rijnhart authored
      
      When creating records with default keys in context those are currently
      propagated through the whole call chain until message creation. However
      default keys are meant to be used for the record creation, not its logs
      or messages.
      
      A protection against default_child_ids already exists. However better
      remove all context keys by using a clean context.
      
      Closes odoo/odoo#93797
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      421ee12a
    • anhe-odoo's avatar
      [FIX] web: add preparse method for parsing dates in catalan · 8eea670e
      anhe-odoo authored
      
      Observed Behaviour
      
      When opening a pivot view with the catalan language activated
      and grouping rows/cols by months, everything works fine. But if
      we try to import this pivot view in a spreadsheet, all months
      are converted to gener, which means 'January' in catalan
      
      Expected Behaviour
      
      When importing the pivot view in a spreadsheet, we should get
      the correct date grouping
      
      Reproducibility
      
      This issue can be reproduced with the following steps
      1. Activate the catalan language and set it
      2. Got to Sales App
      3. Select the pivot view
      4. Group the rows/cols by order date > months
      5. Try to import the pivot view in a spreadsheet
      
      Fix Description
      
      The isse was coming from the fact babel (the package used to
      generate date as text in python) write the month as 'de gener',
      'de febrer', 'de març', 'd'abril', while moment (the lib used
      to handle date in JS) is looking for months as 'gener', 'febrer',
      ... (ie without "de" or "d'" prefix), causing it not to
      recognize the date proposed by Babel. We then added a preparse
      method to the catalan language, automatically used by moment when
      present in the language definition.
      
      Related Issues/PR
      -opw-2817041
      
      closes odoo/odoo#90466
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      8eea670e
    • Laurent Smet's avatar
      f9500009
    • Thomas Lefebvre (thle)'s avatar
      [FIX] l10n_ch: missing translations · f84853cd
      Thomas Lefebvre (thle) authored
      
      Steps to reproduce:
        - change the location of the company in Switzerland;
        - create a customer located in Switzerland and whose language is
          French (CH);
        - create an invoice with a QR code for this customer.
      
      Issue:
        Some words are not translated.
      
      Cause:
        The report content had some XML structure change (in 6e380d06) after
        14.0 release and they have not been applied in translation .pot or .po
        files since.
      
      Solution:
        Edit the ".pot" file.
        Edit the ".po" file (i18n are not on Transifex)
      
      Remark:
        The modification (addition of elements) in the ".pot" file was done
        by hand because the file is in the i18n_extra folder (not exported).
      
      opw-2959226
      
      closes odoo/odoo#99081
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      f84853cd
    • Nasreddin Boulif (bon)'s avatar
      [FIX] sale_project: Allow user to cancel SO linked to project · 520f9033
      Nasreddin Boulif (bon) authored
      
      Steps to reproduce:
      
      - Go to Projects and find one having field "sale_line_id" set
        (example "AGR - S00048" with
        "S00048 - Senior Architect (Invoice on Timesheets)")
      - Go to Sales -> Quotations and :
        1/ cancel
        2/ set in draft
        3/ edit Project to "AGR - SO00048"
        4/ confirm again (see attached)
      - Alter Marc Demo access right to have:
        Sales -> Administrator
        Project -> User
      - With Marc Demo, go to Sales -> Quotations and open S00048
      - Try to cancel it
      
      Issue:
      
        Access right error.
      
      Cause:
      
        When canceling a SO, we remove the related SO line on the project
        however the current user have access to edit SO but not the project.
      
      Solution:
      
        Use sudo().
      
      opw-2959627
      
      closes odoo/odoo#98956
      
      Signed-off-by: default avatarXavier <xbo@odoo.com>
      520f9033
  11. Sep 05, 2022
    • Yoshi Tashiro (Quartile)'s avatar
      [CLA] update quartile's members · 2e9847f7
      Yoshi Tashiro (Quartile) authored
      
      closes odoo/odoo#99575
      
      X-original-commit: 9e86d160
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      2e9847f7
    • Yolann Sabaux's avatar
      [FIX] calendar_sms: send sms to partner with phone numbers · 06e95b1f
      Yolann Sabaux authored
      
      Steps to reproduce:
      - create a contact with a phone number
      - enable IAP-sms
      - take off the number of the admin-contact
      - create an event in the calendar with a "text-sms reminder" with the new created user
      
      Issue:
      No sms will be sent
      
      Cause:
      The IAP server-side does not accept request with `number` set to False such as in:
      ```{'messages': [{'res_id': 23, 'number': False, 'content': 'Event reminder: test-local, 07/11/2022 at (15:46:00 To 16:46:00) (Europe/Brussels)'}, {'res_id': 24, 'number': '+32487253270', 'content': 'Event reminder: test-local, 07/1>
      
      Solution:
      Filter partners with a valid phone number in `_sms_get_default_partner`
      
      opw-2867763
      
      closes odoo/odoo#95784
      
      Signed-off-by: default avatarArnaud Joset <arj@odoo.com>
      06e95b1f
  12. Sep 04, 2022
Loading