-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
sale_procurement_group_by_line: No "Purchases" button in SO from sale_purchase_stock module #2597
Comments
Hello TelmoSuarezConinpe, Did you find a workaround for this problem ? I have encountered it too and I can't find how to make this work. Thanks. |
I finally found a correction for this problem. For V14, you need to update the file sale_procurement_group_by_line/model/sale.py First, you need to import odoo.api : Then you need to override SaleOrder class by adding this code before the SaleOrderLine class definition :
Explanation : The fix adds the PO from self.order_line.procurement_group_id the same way that module sale_purchase_stock adds it from self.procurement_group_id. With it, when you confirm a SO the corresponding PO is properly linked and the smart button appears correctly. I will try to propose a pull request so that this fix is integrated into the module. |
@TelmoSuarezConinpe would you mind reviewing/testing this PR? #2613 It should solve this issue. |
module: sale_procurement_group_by_line
version: 15.0
Steps to reproduce
Current behavior
In the SO there is no smart button with the related PO
Expected behavior
Additional smart button on the SO with the related PO
The text was updated successfully, but these errors were encountered: