Skip to content
Snippets Groups Projects
  1. Jan 10, 2020
    • Damien Bouvy's avatar
      [FIX] account: remove bank accounts when switching move type · e94234f4
      Damien Bouvy authored
      
      When switching a invoice to a refund, the bank account to which the move
      should be paid should be removed: while it (might) contain the partner's
      bank account before, when becoming a refund it makes no sense to keep
      the partner's bank account as the recipient.
      
      closes odoo/odoo#43085
      
      Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
      e94234f4
    • Damien Bouvy's avatar
      [FIX] sale: take taxes into account during invoices -> refund switch · eefe27b1
      Damien Bouvy authored
      Before this commit, the invoice creation flow of a sales order checked
      if the amount of the generated invoice was positive or negative - if it
      was negative, then the invoice would be converted to a refund instead.
      
      Unfortunately, this check was done before the move was actually created
      \- meaning that the only way to compute the total of the move was to
      multiply the quantities and unit prices of what was about to be included
      in the move - ignoring taxes altogether. Since taxes would then be
      applied during the move's creation, you could in fact have a refund that
      ended up being negative because some products would end up with
      different taxes.
      
      A simple (although weird) example would happen if you registered a
      down payment that was actually greater than the subtotal of your
      quote (but lower than the total with taxes included).
      Example:
      Create a quote for a 100$ product with 15% tax
      Register a downpayment of 105$ and validate that invoice
      Invoice the rest:
       => you end up with a refund of -10$, while you should have a 10$
      invoice instead.
      
      Since the downpayment did not have taxes, the second invoice was
      computed as being negative (100$ for the product - 105$ to deduce the
      down payment), even though after the 15% tax gets applied on the product
      (but not on the downpayment), the invoice is actually positive.
      
      This commits moves the switch from invoice to refund to *after* the move
      actually gets created, ensuring taxes are taken into account.
      eefe27b1
  2. Jan 13, 2020
    • Nicolas Martinelli's avatar
      [FIX] delivery: default company in price computation · 6a6a7e6e
      Nicolas Martinelli authored
      
      - Set the company currency in USD
      - Create a pricelist in EUR
      - Create a SO with the EUR pricelist
      - Add a stockable product
      - Click on 'Add Shipping'
      - Select 'Normal Delivery Charges' which has a fixed price
      
      The price is not updated according to the USD - EUR exchange rate.
      
      This happens because no company is set on the delivery method, so no
      conversion is performed.
      
      We fall back on the order company, then the current environement
      company.
      
      opw-2159838
      
      closes odoo/odoo#43119
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      6a6a7e6e
  3. Jan 10, 2020
  4. Jan 11, 2020
  5. Jan 10, 2020
  6. Jan 06, 2020
  7. Jan 10, 2020
  8. Jan 09, 2020
  9. Jan 06, 2020
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] web: avoid parsing value if already number · eaefc64a
      Andrea Grazioso (agr-odoo) authored
      
      When accessing stock_barcode module to validate pickings, is not
      possible to add floating point quantities for any localizaton which uses
      ',' as decimal separator.
      The numeric field is now defined via browser tags <input="numeric"> to
      make the numeric keyboard popup automatically on mobile devices
      (commit 8f5840369b28962ab2be9edfce7331a836c3df22)
      Adding the override to avoid further processing when the input
      is already anumber
      
      opw-2154657
      
      closes odoo/odoo#42745
      
      X-original-commit: 1ccc60deeb067f8d461d48cbf51719317c22cb90
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      eaefc64a
  10. Nov 29, 2019
    • Christophe Monniez's avatar
      [FIX] requirements: update library versions to match Debian Buster · 32e455bf
      Christophe Monniez authored
      
      Some library versions are outdated since the release of Debian Buster.
      
      With this commit the required libraries versions will match as close as
      possible the versions available in the current Debian stable release
      (Buster).
      
      Also, the requirements were tested against a Windows Python 3.7 to
      ensure that a "pip install -r" can be used without the need of a CPP
      compiler.
      
      As Babel format_time now returns 'HNE' (Heure Normale de l'EST) for Fr
      locale instead of the zone offset, the test is adapted.
      
      Finally the babel.dates is explicitely imported, otherwise the proper
      import of this submodule is relying on a side effect.
      
      closes odoo/odoo#40361
      
      Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
      32e455bf
  11. Jan 06, 2020
  12. Jan 09, 2020
  13. Jan 07, 2020
  14. Jan 09, 2020
  15. Jan 08, 2020
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] stock: fix barcode layout printing · a0193b9a
      Andrea Grazioso (agr-odoo) authored
      
      Install stock, go to Configuration>Settings, activate "Storage
      Locations". Go to Configuration>Locations select locations and print
      
      The reported will not follow the documentation, barcode will be one
      after the other and not side by side, arranged in a 2x2 grid.
      Fixing require to apply style changes since new bootstrap
      code is not handled well by wkhtmltopdf
      
      opw-2162698
      
      closes odoo/odoo#42956
      
      X-original-commit: 7ac26d0e
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      a0193b9a
    • Jason Van Malder's avatar
      [FIX] sale, web: fix product quantity display in ecommerce · 002862dc
      Jason Van Malder authored
      
      Issue
      
          - Install eCommerce
          - Select Zap theme
          - Go on a product in the shop
      
          The quantity is hidden behind the buttons
          The quantity height is not the same than the buttons
      
      Cause
      
          By default, there is a max width of 125px on the div containing
          the buttons and the quantity label. As this theme increase the
          button size, the quantity is hidden.
      
          The quantity label has `.form-control` class who override
          his height, so it's not using flex anymore.
      
          More details from QSM in design-themes closed PR #199:
              Bootstrap is not correct about input-group form-control height
              -> bootstrap_review.scss fix for the height of input-group
                 form-controls
      
              Our max-width on css_quantity is not right, it should be a
              max-width on the internal input
      
      Solution
      
          Restore the initial height in bootstrap_review for input-group form
          control
      
          Set the max-width only on the internal input.
      
      OPW-2166311
      
      closes odoo/odoo#42934
      
      Signed-off-by: default avatarJason Van Malder <jvm-odoo@users.noreply.github.com>
      002862dc
  16. Jan 09, 2020
  17. Jan 08, 2020
  18. Jan 09, 2020
  19. Jan 08, 2020
    • Thibault Delavallée's avatar
      [FIX] event: correctly copy information from event type mail schedulers · 09c6747e
      Thibault Delavallée authored
      
      Currently an onchange on event type copy the mail schedulers information from
      event type to the event. In order to ease inheritance, some white listed
      attributes are directly copied using direct getter (line[attribute], see code
      for clarity). However mail and sms templates are many2one fields and the
      id should be copied, not the browse record.
      
      There is no issue when the onchange is trigered from interface because a
      mapping is done. However when calling the onchange in code there is a crash
      as the record is directly given to write.
      
      closes odoo/odoo#42977
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      09c6747e
    • Nicolas Seinlet's avatar
      [FIX] mail: fix activity view when having activities without type · 77f0dd89
      Nicolas Seinlet authored
      
      At model level, activity_type_id is not a mandatory field on mail.activity.
      Indeed required is added in views, meaning people could have activities
      without type.
      
      This make the activity views crash with `TypeError: 'bool' object is not
      subscriptable` error when computing aggregated activity data. This commit
      fixes that error.
      
      Activities without type are still not displayed in the activity view as
      columns are based on available activity types. It means activities without
      type have no column to be displayed. As this is a corner case that should
      not happen when using activities using the interface this is considered
      as a limitation of current implementation.
      
      closes odoo/odoo#41689
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      77f0dd89
  20. Jan 07, 2020
  21. Dec 23, 2019
  22. Jan 07, 2020
    • Katherine Zaoral's avatar
      [ADD] l10n_ar: Fix identification type of Anonymous Final Consumer partner · 842306b0
      Katherine Zaoral authored
      
      The purpose of this partner is that we do not need to report to AFIP the identification number.
      
      Since this partner identification was configured as DNI it was throwing an error when validate an invoice for that partner in AFIP, AFIP was requesting us to sent the DNI number.
      
      Now we activate the Sigd "Sin identificar/venta global diaria" identification type (code 99), proper configure the  it to Anonymous Final Consumer partner, with this change AFIP validate the invoice directly and does not request us the identification number.
      
      Now we set this partner sequence to the biggest one so far to show this identification type as the last in the list of identifications types
      
      closes odoo/odoo#41676
      
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      842306b0
  23. Jan 08, 2020
Loading