Commits

Raimon Esteve (Zikzakmedia) committed 752dcd9

Configuration contract sequence. Return None

Comments (0)

Files changed (1)

     __name__ = 'contract.configuration'
     contract_sequence = fields.Property(fields.Many2One('ir.sequence',
             'Contract Reference Sequence', domain=[
-                ('company', 'in', [Eval('context', {}).get('company', 0),
-                        False]),
+                ('company', 'in',
+                    [Eval('context', {}).get('company', -1), None]),
                 ('code', '=', 'contract.contract'),
                 ], required=True))