Merge lp://qastaging/~camptocamp/department-mgmt/add-account-department-fix-default-anyltic-jge into lp://qastaging/~department-core-editors/department-mgmt/7.0
Status: | Merged |
---|---|
Merged at revision: | 19 |
Proposed branch: | lp://qastaging/~camptocamp/department-mgmt/add-account-department-fix-default-anyltic-jge |
Merge into: | lp://qastaging/~department-core-editors/department-mgmt/7.0 |
Diff against target: |
118 lines (+66/-3) 2 files modified
analytic_department/analytic.py (+51/-3) analytic_department/analytic_view.xml (+15/-0) |
To merge this branch: | bzr merge lp://qastaging/~camptocamp/department-mgmt/add-account-department-fix-default-anyltic-jge |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Reis | Approve | ||
Guewen Baconnier @ Camptocamp | code review | Approve | |
JB (eficent.com) | Pending | ||
Review via email:
|
Description of the change
Hi,
Add a default value for department_uid and add a new field to manage account's related department.
As suggested in the MP related to task's department (https:/
* The first one is the user's employee related department
* The second is the analytic account's related department
Both information are valuable, depending on what you want to know. In my use case, the department_id of the line is fulfill by the employee's department through timesheet lines mostely.
I suggest here a way of dealing with this, basically:
* department_id is the user's related department, given by a default value calling _get_department
* A new field called account_
* Adapt all search, group and tree view
This is another suggestion/proposal against this one:
Regards,
Joël
l.21: context propagation is missing
l.25-25: indentation could be aligned
l.37: if the department of the account changes, the analytic lines won't be changed. That's maybe what is wanted though. I propose either to add triggers, either to add a comment why the departement on the analytic lines should not be changed