Closed ybofr closed 9 years ago
@anajuaristi, se ha prohibido modificar las LdMs una vez activadas? Si es así, Eva lleva razón aquí.
Yes. This was a requierement aproved for all customers on our funding. They don't want allowing changes once BOM has been activated. You can always make a copy and delete the old bom if you don't need it. It's not restricted and system will allow you deleting if it has not been used. But I see correct having a warning advicing that after activated changes will not be allowed.
Odoo doesn't allow to warn, but to raise an Exception that avoids to "activate" it.
Ok. I agree with that.
@ybofr question is that if you want to just use your bom in draft status, having the possibility of modifying like you want. There is no problem since you can have "active" button allowed. If you don't want people use draft boms but only "active" boms, restricting changes once Bom has been aproved, just activate it. So both aproches are covered.
@pedrobaeza
So.. to fix this issue the solution would be: .- Advice when activating bom: "Bom without routing is going to be activated" Accept Cancel .- Advice when historifying bom: "Bom is going to be historyfied" are you sure? Accept Cancel
Both advices will be includen in Bom version module. Agree?
@alfredoavanzosc
Es necesario hacer los siguientes cambios en el módulo bom_version
Un par de apuntes:
Al final queda pues así: Es necesario hacer los siguientes cambios en el módulo bom_version
@ybofr we just published a new version of bom_version, now renamed to bom_state, where we included several of your suggestions.
Now it's posible navigating from active to draft and active again, and it will show a warning when historifying + another when activating bom without routing
So, I close the issue as it's made.
Thank you!!!
[DEL mrp_bom_version, NEW mrp_bom_state] #595
Due to the fact that the BOM cannot be changed after becoming active, the activation workflow should give a warning when no routing has been assigned. This is due to the fact that the link between BOM and Routing is done in the BOM and that no change is allowed once the BOM has been activated.
The rule of not being allowed to change anything in the BOM after the activation is very strong. I'm not sure, it is comfortable for the users. A slight mistake in the BOM before activation and then a new BOM MUST be created.