Design of mrp.production

Asked by Cédric Krier

Why is move_lines on mrp.production a many2many?
Do you really think products can be consumed many times ?

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
OpenERP Manufacturing Experts Edit question
Last query:
Last reply:
Revision history for this message
Kinly (kinlyfordy4u) said :
#1

hello

why this is many to many ?

Revision history for this message
ViktorNagy (viktor-nagy) said :
#2

I've spotted this just today, and thought as follows. To use a one2many, you would need a foreign key in stock.moves, as created for the production_id. To avoid a foreign key, we can simply use a many2many relationship. Of course, its richness will never be used totally.

Can you help with this problem?

Provide an answer of your own, or ask Cédric Krier for more information if necessary.

To post a message you must log in.