Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0] [MIG] product_pricelist_supplierinfo #1745

Open
wants to merge 58 commits into
base: 18.0
Choose a base branch
from

Commits on Oct 10, 2024

  1. Configuration menu
    Copy the full SHA
    8d7cbff View commit details
    Browse the repository at this point in the history
  2. product_pricelist_supplierinfo: Several enhancements + concept fixing

    * Don't depend on sales
    * Extended README
    * Tests focused on module specific features
    * Code optimization
    * Don't mix pricelist info with supplier info on criteria
    pedrobaeza authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    d82ea72 View commit details
    Browse the repository at this point in the history
  3. product_pricelist_supplierinfo: Take into account sales order date

    Date order is passed by context, so we have to take this into account for
    computing properly available supplierinfo records.
    pedrobaeza authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    1c2741f View commit details
    Browse the repository at this point in the history
  4. product_pricelist_supplierinfo: Give more priority in order to min_qty

    If not, you can twist the order in the form and rules won't be applied according criteria
    pedrobaeza authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    bfd834b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3962111 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6b2bee8 View commit details
    Browse the repository at this point in the history
  7. [FIX] product_pricelist_supplierinfo: Avoid false computations

    If you set the value "Based on" for using supplier info, but then you change the
    computation type to another one (like fixed price or discount), this code is still
    acting, so we should check both fields.
    pedrobaeza authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    1e69097 View commit details
    Browse the repository at this point in the history
  8. [11.0][FIX] product_pricelist_supplierinfo: Add template compatibility (

    OCA#436)
    
    Previously, only worked fine with product.product.
    carlosdauden authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    037e832 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    91c5b87 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ebd7442 View commit details
    Browse the repository at this point in the history
  11. Translated using Weblate (Spanish)

    Currently translated at 93.3% (14 of 15 strings)
    
    Translation: product-attribute-12.0/product-attribute-12.0-product_pricelist_supplierinfo
    Translate-URL: https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_pricelist_supplierinfo/es/
    claudiagn authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    fe3559b View commit details
    Browse the repository at this point in the history
  12. [IMP] add margin on supplier info to configure the sale price

    When having price per qty at the supplier level and if you want to
    base your pricelist on the supplier price, now you can
    define a margin on the product.supplierinfo
    mourad-ehm authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    c3a1888 View commit details
    Browse the repository at this point in the history
  13. [FIX] product_pricelist_supplierinfo: use _select_seller

    Use standard way to select the seller.
    
    As a result a bug in previous solution is fixed also: before this,
    all supplierinfo records having product_tmpl_id set, were considered
    as possible price for all product variants, even if product_id was
    set also. That resulted in same price for all variants even if
    supplierinfo records had different price for all variants.
    ruuter authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    2c31b23 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    65ccccf View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f712613 View commit details
    Browse the repository at this point in the history
  16. [FIX] product_pricelist_supplierinfo: Converting Price

    If we have suppliers in two or more currencies, and we have a pricelist
    with an item that is selected the "Prices based on supplier info" option
    but the pricelist is in a currency different from the supplierinfo the
    compute of the price get the price on the same amount but with a different
    currency.
    With these changes, we are converting the price to the currency on the
    pricelist that is being used.
    Also, a test was added to prove the previous behaviour.
    CarmenMiranda authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    f7b9907 View commit details
    Browse the repository at this point in the history
  17. Translated using Weblate (French)

    Currently translated at 100.0% (20 of 20 strings)
    
    Translation: product-attribute-12.0/product-attribute-12.0-product_pricelist_supplierinfo
    Translate-URL: https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_pricelist_supplierinfo/fr/
    ypapouin authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    19a6c53 View commit details
    Browse the repository at this point in the history
  18. [FIX] product_pricelist_supplierinfo: ensure product exists

    It is possible that this method is called on an inactive template,
    in which case product_variant_id returns empty recordset and
    _select_seller will raise expected singleton error.
    ruuter authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    f00a918 View commit details
    Browse the repository at this point in the history
  19. [FIX] product_pricelist_supplierinfo: Convert price to UOM on the Sale

    If we have a product with a supplier with a UOM "A" but the product is
    sold with a UOM "B" the price we are getting is the same no matter the
    UOM. For example:
    Product with the price 1200 per Dozen and we sell a 1 unit we are
    getting the price of 1200 for that unit when we should be obtaining 100.
    
    With these changes, we are converting the price to the UOM that is being
    used on the sale or the default on the product.
    Also, a test was added to prove the previous behaviour.
    CarmenMiranda authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    ae6de6b View commit details
    Browse the repository at this point in the history
  20. Added translation using Weblate (Dutch)

    bosd authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    cdc73df View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    6c632c7 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    ed336e1 View commit details
    Browse the repository at this point in the history
  23. [MIG] product_pricelist_supplierinfo: Migration to v13.0

    [UPD] Update product_pricelist_supplierinfo.pot
    
    [UPD] README.rst
    CarlosRoca13 authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    20f9cbd View commit details
    Browse the repository at this point in the history
  24. FIX product_pricelist_supplierinfo: _get_supplierinfo_pricelist_price…

    … when date is datetime.
    
    date may come from context
    eLBati authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    baa1af4 View commit details
    Browse the repository at this point in the history
  25. [FIX] product_pricelist_direct_print: Error when date is not defined

    When we check the price of any product, the date that we pass on the context has to be a Datetime value or None. With this change we avoid to pass a False.
    
    Here you have the reference to the code that check that https://github.com/OCA/OCB/blob/13.0/addons/product/models/product.py#L599-L600
    
    TT29935
    
    product_pricelist_supplierinfo 13.0.1.0.2
    CarlosRoca13 authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    1fcb1bf View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    5a0712b View commit details
    Browse the repository at this point in the history
  27. [MIG] product_pricelist_supplierinfo: Migration to 14.0

    TT31816
    
    [UPD] Update product_pricelist_supplierinfo.pot
    
    [UPD] README.rst
    
    [IMP] update dotfiles [ci skip]
    victoralmau authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    af70735 View commit details
    Browse the repository at this point in the history
  28. [FIX] product_pricelist_supplierinfo: public users

    In the e-commerce, if we have a pricelist with a rule based on
    supplierinfo for a determined supplier partner, such partner could be
    not accesible for public users and the affected products could not be
    reached.
    
    TT31476
    chienandalu authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    8a25d40 View commit details
    Browse the repository at this point in the history
  29. [FIX] product_pricelist_supplierinfo: override min quantity

    If we don't have a supplierinfo that below 1 unit we won't get any
    seller. We want to ensure that the condition is fully ignored to get
    whatever price given the other criterias.
    
    TT33659
    chienandalu authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    437f5c0 View commit details
    Browse the repository at this point in the history
  30. [FIX] product_pricelist_supplierinfo: Allow to show shop for public u…

    …sers
    
    0581b66 is not enough on v13 for
    avoiding the access error, so we sudoed the whole price fetch operation.
    
    TT36898
    pedrobaeza authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    769ec08 View commit details
    Browse the repository at this point in the history
  31. [FIX] product_pricelist_supplierinfo: Show text in the view

    TT36975
    
    product_pricelist_supplierinfo 14.0.1.1.0
    victoralmau authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    b6721cc View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    3841a67 View commit details
    Browse the repository at this point in the history
  33. [UPD] Update product_pricelist_supplierinfo.pot

    oca-ci authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    22f1a8d View commit details
    Browse the repository at this point in the history
  34. [UPD] README.rst

    OCA-git-bot authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    f2ed55f View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    bd20cd7 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    9007c40 View commit details
    Browse the repository at this point in the history
  37. Translated using Weblate (Italian)

    Currently translated at 59.0% (13 of 22 strings)
    
    Translation: product-attribute-15.0/product-attribute-15.0-product_pricelist_supplierinfo
    Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_pricelist_supplierinfo/it/
    francesco-ooops authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    0fc5ab4 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    1396f95 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    bd14951 View commit details
    Browse the repository at this point in the history
  40. [MIG] product_pricelist_supplierinfo: Migration to 16.0

    Assertion in tests involving the pricelist field in products were
    removed, as that field doesn't exist anymore [1], and such assertions
    were intended only to ensure computed price were propagated correctly to
    that field.
    
    [1] odoo/odoo@9e99a9df
    andreagidaltig authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    0392601 View commit details
    Browse the repository at this point in the history
  41. [UPD] Update product_pricelist_supplierinfo.pot

    oca-ci authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    005096c View commit details
    Browse the repository at this point in the history
  42. [UPD] README.rst

    OCA-git-bot authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    cec1771 View commit details
    Browse the repository at this point in the history
  43. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_supplierinfo
    Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_supplierinfo/
    weblate authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    93ecee4 View commit details
    Browse the repository at this point in the history
  44. [FIX] product_pricelist_supplierinfo: inherit the _compute_price meth…

    …od in product_pricelist model
    
    In version 15.0 the _compute_price_rule method was used to obtain the
    product price because the price was a computed field, however, in
    version 16.0 we need to inherit _compute_price from product_pricelist_item
    because this method is used directly when creating a new sale order line.
    andreagidaltig authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    b75bbd2 View commit details
    Browse the repository at this point in the history
  45. [UPD] Update product_pricelist_supplierinfo.pot

    oca-ci authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    6dff529 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    71e7336 View commit details
    Browse the repository at this point in the history
  47. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_supplierinfo
    Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_supplierinfo/
    weblate authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    4686568 View commit details
    Browse the repository at this point in the history
  48. Translated using Weblate (Spanish)

    Currently translated at 100.0% (14 of 14 strings)
    
    Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_supplierinfo
    Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_supplierinfo/es/
    Ivorra78 authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    9ad3f07 View commit details
    Browse the repository at this point in the history
  49. [UPD] README.rst

    OCA-git-bot authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    2bf4a73 View commit details
    Browse the repository at this point in the history
  50. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100.0% (14 of 14 strings)
    
    Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_supplierinfo
    Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_supplierinfo/pt_BR/
    adrianojprado authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    b228c33 View commit details
    Browse the repository at this point in the history
  51. Translated using Weblate (Italian)

    Currently translated at 100.0% (14 of 14 strings)
    
    Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_supplierinfo
    Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_supplierinfo/it/
    mymage authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    93fc96d View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    c8a3700 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    ad2f7a0 View commit details
    Browse the repository at this point in the history
  54. [UPD] Update product_pricelist_supplierinfo.pot

    oca-ci authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    b93a3f2 View commit details
    Browse the repository at this point in the history
  55. [BOT] post-merge updates

    OCA-git-bot authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    0123ac3 View commit details
    Browse the repository at this point in the history
  56. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: product-attribute-17.0/product-attribute-17.0-product_pricelist_supplierinfo
    Translate-URL: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_pricelist_supplierinfo/
    weblate authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    eeae6d1 View commit details
    Browse the repository at this point in the history
  57. Translated using Weblate (Italian)

    Currently translated at 100.0% (14 of 14 strings)
    
    Translation: product-attribute-17.0/product-attribute-17.0-product_pricelist_supplierinfo
    Translate-URL: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_pricelist_supplierinfo/it/
    mymage authored and marielejeune committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    456849e View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    d4b00ab View commit details
    Browse the repository at this point in the history