URL: <https://savannah.gnu.org/bugs/?64665>
Summary: Product cost_price needs to be passed as an argument in stock moves Group: GNU Health Submitter: meanmicio Submitted: Thu 14 Sep 2023 11:01:54 AM UTC Category: None Severity: 3 - Normal Item Group: None Status: Confirmed Privacy: Public Assigned to: meanmicio Open/Closed: Open Release: None Discussion Lock: Any Module: stock Component: Hospital Management _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Thu 14 Sep 2023 11:01:54 AM UTC By: Luis Falcon <meanmicio> Since Tryton LTS 6.0, the product cost_price is required in certain stock moves. The issue was introduced by Tryton here: https://hg.tryton.org/modules/stock/rev/694a0303831f It's related to the storage location type. It applies in these scenarios: from_type != 'storage' and to_type == 'storage' from_type == 'storage' and to_type != 'storage' from_type != 'drop' and to_type == 'drop' from_type == 'drop' and to_type != 'drop' Under these scenarios, we need to add the cost price as an argument. Because the cost_price is required in the product, I propose to always pass it as an argument, regardless whether it will be used or not when creating the stock move. health-dev thread with Francisco about this: https://lists.gnu.org/archive/html/health-dev/2023-09/msg00026.html _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?64665> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/