production orders waiting raw materials can not be cancelled
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) | Status tracked in Trunk | |||||
5.0 |
Confirmed
|
Medium
|
Jay Vora (Serpent Consulting Services) | |||
Trunk |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 2 |
Bug Description
I have taken the following issue from forum: http://
I created a producttion order and I cannot delet it. it is in confirmed state waiting for resources and I cannot delete it. I have been able to delete the purchace orders for the resources.
In the production order's details I can see movements but I cannot delete any of those movements because only "draft" moves can be deleted, which leaves me to believe that those are confirmed as well.
-------
I just tested the case and I can reproduce it. Production orders can be cancelled on whatever intermediate status they are, except when they are waiting for goods. It doesn't seem to be correct having the possibility of cancelling the order once raw material for production are received, and not before.
I think cancelling an order on this status should cancel or even delete the related planified stock moves and production order related purchase or procurement orders and even "child" productions orders. So this means, cancelling on cascade all related objects.
Additionaly: If you cancel a production order just started, the related movements from stock to production are cancelled wich is correct but if materials come from a child location, raw materials stay on parent stock location. I think they should come back to their original location, where they come from.
Best regards:
Ana
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 847 lines (+137/-98)39 files modifiedaccount/report/account_balance.py (+2/-0)
account/wizard/account_automatic_reconcile.py (+4/-1)
account/wizard/account_change_currency.py (+3/-3)
account/wizard/account_chart.py (+7/-7)
account/wizard/account_fiscalyear_close.py (+4/-1)
account/wizard/account_fiscalyear_close_state.py (+3/-3)
account/wizard/account_invoice_refund.py (+5/-1)
account/wizard/account_move_bank_reconcile.py (+4/-4)
account/wizard/account_move_journal.py (+1/-1)
account/wizard/account_move_line_reconcile_select.py (+3/-3)
account/wizard/account_move_line_unreconcile_select.py (+3/-3)
account/wizard/account_open_closed_fiscalyear.py (+2/-0)
account/wizard/account_reconcile.py (+8/-8)
account/wizard/account_report_balance_sheet.py (+2/-1)
account/wizard/account_report_common.py (+4/-1)
account/wizard/account_report_general_ledger.py (+1/-1)
account/wizard/account_report_partner_balance.py (+1/-1)
account/wizard/account_report_partner_ledger.py (+1/-1)
account/wizard/account_report_profit_loss.py (+1/-1)
account/wizard/account_tax_chart.py (+9/-9)
account/wizard/account_validate_account_move.py (+3/-0)
account/wizard/account_vat.py (+3/-0)
account_analytic_plans/wizard/account_crossovered_analytic.py (+3/-1)
account_coda/wizard/account_coda_import.py (+10/-10)
account_followup/wizard/account_followup_print.py (+2/-2)
account_invoice_layout/report/special_message_invoice.py (+4/-1)
auction/wizard/auction_lots_invoice.py (+2/-2)
hr_recruitment/wizard/hr_recruitment_phonecall.py (+5/-5)
hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py (+9/-9)
lunch/wizard/lunch_order_confirm.py (+2/-2)
point_of_sale/wizard/pos_payment.py (+3/-0)
point_of_sale/wizard/pos_return.py (+2/-2)
product/wizard/product_price.py (+2/-0)
product_margin/product_margin_view.xml (+3/-0)
project/wizard/project_task_delegate.py (+2/-0)
project_gtd/wizard/project_gtd_fill.py (+3/-3)
project_long_term/wizard/project_compute_phases.py (+5/-5)
project_long_term/wizard/project_compute_tasks.py (+2/-2)
stock/wizard/stock_move.py (+4/-4)
- OpenERP Core Team: Pending requested
-
Diff: 238 lines (+35/-12)16 files modifiedaccount/report/account_balance.py (+2/-0)
account/wizard/account_move_journal.py (+1/-1)
account/wizard/account_open_closed_fiscalyear.py (+2/-0)
account/wizard/account_report_balance_sheet.py (+2/-1)
account/wizard/account_report_common.py (+4/-1)
account/wizard/account_report_general_ledger.py (+1/-1)
account/wizard/account_report_partner_balance.py (+1/-1)
account/wizard/account_report_partner_ledger.py (+1/-1)
account/wizard/account_report_profit_loss.py (+1/-1)
account/wizard/account_validate_account_move.py (+3/-0)
account/wizard/account_vat.py (+3/-0)
auction/wizard/auction_lots_invoice.py (+2/-2)
mrp/mrp.py (+2/-1)
product/pricelist.py (+1/-1)
stock/stock.py (+8/-0)
stock/wizard/stock_invoice_onshipping.py (+1/-1)
Hello Ana,
Production order will be cancelled when you cancel the concerned picking.
Try cancelling the picking and then, reload the production order,you will be able to cancel it.
Thanks.