Merge lp:~camptocamp/account-financial-tools/account-contraints-state-vre into lp:~account-core-editors/account-financial-tools/7.0
Proposed by
Vincent Renaville@camptocamp
Status: | Work in progress |
---|---|
Proposed branch: | lp:~camptocamp/account-financial-tools/account-contraints-state-vre |
Merge into: | lp:~account-core-editors/account-financial-tools/7.0 |
Diff against target: |
11 lines (+1/-1) 1 file modified
account_constraints/account_constraints.py (+1/-1) |
To merge this branch: | bzr merge lp:~camptocamp/account-financial-tools/account-contraints-state-vre |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Joël Grand-Guillaume @ camptocamp | code review, no tests | Disapprove | |
Guewen Baconnier @ Camptocamp | Needs Information | ||
Review via email: mp+193884@code.launchpad.net |
Description of the change
Hello,
When you generate entries lines from the previous year, the wizard validate all move lines from the previous year.
The constraint will raise because, the field state is not in the authorized field like reconcile_id and partial_
My fix add state in the authorised fields.
To post a comment you must log in.
Unmerged revisions
- 125. By Vincent Renaville@camptocamp
-
[FIX] add state in authorized field to be write, due to Generate new fiscalyear wizard, that revalid current year move line
Does this change allow to change a move from 'posted' to 'unposted' when it should not have been allowed? This constraint does maybe exist elsewhere, if it it does, so your fix seems correct to me. Otherwise, we should check that that the change is unposted→posted and not posted→unposted.