Skip to content
Snippets Groups Projects
  1. Jan 05, 2023
  2. Jan 04, 2023
    • William Henrotin's avatar
      [FIX] mrp: byproducts follow putaway rules · d55ae5f4
      William Henrotin authored
      
      Before this commit, the byproduct and putaway feature do not work
      together. More specifically, changing the quantity to produce on a
      manufacturing order will create automatically a byproduct move line (or
      update the existing one with the new quantity) but never look for a
      putaway rule to apply.
      
      This commit makes use of `_set_quantity_done()` method on `stock.move`
      that *do* call the putaway strategy mechanism
      
      closes odoo/odoo#109077
      
      Signed-off-by: default avatarSteve Van Essche <svs@odoo.com>
      d55ae5f4
    • Romain Derie's avatar
      [FIX] website: prevent crash for non admin publisher when click on form · 0b439de1
      Romain Derie authored
      When editing a website form, a `search_read` request is fired on
      `ir.model` model to get the list of possible form actions (create
      ticket, create opportunity, etc.).
      But since commit [1] in Odoo 15, non-admin users don't have read access
      anymore on this model, leading to a traceback when clicking on a form in
      edit mode.
      
      Steps to reproduce (as designer):
      - Install only website and login as admin
      - Make "portal" user an internal user and give him "Editor and Designer"
        rights
      - Login as "portal" user
      - Enter edit mode on any page and drag & drop the form snippet, or
        simply go to /contactus page which already has one
      - Click on the form -> Traceback
      
      Steps to reproduce (as publisher/restricted editor):
      - Install website_hr_recruitment
      - Make "portal" user an internal user and give him the following rights:
        - Website: Restricted Editor
        - Recruitment: Administrator
      - Login as "portal" user
      - Go to a job page like /jobs/detail/experienced-developer-4
      - Enter edit mode and drag & drop the form snippet
      - It will crash
      
      [1]: https://github.com/odoo/odoo/commit/5dc4cff60a557e14b08440c227423291c407899b
      
      
      
      opw-3098097
      opw-3101884
      
      closes odoo/odoo#108680
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      0b439de1
    • Maruan Aguerdouh (magm)'s avatar
      [FIX] project: fix the project activities filter kanban view · 6219fb2a
      Maruan Aguerdouh (magm) authored
      
      Steps to reproduce:
      
      - Go to Projects app.
      - Add some activities to different project (for today, overdue, future).
      - Go to the activities button in the navbar.
      - Search for the project activities and click in 'Today'.
      - We are redirected to the kanban view of the projects without filtering
      
      Issue:
      
      We don't get the project filters by it's activities as it should be.
      
      Solution:
      
      Added the proper filters to this specific project kanban view so we can
      access the filters when accesing the view.
      
      opw-3095944
      
      closes odoo/odoo#108067
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      6219fb2a
    • roen-odoo's avatar
      [FIX] point_of_sale: PaymentScreen not updated after pricelist changes · ba875a06
      roen-odoo authored
      
      Current behavior:
      After changing customer on the PaymentScreen, the pricelist could be
      modified, but the PaymentScreen was not updated accordingly.
      
      Steps to reproduce:
      - Create 2 different products with different taxes.
      - Create a pricelist with a discount on the 2 products.
      - Create a coupon that apply a 100% discount on the order.
      - Start a PoS session
      - Add the 2 products to the order and apply the coupon.
      - The order total is now 0€.
      - Go on the PaymentScreen
      - Change the customer
      - The order should still be 0€, but it's not.
      
      opw-3049098
      
      closes odoo/odoo#108196
      
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      ba875a06
  3. Jan 03, 2023
    • Ricardo Gomes Rodrigues (rigr)'s avatar
      [FIX] account: rule error when creating an invoice from the Documents app · 413e5558
      Ricardo Gomes Rodrigues (rigr) authored
      
      Steps to reproduce:
      - Install Odoo with demo data
      - Go to Documents app
      - Finance workspace
      - Select a demo pdf
      - Create invoice
      - Error because of 'Mail Compose Message Rule'
      
      The fix removes a non-necessary line when creating an invoice from a pdf
      
      closes odoo/odoo#108989
      
      X-original-commit: 60fbcaff
      Signed-off-by: default avatarNicolas Viseur (vin) <vin@odoo.com>
      Signed-off-by: default avatarRicardo Gomes Rodrigues (rigr) <rigr@odoo.com>
      413e5558
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] account: fix auto-reconciliation with multiple currencies · aff7168b
      Andrea Grazioso (agr-odoo) authored
      
      - Create a Bank journal [BNK2] with foreign currency
      - Create a reconciliation model:
        * Type: Rule to suggest counterpart entry
        * Amount Type: Paid/Received
        * Auto-validate: True
        * Journals: [BNK2]
        * Label: Contains [Test]
        * Partner Is Set: False
        * Counterpart Entries:
          - Account: select an expense account
          - Amount Type: Percentage of statement line
          - Amount: 100
          - Taxes: add the 15% purchase tax
          - Tax Included in Price: True
      - create a bank statement on [BNK2] with reference [Test]
      - post that statement and reconcile it
      
      Look at the resulting journal entries.
      The tax amount is incorrect, and we will have an open balance.
      
      This occurs after bc0bfde1
      In version 14 counterpart amounts are by default in company currency so
      we should force the currency after retrieving writeoff vals
      
      opw-3068801
      
      closes odoo/odoo#108960
      
      X-original-commit: ebb25220
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      Signed-off-by: default avatarGrazioso Andrea (agr) <agr@odoo.com>
      aff7168b
    • ノウラ's avatar
      [FIX] delivery: speed up delivery costs installation · 8548885e
      ノウラ authored
      
      Due to hefty data the RAM limit gets exhausted.
      The process gets killed due to the computed field weight on
      - stock.move
      - stock.picking
      When installing the delivery costs module.
      
      To solve the problem:
      
      We add the column weight to the DB schema.
      
      Ticket ids:
      - 3013955
      - 2628251
      - 3028081
      
      closes odoo/odoo#108872
      
      X-original-commit: c354cf79
      Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
      Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
      8548885e
    • roen-odoo's avatar
      [FIX] product_margin: product margin use partial/reversed payment · ddca80eb
      roen-odoo authored
      
      Current behavior:
      Partial and reversed payment were not taken into account for the
      product margin calculation.
      
      Steps to reproduce:
      1. Create a product with an common avco setup.
      2. Go to purchase 1 unit at 10 dollars.
      3. Upon confirming the invoice your cost is updated in the product margin
         report.
      4. Create a partial payment on the bill. This creates issues as the
         product margin report is looking for paid or open not partially
         paid so it won't show up in the cost calculation.
      5. Once the bill is fully paid then it shows up in the cost section
         of the product margin report again as its payment status moves to
         Paid.
      6. Create a sales order for the unit at 100 dollars.
      7. Invoice for the full amount then cancel it by creating a full credit
         note to put the original invoice in reversed status. This will have
         only the credit note show up in the turnover calculation as it is in
         paid status while the original invoice doesn't have a paid or open
         status so it isn't taken into account.
      
      opw-2887240
      
      closes odoo/odoo#100022
      
      Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
      ddca80eb
    • Merel Geens (mege)'s avatar
      [FIX] point_of_sale: fallback to standard price · 52d5515d
      Merel Geens (mege) authored
      
      When creating the POS journal entry for a POS session (or one of its
      orders when realtime inventory management is enabled), it's possible for
      the stock picking to fail if a product requires a serial number or lot
      id and none was provided. After the POS session is closed, this stock
      picking can be corrected and the accompanying inventory valuation
      entries will be created. However, when using anglo-saxon accounting, the
      amount on the COGS line in the POS journal entry will be 0. That's
      because the current implementation sums up the values from the stock
      valuation layers to determine this amount. If the stock picking failed,
      there will be no stock valuation layers so the result is 0.
      
      In other workflows in Odoo like creating an invoice from a sales order
      before the delivery is validated, the implementation deals with this
      case by falling back to the standard price if no stock valuation layers
      are available. This fix does the same for the POS journal entries.
      
      opw-2988701
      
      closes odoo/odoo#108939
      
      X-original-commit: 4aeed49d
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarMerel Geens <mege@odoo.com>
      52d5515d
  4. Jan 02, 2023
    • Jinjiu Liu's avatar
      [FIX] *: missing date filter for stat button · fe0f71aa
      Jinjiu Liu authored
      Reproduction:
      1. Install Sale, Inventory
      2. Go to Sale->products, search for “Customizable Desk”
      3. Hover the cursor on the stat button “Sold”, from its definition, the
      analysis should show the sold items in last 365 days
      4. Click on the “Sold” button, no filter for “Order Date”
      
      Reason: in V14, the “time_ranges” feature is removed. Thus using it in
      the context won’t create any filter for searching
      
      Fix: We use a custom filter to replace the time range "last_365_days".
      We also make sure that the domain produced by that filter is the same as
      the one used to compute the button count server side (this was not the
      case in Odoo 13 when "last_365_days" was used). Similar fix is also done
      in mrp and l10n_ar. Mind the utc convert for correct results.
      
      opw-3000595
      
      Related commits:
      Removal of time_ranges: https://github.com/odoo-dev/odoo/commit/be5a51a345b8986da0e19627260f64f984e11ae9
      Date filter fix: https://github.com/odoo/enterprise/pull/10938
      
      
      
      closes odoo/odoo#108914
      
      X-original-commit: 03057029
      Signed-off-by: default avatarMathieu Duckerts-Antoine <dam@odoo.com>
      Signed-off-by: default avatarLiu Jinjiu (jili) <jili@odoo.com>
      fe0f71aa
    • Cyril VINH-TUNG's avatar
      [FIX] pos_restaurant: Print date on Bill Receipt before Payment · 79852338
      Cyril VINH-TUNG authored
      
      Steps to reproduce :
      - Open a pos_restaurant session with Print Bill before Payment selected
      - Add some products
      - Print a Bill before Payment
      
      Bug :
      The receipt does not show the order date
      
      Fix :
      After that commit, the receipt shows the order date
      
      Explanation :
      The field date.localestring (that appears in the Order Receipt) is computed in the point_of_sale module for
      the receipt after payment (in Payment Screen) but was not computed in the pos_restaurant for the receipt before payment
      
      closes odoo/odoo#108516
      
      X-original-commit: 85429ca3
      Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
      79852338
    • Ivan Yelizariev's avatar
      [FIX] point_of_sale: set fiscal position on scanning client barcode · 9f7f79ab
      Ivan Yelizariev authored
      
      On scanning customer barcode, POS updates pricelist, but not fiscal position.
      
      Fix it by using method `updatePricelist`, which both updates pricelist and
      fiscal position.
      
      STEPS:
      
      -On a customer, define a fiscal position, a price list and a barcode
      -Go to the POS, in settings, define that several price lists & fiscal positions are possible
      -open a session and scan your customer.
      
      opw-3102568
      
      closes odoo/odoo#108907
      
      X-original-commit: 26c50f8b
      Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
      Signed-off-by: default avatarIvan Elizaryev (iel) <iel@odoo.com>
      9f7f79ab
    • Guillaume (gdi)'s avatar
      [FIX] web_editor: allow multiple autoplay vimeo videos · 37560b34
      Guillaume (gdi) authored
      
      Before this commit, it was not possible to have two vimeo videos playing
      at the same time on the same page.
      Steps to reproduce the bug:
      - Drop two blocks containing an image
      - Replace the two images with vimeo videos
      - For each of these videos, enable the autoplay feature
      
      => Only one of these videos is played automatically. When you play the
      other one, the first one is paused and vice versa. It is impossible to
      have both videos running at the same time. This commit allows to correct
      this by allowing to play several vimeo videos at the same time when they
      have the autoplay feature activated. Note that if the option is not
      enabled, the behavior remains similar to before, only one video can be
      played at a time.
      
      opw-3107447
      
      closes odoo/odoo#108864
      
      X-original-commit: 5ad43068
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      37560b34
    • Nshimiyimana Séna's avatar
      [FIX] tools: recognize SVG with explicit namespace · a1257cad
      Nshimiyimana Séna authored
      
      Currently, odoo's mimetype guesser does not recognize SVGs with explicit
      namespace.
      
      closes odoo/odoo#108815
      
      Signed-off-by: default avatarJulien Castiaux <juc@odoo.com>
      a1257cad
    • Du-ma's avatar
      [FIX] pos_gift_card: use get_unit_price fn to get rounded value · 54dfc712
      Du-ma authored
      
      Occasionally a rounding error can occur that returns trailing zeros and a integer on the end.
      Since the values are compared, we could be comparing 2 values with a difference of 0.00000001 and end up with an error.
      
      closes odoo/odoo#108613
      
      Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
      54dfc712
    • Pierre-Yves Dufays's avatar
      [FIX] note: support link in note created from the systray · b0316c9e
      Pierre-Yves Dufays authored
      
      The URLs in notes created from the systray were not transformed into links.
      This solves the problem.
      
      Task-3052952
      
      closes odoo/odoo#108146
      
      X-original-commit: 34b35c56
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      b0316c9e
    • Yolann Sabaux's avatar
      [FIX] sale, sale_project: correct analytic tag set from SO to INV · e32a2942
      Yolann Sabaux authored
      Steps to reproduce:
      - Create default analytic rule with (account, tags; conditions: set a product and the account `400000 Product Sales`)
      - create a sale order with product
      - create an invoice from the sale order
      
      Issue:
      There won't be any tag set for the account_move_line
      
      Cause:
      In analytic_default rules we use fields available differently according to the scope:
      
      Fields		sale_order	account_move
      product_id	V		V
      date_start	V		V
      end_start	V		V
      company_id	V		V
      partner_id	V		V
      user_id		V		V
      account_id	X		V
      
      So the rule created earlier won't be found from the sale order because we don't provide an account_id in
      https://github.com/odoo/odoo/blob/15.0/addons/sale/models/sale_order_line.py#L525-L531
      
      
      
      And since the field `analytic_tag_ids` is stored, it won't be computed during the creation of the invoice since it is already set (to `[]`).
      
      Solution:
      Set the analytic_tag_ids during the conversion from a so to an invoice  only if there is a rule for the so_line.
      
      Note:
      The change made in sale_project is to avoid getting a key that, in certain situation, does not exist anymore.
      
      opw-3069382
      
      closes odoo/odoo#107295
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      e32a2942
    • Kevin Baptiste's avatar
      [FIX] hr_holidays: make approvals calendar working again · c36457f8
      Kevin Baptiste authored
      
      The fix introduced in #106513 was not working in the calendar found in
      the "Approvals" menu as it was trying to call a model that was only
      defined in the override of the CalendarModel that this view was not
      inheriting.
      
      closes odoo/odoo#108890
      
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      c36457f8
  5. Jan 01, 2023
  6. Dec 30, 2022
Loading