mirror of
https://github.com/bringout/oca-purchase.git
synced 2026-04-20 04:42:04 +02:00
When multiple PR lines for the same product were merged into a single
PO line, the allocation quantity was incorrectly calculated using
min(existing_po_qty, pr_line_qty) instead of using the actual PR line
quantity. This caused incorrect total quantities in the generated RFQ.
Example: PR with sir01 qty=10 and sir01 qty=7 should produce PO line
with qty=17, but was producing qty=14.
🤖 assisted by claude
33 lines
1.2 KiB
Python
33 lines
1.2 KiB
Python
# Copyright 2018-2019 ForgeFlow, S.L.
|
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0).
|
|
|
|
{
|
|
"name": "Purchase Request",
|
|
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
|
"version": "16.0.2.4.1",
|
|
"summary": "Use this module to have notification of requirements of "
|
|
"materials and/or external services and keep track of such "
|
|
"requirements.",
|
|
"website": "https://github.com/OCA/purchase-workflow",
|
|
"category": "Purchase Management",
|
|
"depends": ["purchase_stock"],
|
|
"data": [
|
|
"security/purchase_request.xml",
|
|
"security/ir.model.access.csv",
|
|
"data/purchase_request_sequence.xml",
|
|
"data/purchase_request_data.xml",
|
|
"reports/report_purchase_request.xml",
|
|
"wizard/purchase_request_line_make_purchase_order_view.xml",
|
|
"views/purchase_request_view.xml",
|
|
"views/purchase_request_line_view.xml",
|
|
"views/purchase_request_report.xml",
|
|
"views/product_template.xml",
|
|
"views/purchase_order_view.xml",
|
|
"views/stock_move_views.xml",
|
|
"views/stock_picking_views.xml",
|
|
],
|
|
"demo": ["demo/purchase_request_demo.xml"],
|
|
"license": "LGPL-3",
|
|
"installable": True,
|
|
"application": True,
|
|
}
|