Commit 436c2e51 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

Hide empty account for paid_by/paid_for when creating a new ExpenseLine

I'm not sure what "account" is, but looking at our instance, empty account mean
"old stuff".
parent e59d734d9e2c
Pipeline #14977 passed with stage
in 2 minutes and 52 seconds
......@@ -45,8 +45,11 @@ class ExpenseLine(EntityType):
paid_by = SubjectRelation('PaidByAccount', cardinality='1*', constraints=[
RQLVocabularyConstraint('NOT (O associated_to A, A in_state ST, ST name "deactivated")'),
RQLVocabularyConstraint('NOT (O account "")'),
paid_for = SubjectRelation('PaidForAccount', cardinality='+*', constraints=[
RQLVocabularyConstraint('NOT O account ""'),
paid_for = SubjectRelation('PaidForAccount', cardinality='+*')
currency = String(required=True, maxsize=30, default=u'EUR')
exchange_rate = Float(required=True, default=1.0)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment