})
if data_type == 'product':
- key = ('product', values['partner_id'], values['product_id'])
+ key = ('product', values['partner_id'], values['product_id'], values['debit'] > 0)
elif data_type == 'tax':
- key = ('tax', values['partner_id'], values['tax_code_id'],)
+ key = ('tax', values['partner_id'], values['tax_code_id'], values['debit'] > 0)
elif data_type == 'counter_part':
- key = ('counter_part', values['partner_id'], values['account_id'])
+ key = ('counter_part', values['partner_id'], values['account_id'], values['debit'] > 0)
else:
return