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

[11.0] [MIG] purchase_request_department #598

Merged

Conversation

HviorForgeFlow
Copy link
Member

Migration to 11. Minor changes.

Copy link
Member

@nikul-serpentcs nikul-serpentcs left a comment

Choose a reason for hiding this comment

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

Improve Code

purchase_request_department/__init__.py Outdated Show resolved Hide resolved
purchase_request_department/__manifest__.py Show resolved Hide resolved
purchase_request_department/__manifest__.py Outdated Show resolved Hide resolved
purchase_request_department/hooks.py Outdated Show resolved Hide resolved
@HviorForgeFlow HviorForgeFlow force-pushed the 11.0-mig-purchase_request_department branch from e27e4f0 to 8c8f2e1 Compare October 23, 2018 07:37
@HviorForgeFlow
Copy link
Member Author

All comments attended @nikul-serpentcs @jbeficent .
Thanks for reviewing 😃

@HviorForgeFlow HviorForgeFlow force-pushed the 11.0-mig-purchase_request_department branch from 8c8f2e1 to 515e00d Compare October 24, 2018 08:05
@HviorForgeFlow HviorForgeFlow force-pushed the 11.0-mig-purchase_request_department branch from 515e00d to 030bccf Compare November 8, 2018 14:04
purchase_request_department/README.rst Show resolved Hide resolved
def _get_my_department(self):
employees = self.env.user.employee_ids
return (employees[0].department_id if employees
else self.env['hr.department'])

Choose a reason for hiding this comment

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

does not this return env object and not Id False for the default to digest ?

Copy link
Member Author

Choose a reason for hiding this comment

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

What should it be done to solve this?? @JayVora-SerpentCS

Choose a reason for hiding this comment

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

IMHO, return (employees[0].department_id if employees else False) should do. I could be wrong, but you may check.

@JordiBForgeFlow JordiBForgeFlow force-pushed the 11.0-mig-purchase_request_department branch from 030bccf to 525cd4d Compare December 7, 2018 04:11
@HviorForgeFlow HviorForgeFlow force-pushed the 11.0-mig-purchase_request_department branch 2 times, most recently from 775286c to 71a8c91 Compare December 7, 2018 10:21
@@ -1,3 +1,5 @@
server-tools
product-attribute
server-ux
hr
purchase-workflow https://github.com/Eficent/purchase-workflow.git 11.0-mig-purchase_request
Copy link
Contributor

Choose a reason for hiding this comment

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

dependency merged, can you remove this and rebase?

Copy link
Member Author

Choose a reason for hiding this comment

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

done!

@HviorForgeFlow HviorForgeFlow force-pushed the 11.0-mig-purchase_request_department branch from 71a8c91 to 294fa5d Compare December 13, 2018 15:30
Copy link
Contributor

@LoisRForgeFlow LoisRForgeFlow left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@HviorForgeFlow
Copy link
Member Author

Update review
CC: @jbeficent @JayVora-SerpentCS @nikul-serpentcs

Copy link
Member

@nikul-serpentcs nikul-serpentcs left a comment

Choose a reason for hiding this comment

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

Minor change
self.env.ref('purchase_request.group_purchase_request_user') use as globel variable,
otherwise LGTM 👍

@emagdalenaC2i emagdalenaC2i mentioned this pull request Dec 29, 2018
54 tasks
@JordiBForgeFlow JordiBForgeFlow force-pushed the 11.0-mig-purchase_request_department branch from 294fa5d to 00630e2 Compare January 10, 2019 14:21
@JordiBForgeFlow JordiBForgeFlow merged commit 72b0f8d into OCA:11.0 Jan 10, 2019
@HviorForgeFlow HviorForgeFlow deleted the 11.0-mig-purchase_request_department branch January 10, 2019 15:15
bealdav pushed a commit to akretion/purchase-workflow that referenced this pull request Mar 19, 2021
Signed-off-by pedrobaeza
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

Successfully merging this pull request may close these issues.

9 participants