Skip to content
Snippets Groups Projects
  1. Aug 13, 2023
  2. Jul 30, 2023
  3. Jul 16, 2023
  4. Jul 09, 2023
  5. Jun 28, 2023
    • Loan (LSE)'s avatar
      [FIX] barcodes: handle `^` with `|` barcode rule patterns · 2f7ad488
      Loan (LSE) authored
      Before this commit:
       If the barcode nomenclature uses the or `|` symbol.
       The part after it would be used as a "contains" instead of a
       "start with".
       e.g: `123|456`
       would be transformed in the JS code to `^123|456` instead of:
       `^123|^456`
       As such, you would have error "can't find product with barcode" if
       you set such a rule and a product barcode contains the second part.
       For e.g: the barcode `44445666` would match, but should not!
      
      After this commit:
       Force the second (and following if any) part to start with.
      
      Note: in practice it is pretty rare to have `|` in the pattern, but
      it is the case for a default rule in version 16, see:
      https://github.com/odoo/odoo/blob/5ac58ebf983c1c02019253c0430fde3502e13e7c/addons/pos_loyalty/data/default_barcode_patterns.xml#L10
      
      
      In this case, if a regular product have `044` in its product barcode,
      the PoS will tell that there is no corresponding coupon instead of
      adding the product.
      But the issue itself still apply in version 14 in case of custom rules
      
      opw-3356951
      
      closes odoo/odoo#125390
      
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      2f7ad488
  6. Jun 18, 2023
  7. Jun 04, 2023
  8. Apr 30, 2023
  9. Apr 23, 2023
  10. Apr 16, 2023
  11. Apr 09, 2023
  12. Mar 26, 2023
  13. Mar 19, 2023
  14. Mar 12, 2023
  15. Mar 05, 2023
  16. Feb 26, 2023
  17. Feb 13, 2023
  18. Feb 05, 2023
  19. Jan 22, 2023
  20. Jan 15, 2023
  21. Dec 11, 2022
  22. Nov 06, 2022
  23. Oct 04, 2022
  24. Sep 27, 2022
  25. Jul 24, 2022
  26. Jul 10, 2022
  27. May 29, 2022
  28. May 22, 2022
  29. May 01, 2022
  30. Apr 03, 2022
  31. Mar 13, 2022
  32. Mar 06, 2022
  33. Feb 27, 2022
  34. Feb 15, 2022
  35. Dec 19, 2021
  36. Dec 12, 2021
  37. Oct 31, 2021
  38. Oct 24, 2021
  39. Oct 17, 2021
  40. Oct 03, 2021
Loading