Steps to reproduce: - create two storable products (Great Product - Super Product) - automated avco - create rfq with the two products - confirm -receive products - create Bill - set qty of one Great Product to 0 -> save - create bill for the Great Product - confirm Issue: User Error You can only reconcile posted entries Cause: `_get_all_related_aml()` fetches all aml related to the `stock_moves` with the product in the bill we want to post. It retrieves the aml of the bill in which we have put the product quantity to 0 but that it is still in draft. And we try to reconcile this draft move_line in https://github.com/odoo/odoo/blob/d0fdc38385f5f259da259d21e9137494e6d7c17d/addons/account/models/account_move_line.py#L2308 Solution: filter the `product_account_moves(_lines)` so we don't take into account moves that are still in draft opw-3180209 closes odoo/odoo#114328 X-original-commit: b1a74a1841c05e4e37643e17f6b97dfff11555cd Signed-off-by: Adrien Widart <awt@odoo.com>