Skip to content

[FIX]purchase_ux: fix the error when creating a purchase order with a… - #325

Open
jcadhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-t-67503-jc
Open

[FIX]purchase_ux: fix the error when creating a purchase order with a…#325
jcadhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-t-67503-jc

Conversation

@jcadhoc

@jcadhoc jcadhoc commented May 27, 2026

Copy link
Copy Markdown
Contributor

… product that has no default code

@roboadhoc

Copy link
Copy Markdown
Contributor

Pull request status dashboard

@jcadhoc
jcadhoc force-pushed the 19.0-t-67503-jc branch from d22bb4a to 0deb950 Compare May 27, 2026 18:48
jcadhoc pushed a commit to adhoc-dev/purchase that referenced this pull request Aug 13, 2026
_compute_price_unit_and_date_planned_and_name was applying standard_price
as a fallback for any line with price_unit=0, even when a seller was
configured. With product_replenishment_cost installed, standard_price
is overwritten by the replenishment-cost cron (often in ARS), causing
wrong prices when the seller later sets the correct net_price.

Backport/adaptation of ingadhoc#325 to 18.0. The 19.0 fix
uses `selected_seller_id` (field not present in 18.0); here we replace
it with an explicit _select_seller() call — if a seller is found, we
skip the standard_price fallback and let product_replenishment_cost
resolve the price via net_price.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants