Skip to content
Snippets Groups Projects
  1. Oct 11, 2022
  2. Oct 09, 2022
  3. Oct 07, 2022
  4. Oct 06, 2022
  5. Oct 04, 2022
    • Laurent Desausoi (lade)'s avatar
      [FIX] point_of_sale: adapt logo for multi companies customer display · 7a41e93f
      Laurent Desausoi (lade) authored
      
      Customer display does not show the appropriate logo when multi-company is
      enabled. The logo shown is always the logo of the default company.
      
      Step to reproduce the issue:
      1) Install Point of Sale and set up a second company
      2) Put a logo on both companies (different ones)
      3) Create a POS session on the newest company (not the default one)
      4) In this session, activate Customer Display
      5) Launch the session and open the Customer Display
      The logo shown is the logo of the default company.
      
      Solution: The issue is that when fetching the logo, we don't include
      information about the current company. Thus, we include the logo of the default
      company (at url /logo). We can easily specifiy which logo we need via the url
      /logo?company={company_id}. As dynamic information cannot be included into a
      CSS, we include this into the XML as it is done with other images rendered.
      In our case, we don't need to retrieve the logo and map it to base 64 (for
      ressources requiring to be logged in) because the logo is a resource available
      to anyone.
      
      opw-2745014
      
      closes odoo/odoo#93638
      
      Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
      7a41e93f
  6. Oct 03, 2022
  7. Oct 02, 2022
  8. Sep 30, 2022
  9. Sep 29, 2022
  10. Sep 27, 2022
  11. Sep 26, 2022
    • Florian Vranckx's avatar
      [FIX] product : variant of other company · a68fe720
      Florian Vranckx authored
      
      Steps to reproduce:
      - install sale_management
      - enable variant in the setting of sales
      - create a second company
      - create a product with at least a variant and set the company
        to the active one
      - switch to the second company
      - create another product and select the same variant
      - error on creation
      
      Cause:
      
       The stored compute is executed as sudo, therefore a value that the user
       has no access may stays in the cache. In subsequent flush we might read
       value from cache when computing some other fields that contain an
       unreadable value for current user.
      
      Solution:
      
       Flush and invalidate so we don't have unaccessible value in cache in
       this use case.
      
      note: this is not happening in 14.0 and over
      
      opw-2898457
      opw-2950290
      
      closes odoo/odoo#96023
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      a68fe720
    • Xavier Morel's avatar
      [FIX] core: use proper break (hr) in PR template footer · c7bf932c
      Xavier Morel authored
      A "thematic break"[1] is composed of 3 or more characters (-, _,
      or *). The current separator using only 2 characters between the main
      body of the PR and the footer / addendum makes it more difficult to
      interpret the message.
      
      Update to 3 so e.g. the mergebot can strip the footer.
      
      [1]: https://spec.commonmark.org/0.30/#thematic-breaks
      
      
      
      closes odoo/odoo#101072
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      c7bf932c
    • Jinjiu Liu's avatar
      [FIX] website_sale: calculate the tax for no_variant product in cart · d8a730f5
      Jinjiu Liu authored
      Reproduction:
      1. Install eCommerce and accounting
      2. Go to Accounting->Configuration->Taxes, add one sale tax 15%, and one
      0%. Both taxes are included in the price.
      3. Go to Configuration-> Fiscal Position, create a new one “test” which
      applies the tax mapping from 15% sale tax to the 0%. Check “Detect
      Automatically”, set country group as Europe
      4. Go to Website->Orders->Customers, set the country of the portal user,
      Joel Willis, as Luxembourg. In Sales&Purchase->Fiscal Information set
      the fiscal position as “test”
      5. Go to Website->Products->Product Variants, create a new one
      “test_tax_prod” with price 110, and sale tax 15%, can be sold, can be
      purchased and consumable.
      6. Go to Website->Configuration->Attribute, create a new product
      attribute “test” with Display Type as Ratio, Variant Creation Mode as
      Never. Create a value “a” in its attribute values
      7. Go to Website->Products->Products, find test_tax_prod, go to its
      variant tab, set attribute as “test” with value “a”, publish this
      product
      8. Open an incognito tab, login as “portal” pwd: portal, search the
      product “test_tax_prod”, set the price list as “public price list”, the
      price is 95.65 on the page. Add it to the cart, the price is 110
      
      Reason: When we update the order_line, we should update the price based
      on the fiscal position for the no_variant products too. However, based
      on the current workflow, the price is computed in method
      _website_product_id_change before an order line is created. Thus for
      no_variant products, the price is not updated.
      
      Fix:  This issue is fixed in saas-15.3 by rewriting the workflow and
      calculating the price through an on_change function here: https://github.com/odoo/odoo/blob/saas-15.3/addons/sale/models/sale_order_line.py#L588-L605
      
      In v13, we don’t have this on_change method to compute the new price, so
      a similar price update can be created in the cart update for
      website_sale. This fix solution was created here: https://github.com/odoo/odoo/commit/ea259218196b2d9dc71beffea697025580c6d696
      However, new price computation issues can happen when combining two
      pricelists, here: https://github.com/odoo/odoo/commit/8d6a2ca0f3dcf8f8cf4679da2b3ce582b7826391
      
      Thus the fix is eventually done in _website_product_id_change. Added a
      new parameter to force checking the orderlines based on the domain. The
      orderline is created but only can be searched based on the domain. This
      ensures the price is computed correctly for pricelists and for tax.
      
      Added fiscal position test for no variant product
      
      opw-2856956
      
      Fix by re-writing in saas-15.3: https://github.com/odoo/odoo/blob/saas-15.3/addons/sale/models/sale_order_line.py#L588-L605
      First related fix: https://github.com/odoo/odoo/commit/ea259218196b2d9dc71beffea697025580c6d696
      Second fix to patch for the first fix: https://github.com/odoo/odoo/commit/8d6a2ca0f3dcf8f8cf4679da2b3ce582b7826391
      
      
      
      closes odoo/odoo#99647
      
      Signed-off-by: default avatarWilliam Braeckman (wbr) <wbr@odoo.com>
      d8a730f5
  12. Sep 25, 2022
  13. Sep 22, 2022
  14. Sep 21, 2022
  15. Sep 20, 2022
  16. Sep 19, 2022
    • MerlinGuillaume's avatar
      [FIX] mrp: keep end time and duration consistent when moving work order · 90f83914
      MerlinGuillaume authored
      
      When drag and dropping a work order in the Work Orders Planning, the
      end time wasn't recomputed. This can make the end time inconsistent with
      the duration when the work order spans across a non-working time.
      
      Steps to reproduce:
      1. Install Manufacturing
      2. Go to Settings > Manufacturing > Operations and enable Work Orders
      3. Go to Manufacturing > Master Data > Routings and edit routing
         'Primary Assembly' to last 120:00 minutes
      4. Go to Manufacturing > Operations > Manufacturing Orders and create
         one with values:
         - Product: Table Top
         - Plan From: today's date at 11:00:00
      5. Save, mark as todo and plan the manufacturing order
      6. Go to Manufacturing > Planning > Planning by Workcenter and trigger
         the day view
      7. Move the work order to 8 am
      8. The work order still lasts for 3 hours (according to its start and
         finish time) even though its expected duration is 2 hours
      
      Solution:
      Recompute `date_planned_finished` when we move a work order in the
      planning (`date_planned_start` and `date_planned_finished` are passed in
      values), and recompute `expected_duration` when we extend it (only one
      of them is passed depending on the way we extend the work order).
      (`duration_expected` is never passed in values when we manipulate a work
      order through the planning)
      
      Problem:
      `date_planned_finished` wasn't recomputed when moving the work order in
      the planning
      
      opw-2893622
      
      closes odoo/odoo#97805
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      90f83914
    • Loan (lse)'s avatar
      [FIX] website_event: prevent send Register form as HTTP POST request · 34db5005
      Loan (lse) authored
      To reproduce:
      Video: https://drive.google.com/file/d/1bAh7KA_5UhhIrr-qF5A5gOVWhk3_9clj/view
      
      
       1. Have multi-language website
       2. Event with one ticket
       3. Reload page and click the "Register" button
       -> in some cases there is a traceback
       `/event/great-reno-ballon-race-2/registration/new: Function declared as capable of handling request of type 'json' but called with a request of type 'http'`
      
       Reason of the issue:
       As the button "Register" in the form is defined with `type="submit"` it will send the form as plain HTTP if clicked.
       This behavior is modified in the JavaScript to prevent this default behavior.
       However, if the button is clicked before the JS load, the HTTP behavior is used which does create the above traceback (as the `registration/new` route accept only `json` type).
      
       Solution proposed:
       Prevent the button default behavior and make it deactivated and let the JS activate it when it is ready
      
       Note on stability:
       As JS code and XML view is modified, this fix was thought so that the JS won't have an impact if the view isn't updated.
       There is theoretically no way that the XML view would be updated without the JS being updated (except manual modification in the view or rollback on the version revision after performing a module update on odoo.sh). If it was the case then the button will be deactivated until the user change the number of ticket.
      
       OPW-2946706
      
      closes odoo/odoo#98091
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      34db5005
  17. Sep 18, 2022
  18. Sep 16, 2022
  19. Sep 15, 2022
    • Demesmaeker's avatar
      [FIX] sale_product_matrix: error in matrix tour · e0461e1d
      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#100273
      
      Signed-off-by: default avatarMorgane Demesmaeker <edm@odoo.com>
      e0461e1d
    • nouraellm's avatar
      [FIX] stock: fix todo filter for product moves · 49c8351f
      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#100265
      
      Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
      49c8351f
  20. Sep 14, 2022
  21. Sep 11, 2022
  22. Sep 10, 2022
  23. Sep 09, 2022
    • Walid HANNICHE (waha)'s avatar
      [FIX] account: auto-complete apply the correct currency rate · fd4a8d98
      Walid HANNICHE (waha) authored
      
      Steps to reproduce:
      - enable multi currency in settings
      - set different rates for multiple days
      - create a vendor bill in a different currency
      - create a second vendor bill
      - fill the second bill using auto complete from the first one
      
      Bug:
      the correct currency rate isn't applied unless date is changed when
      the source is a vendor bill not a purchase order
      
      Fix:
      update currency rate after adding a line with a different currency
      
      opw-2890210
      
      closes odoo/odoo#99640
      
      Signed-off-by: default avatarGrazioso Andrea (agr) <agr@odoo.com>
      fd4a8d98
  24. Sep 08, 2022
Loading