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

[10.0][MIG][IMP] mis_builder_operating_unit #67

Merged
merged 9 commits into from
May 16, 2018

Conversation

sbidoul
Copy link
Member

@sbidoul sbidoul commented May 4, 2017

forward port of #38 plus one fix for the record rule

cc/ @jbeficent

@AaronHForgeFlow
Copy link
Contributor

Hi @sbidoul can you please remove the oca_dependencies.txt file from this Pull Request? I created one Pull Request with all the needed dependencies: #87

The purpose of this is to avoid merging errors

@sbidoul
Copy link
Member Author

sbidoul commented Aug 8, 2017

@aheficent I'll resolve the conflict as soon as #87 is merged.

@AaronHForgeFlow
Copy link
Contributor

@sbidoul #87 is now merged. Can you please rebase your branch?

@sbidoul sbidoul force-pushed the 10.0-mis_builder_operating_unit-sbi branch from d2cf0da to a53bff4 Compare September 28, 2017 15:23
@sbidoul
Copy link
Member Author

sbidoul commented Sep 28, 2017

rebased

@sbidoul
Copy link
Member Author

sbidoul commented Mar 11, 2018

I added an operating filter on mis.report.instance.period, this mean you can, for instance, display operating unit P&L side by side in the same report.

@JordiBForgeFlow
Copy link
Member

That is really cool!

@sbidoul
Copy link
Member Author

sbidoul commented Mar 19, 2018

I restored and accidentally deleted view.

self.report_instance_id.operating_unit_ids.ids))
if self.operating_unit_ids:
aml_domain.append(('operating_unit_id', 'in',
self.operating_unit_ids.ids))
Copy link
Member Author

Choose a reason for hiding this comment

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

I think we need some sudo here otherwise running reports that filter on operating units with users that don't have access to said operating units give funny results.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mean to override the _search method in the account_move_line? https://github.com/OCA/operating-unit/blob/10.0/account_operating_unit/models/account_move.py#L11

Copy link
Member Author

Choose a reason for hiding this comment

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

@aheficent see 1d9c2c5

@sbidoul sbidoul force-pushed the 10.0-mis_builder_operating_unit-sbi branch from 1d9c2c5 to f752c92 Compare May 16, 2018 12:22
@sbidoul sbidoul changed the title [10.0][MIG] mis_builder_operating_unit [10.0][MIG][IMP] mis_builder_operating_unit May 16, 2018
@sbidoul
Copy link
Member Author

sbidoul commented May 16, 2018

I rebased again. Can we consider merging this?

Copy link
Contributor

@AaronHForgeFlow AaronHForgeFlow left a comment

Choose a reason for hiding this comment

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

👍

@JordiBForgeFlow JordiBForgeFlow merged commit a5dc99d into OCA:10.0 May 16, 2018
@sbidoul sbidoul deleted the 10.0-mis_builder_operating_unit-sbi branch May 16, 2018 13:09
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.

4 participants