[IMP] product_catalog_tree: add button to load vendor min qty in list catalog - #915
[IMP] product_catalog_tree: add button to load vendor min qty in list catalog#915fw-bot-adhoc wants to merge 1 commit into
Conversation
|
@jcadhoc @les-adhoc cherrypicking of pull request #908 failed. stdout: Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).
More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port |
|
@jcadhoc @les-adhoc this forward port of #908 is awaiting action (not merged or closed). |
2 similar comments
|
@jcadhoc @les-adhoc this forward port of #908 is awaiting action (not merged or closed). |
|
@jcadhoc @les-adhoc this forward port of #908 is awaiting action (not merged or closed). |
4167813 to
9079b8d
Compare
|
@roboadhoc r+ nobump |
|
@jcadhoc @les-adhoc unable to stage: All commits must have author and committer email, missing email on 9079b8d indicates the authorship is most likely incorrect. |
… catalog Forward-port of ingadhoc#908 plus its follow-up d79511e: the truck button sets the vendor min_qty (so the vendor price applies) instead of adding one like the '+' button. Resolved forward-port conflict in __manifest__.py (version -> 19.0.1.4.0). Forward-Port-Of: ingadhoc#908
9079b8d to
4ee02eb
Compare
|
@jcadhoc @les-adhoc this forward port of #908 is awaiting action (not merged or closed). |
|
@roboadhoc r+ nobump |

Problem
In the list-view catalog the
+button (increase_quantity) always adds 1unit. The kanban catalog instead suggests the vendor's
min_qtyon thefirst add (see
purchaseproduct_catalog/kanban_record.js→addProduct).As a consequence, adding a product whose vendor
min_qtyis greater than theadded quantity from the list catalog selects no seller, and the price falls
back to the product cost — while doing the same from the kanban catalog applies
the vendor price. Same product, different price depending on the view used.
Change
product_catalog_min_qtyon the catalog row (taken from the catalogpayload
min_qty).add_catalog_min_qtythat mirrors the kanbanbehaviour: on the first add it uses the vendor
min_qty(so the vendor priceapplies instead of the cost); once the line already exists it adds one, like
the
+button. The button is only shown when the vendormin_qtyis greaterthan 1.
purchaseis not installed).The existing
+button keeps its behaviour unchanged.Forward-Port-Of: #908