← Back to team overview

openerp-community-reviewer team mailing list archive

lp:~camptocamp/account-financial-tools/account-contraints-state-vre into lp:account-financial-tools

 

Vincent Renaville@camptocamp has proposed merging lp:~camptocamp/account-financial-tools/account-contraints-state-vre into lp:account-financial-tools.

Requested reviews:
  Account Core Editors (account-core-editors)

For more details, see:
https://code.launchpad.net/~camptocamp/account-financial-tools/account-contraints-state-vre/+merge/193884

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_reconcile_id
My fix add state in the authorised fields.

-- 
https://code.launchpad.net/~camptocamp/account-financial-tools/account-contraints-state-vre/+merge/193884
Your team OpenERP Community Reviewer is subscribed to branch lp:account-financial-tools.
=== modified file 'account_constraints/account_constraints.py'
--- account_constraints/account_constraints.py	2013-07-11 08:33:18 +0000
+++ account_constraints/account_constraints.py	2013-11-05 07:08:40 +0000
@@ -51,7 +51,7 @@
         """
         if not vals:
             return False
-        rec_keys = set(["reconcile_id", "reconcile_partial_id"])
+        rec_keys = set(["reconcile_id", "reconcile_partial_id", "state"])
         write_keys = set(vals)
         return rec_keys.issuperset(write_keys)
 


Follow ups