~unifield-team/unifield-wm/sync-uf2.1-0

« back to all changes in this revision

Viewing changes to sync_client/update.py

  • Committer: jf
  • Date: 2016-03-14 08:08:36 UTC
  • Revision ID: jfb@tempo-consulting.fr-20160314080836-mrjhrmqx76ugzx5h
Tags: uf2.1-0p2, uf2.1-0p3
US-852 [FIX] AJIs sync: do not execute AJI sync update if the linked JI is not run
If coordo allocates a JI to a project CC, at project the AJI is not linked to a JI, but the update should be executed at project

Show diffs side-by-side

added added

removed removed

Lines of Context:
801
801
                        #US-852: if account_move_line is given, then cannot use the fallback value, but exit the import!
802
802
                        # THIS FIX COULD ALSO OPEN FOR OTHER BUG, BUT CHECK IF THE RULES THAT CONTAIN THE OBJECT (HERE account_move_line) 
803
803
                        if 'account_move_line' in xmlid:
804
 
                            return False
 
804
                            m, sep, sdref = xmlid.partition('.')
 
805
                            if self.search(cr, uid, [('sdref', '=', sdref), ('run', '=', False)], order='NO_ORDER', context=context):
 
806
                                return False
805
807
                        fb = fallback.get(field, False)
806
808
                        if not fb:
807
809
                            raise ValueError("no fallback value defined")