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:
|
||||
return False
|
||||
rec_keys = set(["reconcile_id", "reconcile_partial_id"])
|
||||
write_keys = set(vals.keys())
|
||||
if (rec_keys >= write_keys):
|
||||
return True
|
||||
return False
|
||||
write_keys = set(vals)
|
||||
return rec_keys.issuperset(write_keys)
|
||||
|
||||
def _check_invoice_related_move(self, cr, uid, ids, vals=None, context=None):
|
||||
for line in self.browse(cr, uid, ids, context=context):
|
||||
|
||||
Reference in New Issue
Block a user