Skip to content
Snippets Groups Projects
  1. Nov 30, 2018
    • Nicolas Martinelli's avatar
      [FIX] website_sale: price difference · e9bc13fc
      Nicolas Martinelli authored
      - Create a product A with a sales price of 40
      - Create a pricelist where product A costs a fixed price of 100
      - Assign this pricelist to a customer
      - Connect as the customer on the eCommerce
      
      On the eCommerce, the price for A is displayed as: ~~40~~ 100.
      
      We only display a price difference if the pricelist price is smaller
      than the sales price.
      
      opw-1885443
      
      closes odoo/odoo#29141
      e9bc13fc
  2. Dec 01, 2018
  3. Nov 30, 2018
    • Nicolas Martinelli's avatar
      [FIX] report_intrastat: product weight · ae4a4cf0
      Nicolas Martinelli authored
      - Create a product with 2 variants A & B
      - Set a weight on the variants (btw, the weight field is not available
        on the template in this case)
      - Create an invoice for A, validate
      
      On the intrastat report, the weight remains 0.0.
      
      The report clearly takes into account the weight of the template, not of
      the variant. We use the product weight, and fall back on the template
      weight.
      
      opw-1913305
      
      closes odoo/odoo#29178
      ae4a4cf0
  4. Nov 29, 2018
  5. Nov 27, 2018
  6. Nov 03, 2018
  7. Nov 02, 2018
  8. Nov 27, 2018
  9. Nov 26, 2018
  10. Nov 21, 2018
    • Denis Ledoux's avatar
      [FIX] report: support for wkhtmltopdf 0.12.5 · af476c69
      Denis Ledoux authored
      This revision brings the compatibility for our reports
      using wkhtmltopdf 0.12.5.
      
      Up to now,
      the supported wkhtmltopdf version was 0.12.1.
      
      The goal of this revision is to add the compatibility
      to wkhtmltopdf 0.12.5,
      while keeping the same exact rendering than in 0.12.1.
      
      There is a behavior change with the `--dpi` parameter,
      which no longer has a "zoom" level effect as it did with 0.12.1.
      
      To deal with it, we pass the `--zoom` parameter when
      the detected version installed of wkhtmltopdf is after 0.12.2,
      with a ratio 96:dpi. 96 being the default dpi of wkhtmltopdf.
      
      This trick allows to render the reports with the exact same
      zoom level, whatever the dpi value configured in the reports paperformat.
      (at least with dpi values up to 149, after 150, included,
      the dpi parameter with wkhtmltopdf 0.12.1 as a weird behavior,
      it no longer zoom out)
      
      opw-1907346
      
      closes odoo/odoo#28864
      af476c69
    • Nicolas Lempereur's avatar
      [FIX] purchase: es_AR translation typo · 1f8788de
      Nicolas Lempereur authored
      Fixing it directly by commit since there is no es_AR on transifex.
      
      The issue of the ticket has been solved by transifex, this is for
      another similar issue that has been found.
      
      opw-1907924
      closes #28923
      1f8788de
    • Denis Roussel's avatar
      [FIX] mrp: Allow mrp user to delete stock_move_lot links · e81809b8
      Denis Roussel authored
      With an mrp user, add lots lines to mrp production order moves. Then,
      try to delete one line, the dustbin icon does not appear.
      
      opw-1908930
      e81809b8
    • Denis Roussel's avatar
      [FIX] mrp: User with no products write access cannot create production order · 8a6162d0
      Denis Roussel authored
      As the product_tmpl_id field is related one but not readonly, the creation
      of production order triggers a write on product.product model
      8a6162d0
  11. Nov 15, 2018
  12. Nov 14, 2018
  13. Nov 13, 2018
  14. Nov 08, 2018
    • Josse Colpaert's avatar
      [FIX] sale_margin: Error in Margin calculation · 0b586677
      Josse Colpaert authored
      If cost(purchase_price) was 0, margin calculation was incorrect.
      The function _product_margin didn't consider the use case
      where the cost of the product was set to 0 on the line.
      
      So before the fix it fallback on standard price instead of considering  a cost of 0.
      
      opw:1890452, 1885587
      0b586677
    • Sylvain Van Hoof's avatar
      [CLA] sign CLA for Okia SPRL · 9b16af6a
      Sylvain Van Hoof authored
      Backport of 12.0 signature that was done at ff83dfbb60ce
      
      Closes #28493
      9b16af6a
  15. Nov 07, 2018
    • Yenthe V.G's avatar
      [FIX] sale: fix type of created invoice from SO · e6ff16cb
      Yenthe V.G authored
      Consider the generation of an invoice for a SO having the following lines:
      quantity | unit price | taxes | subtotal
      ----------------------------------------
             1 |        100 |   15% |      115
             1 |       -110 |       |     -110
      
      Previously, the invoice wrongly received the type 'out_refund' instead of 'out_invoice'. This was because the code was only considering the untaxed amount.
      
      Closes #28259
      Fixes #26726
      
      Co-authored by pedrobaeza
      e6ff16cb
    • Pierre Rousseau's avatar
      [CLA] Signature for Ugaitz Olaizola · df057df5
      Pierre Rousseau authored
      opw-1895508
      df057df5
  16. Nov 06, 2018
  17. Nov 05, 2018
  18. Nov 02, 2018
    • Olivier Colson's avatar
      [FIX] account: apply correct currency rate for taxes at account move creation · 053a023f
      Olivier Colson authored
      Before that, taxes were only applied with the most recent currency rate, which caused problems in multi currencies, when reconciling statement lines made in the past with invoices, causing the amount currencies in the payment account.move to be wrong.
      
      //Scenario to reproduce the issue (from customer ticket 1903497):
      
      (for a company with USD as base currency)
      
      1. Create a new bank journal for EUR payments
      
      2. Create a new customer invoice for 90€
      
      3. Create a new tax for the reconciliation model, price-included and amounting to 15%
      
      4. Create a new reconciliation model using this tax
      
      5. Use the currency rates from the demo data, add one that is closer to current date than the most recent one.
      
      6. Create a new bank statement for the created EUR bank journal. Make sure that the transaction is less than the actual amount due on the invoice so that we can apply the reconciliation model. Also make sure to set a date on the transaction that lies in the past at some point when the currency rate was (significantly) different.
      
      7. Hit the reconcile button, select the amount due from the invoice and apply the discount reconciliation model(take note of the amount on the created tax move line). Now reconcile.
      
      What is the current behavior that you observe?
      
      Now go back to the bank statement and check the created journal entries. You will see a difference in the amount currency values of the payment and the tax account move line. This difference should not exist.
      053a023f
    • Nicolas Martinelli's avatar
      [FIX] sale_timesheet: UOM · bbeb126c
      Nicolas Martinelli authored
      Revert commits da2140b7, e65c8826 and 06cd145a. They
      introduce an incorrect UOM.
      
      The original issue was an `AccessError` due to the fact that the
      employee chosen was not in the same company than the user. Therefore,
      instead of changing the logic of the UOM selection, we make sure to
      select the employee in the appropriate company first, then fall back on
      any company then.
      
      opw-1888299
      bbeb126c
    • Yoshi Tashiro's avatar
      [FIX] product: respect received args value instead of overriding it (#26594) · 09a81894
      Yoshi Tashiro authored
      When doing a name_search, if a current search is already specified through args,
      do not replace it
      
      Closes #26594
      09a81894
    • Yoshi Tashiro's avatar
      [FIX] website_sale: reset cart if checkout was done in another session · 7d2bc7d3
      Yoshi Tashiro authored
      This commit extend commit https://github.com/odoo/odoo/commit/ef48b81ab127dd717a4a9d106edd5c51121bc8f7
      When you have a cart on multiple session and confirm the card in one of them,
      you could still access your cart from other session (note that you could not do
      anything with it as it would be reset when adding product or changing qty).
      
      Closes #28210
      7d2bc7d3
    • Romain Derie's avatar
      [FIX] website_sale_options: prevent other session crash after checkout · 3457d1a7
      Romain Derie authored
      Check commit https://github.com/odoo/odoo/commit/ef48b81ab127dd717a4a9d106edd5c51121bc8f7
      
      This commit is doing the same for website_sale_option as the optional product
      is calling another route to add the product to the cart.
      That route needed to be fixed too.
      
      Closes #28209, related to #27508
      3457d1a7
  19. Nov 01, 2018
  20. Oct 31, 2018
    • Goffin Simon's avatar
      [FIX] stock: Wrong production/scrap/adjustment location used in multicompany · 93d69933
      Goffin Simon authored
      - When using perpetual inventory valuation, the accounts used for scrap, manufacturing,
      and inventory adjustment operations are set on the corresponding locations .
      - In a multicompany environment, you will have a separate chart of accounts for each company.
      - Account fields on locations are not property fields.
      - Therefore, in order to separate the accounting of manufacturing, scrap, and inventory
      adjustment operations, you must use a location for each operation for each company.
      - Set up one location for each company for scrap, production, and adjustment
      locations, setting the company field on each.
      
      Bug:
      - When attempting to create a MO, inventory adjustment, or scrap order while signed
      in to the second company, you will receive a permissions error on stock.location.
      
      Fix:
      - Now the right location is taken according to the company of the user.
      
      Backport of this commit: c7526407
      
      opw:1817339
      93d69933
  21. Oct 30, 2018
Loading