c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #33263
[Bug 860625] [NEW] nan_pricelist_extended: no pricelist can match when first item is based partnerinfo
Public bug reported:
In nan_pricelist_extended in v5, it seems that there is a case where no price can be found even though an item would match :
If the first item is based on the partner section, and the current partner is not in the supplier info, then this item should be skipped and the next item should be considered.
Instead, this item is not skipped.
I think this is due to price_get_extended() calling _get_first_item with
supplier_ids = list of suppliers of the product: this will match every
time, but won't produce a useable price if the current partner is NOT a
supplier.
I humbly suggest price_get_extended() should be called with supplier_ids = the current partner.
I think it matches the non-optimized flow.
Lionel Sausin
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/860625
Title:
nan_pricelist_extended: no pricelist can match when first item is
based partnerinfo
Status in OpenERP Addons (modules):
New
Bug description:
In nan_pricelist_extended in v5, it seems that there is a case where no price can be found even though an item would match :
If the first item is based on the partner section, and the current partner is not in the supplier info, then this item should be skipped and the next item should be considered.
Instead, this item is not skipped.
I think this is due to price_get_extended() calling _get_first_item
with supplier_ids = list of suppliers of the product: this will match
every time, but won't produce a useable price if the current partner
is NOT a supplier.
I humbly suggest price_get_extended() should be called with supplier_ids = the current partner.
I think it matches the non-optimized flow.
Lionel Sausin
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/860625/+subscriptions
Follow ups
-
[Bug 860625] Re: pricelist: no match when first item is based on supplier info and partner is not in it
From: qdp (OpenERP), 2011-11-16
-
[Bug 860625] Re: pricelist: no match when first item is based on supplier info and partner is not in it
From: Launchpad Bug Tracker, 2011-09-28
-
[Bug 860625] Re: pricelist: no match when first item is based on supplier info and partner is not in it
From: Numérigraphe, 2011-09-28
-
[Bug 860625] Re: pricelist: no match when first item is based on supplier info and partner is not in it
From: Launchpad Bug Tracker, 2011-09-28
-
[Bug 860625] Re: pricelist: no match when first item is based on supplier info and partner is not in it
From: Launchpad Bug Tracker, 2011-09-28
-
[Bug 860625] Re: pricelist: no match when first item is based on supplier info and partner is not in it
From: Numérigraphe, 2011-09-28
-
[Bug 860625] Re: nan_pricelist_extended: no match when first item is based on supplier info and partner is not in it
From: Olivier Dony (OpenERP), 2011-09-28
-
[Bug 860625] Re: nan_pricelist_extended: no match when first item is based on supplier info and partner is not in it
From: Numérigraphe, 2011-09-27
-
[Bug 860625] Re: nan_pricelist_extended: no pricelist can match when first item is based partnerinfo
From: Numérigraphe, 2011-09-27
-
[Bug 860625] Re: nan_pricelist_extended: no pricelist can match when first item is based partnerinfo
From: Launchpad Bug Tracker, 2011-09-27
-
[Bug 860625] [NEW] nan_pricelist_extended: no pricelist can match when first item is based partnerinfo
From: Numérigraphe, 2011-09-27
References