openerp-expert-production team mailing list archive
-
openerp-expert-production team
-
Mailing list archive
-
Message #00125
[Bug 616634] Re: deleting a product would better cascade delete related stock.moves
We have been developing a way which will not confuse users by these unfriendly integrity errors.
Thanks.
** Changed in: openobject-addons
Milestone: None => 5.0.13
--
deleting a product would better cascade delete related stock.moves
https://bugs.launchpad.net/bugs/616634
You received this bug notification because you are a member of OpenERP
Manufacturing Experts, which is a direct subscriber.
Status in OpenObject Addons Modules: Invalid
Bug description:
Similar to #526081, but concerns the stock module.
Deleting a product gives the well-known error:
„null value in column "product_id" violates not-null constraint
CONTEXT: SQL statement "UPDATE ONLY "public"."stock_move" SET "product_id" = NULL WHERE $1 OPERATOR(pg_catalog.=) "product_id""
I would suggest cascade delete.