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

[FIX] mrp: wrong use of self #32923

Closed

Conversation

Whenrow
Copy link
Contributor

@Whenrow Whenrow commented Apr 24, 2019

The method _workorder_line_ids() is defined on mrp.workorder while self
is an instance of change_production_qty wizard in this case. Without this
commit, changing the quantity to produce of a manufactoring order with workorders
already planned raised a traceback.

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@@ -827,3 +827,26 @@ def test_04b_test_planning_date(self):
# Check that the workorder is planned now and that it lasts one hour
self.assertEqual(workorder.date_planned_start, date_start, msg="Workorder should be planned tomorrow.")
self.assertEqual(workorder.date_planned_finished, date_start + timedelta(hours=1), msg="Workorder should be done one hour later.")

def test_change_production_1(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test_change_production_quantity_1
""" Change the quantity to produce on the MO while workorders are already planned. """

@C3POdoo C3POdoo added the RD research & development, internal work label Apr 24, 2019
The method _workorder_line_ids() is defined on mrp.workorder while `self`
is an instance of change_production_qty wizard in this case. Without this
commit, changing the quantity to produce of a manufactoring order with workorders
already planned raised a traceback.
@Whenrow Whenrow force-pushed the saas-12.3-fix-change-quantity-whe branch from f1800f2 to f6d8111 Compare April 24, 2019 14:03
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Apr 24, 2019
@Whenrow
Copy link
Contributor Author

Whenrow commented Apr 29, 2019

see #32948

@Whenrow Whenrow closed this Apr 29, 2019
@robodoo robodoo added closed 💔 and removed CI 🤖 Robodoo has seen passing statuses labels Apr 29, 2019
@Whenrow Whenrow deleted the saas-12.3-fix-change-quantity-whe branch October 9, 2019 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants