mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[REF] account_constraint: clearer set usage
This commit is contained in:
@@ -52,10 +52,8 @@ class AccountMoveLine(orm.Model):
|
|||||||
if not vals:
|
if not vals:
|
||||||
return False
|
return False
|
||||||
rec_keys = set(["reconcile_id", "reconcile_partial_id"])
|
rec_keys = set(["reconcile_id", "reconcile_partial_id"])
|
||||||
write_keys = set(vals.keys())
|
write_keys = set(vals)
|
||||||
if (rec_keys >= write_keys):
|
return rec_keys.issuperset(write_keys)
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
def _check_invoice_related_move(self, cr, uid, ids, vals=None, context=None):
|
def _check_invoice_related_move(self, cr, uid, ids, vals=None, context=None):
|
||||||
for line in self.browse(cr, uid, ids, context=context):
|
for line in self.browse(cr, uid, ids, context=context):
|
||||||
|
|||||||
Reference in New Issue
Block a user