[trunk]Adding a component in BOM after line edit result in column view glitch

Asked by Yann Papouin on 2011-12-26

I'm not sure if it's specifically related to newly created BOM editing but take a look on the screenshot attached.
Steps to reproduce:
- Create a new Bom
- Create new component (select one random) and save active line
- Create new component (select one random) and save active line
- Edit product quantity of the last component and press Return

Column glitch appears.

nb:
- I'm also able to reproduce on existing BOM but only when adding new components
- Current form cannot be save after such glitch: ValidateError Error occurred while validating the field(s) product_id: BoM line product should not be same as BoM product.

Question information

Language:
English Edit question
Status:
Open
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
2011-12-26
Last reply:
2011-12-31
Amit Parik (amit-parik) said : #1

Hello Yann,

This is not a bug, but I think you might have a misunderstand something.

We have put a constraint on BOM then you have faced this type of massage.

Let me explain in detail.
We have not allow the same component is same as a produce product.
Also We have not allow the same component more in one time in BOM.(As a functional way this is correct so we can not allow it)

So for this two condition we have put a constraint (product_id: BoM line product should not be same as BoM product.)

Now comes to your scenario.

You have give a same product in more then one time in BOM component as per your screen-shots that's why you have faced this warning massage.

According to your screen-shot you have applied a "Employee" product in two time on your BOM, that's why it's not allowed you.

Hope this will help for you and this is not a bug, so I am closing this issue.

Thanks for understanding!

Can you help with this problem?

Provide an answer of your own, or ask Yann Papouin for more information if necessary.

To post a message you must log in.