-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
[14.0][MIG] purchase_operating_unit [WIP] #343
[14.0][MIG] purchase_operating_unit [WIP] #343
Conversation
76b287f
to
a1e91e4
Compare
@kittiu this PR it's still on WIP? |
Itself no. But it is waiting for stock_operating_unit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally with stock_operating_unit and it works fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update your travis.
Functional Test 👍
Functional Test: My login: step to error
|
picking_vals = super(PurchaseOrder, self)._prepare_picking() | ||
picking_vals["operating_unit_id"] = self.operating_unit_id.id | ||
return picking_vals | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def action_create_invoice(self):
ctx = self._context.copy()
for order in self:
ctx["default_operating_unit_id"] = order.operating_unit_id.id or False
return super(PurchaseOrder, self.with_context(ctx)).action_create_invoice()
I think we should add context default ou to invoice for fix it.
a1e91e4
to
a472524
Compare
a472524
to
0aa2d83
Compare
This PR has the |
/ocabot merge nobump |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 9c318b6. Thanks a lot for contributing to OCA. ❤️ |
Depends
Note: test locally ok.