Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deltatech MRP Order Merge #17

Open
gr22 opened this issue Jun 26, 2018 · 0 comments
Open

Deltatech MRP Order Merge #17

gr22 opened this issue Jun 26, 2018 · 0 comments

Comments

@gr22
Copy link

gr22 commented Jun 26, 2018

When merging MOs the merged MO has the product_quantity of the first MO instead the sum of all MOs and producing fails in mrp_product_produce.py
the lines:

@api.multi
    def check_finished_move_lots(self):
        lots = self.env['stock.move.lots']
        produce_move = self.production_id.move_finished_ids.filtered(lambda x: x.product_id == self.product_id and x.state not in ('done', 'cancel'))
        if produce_move and produce_move.product_id.tracking != 'none':

produce_move will have multiple values but produce_move.product_id.tracking will expect singleton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant