mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-05 01:16:27 +00:00
Fix le can_create de Facture
This commit is contained in:
parent
2263b97d78
commit
167bc60123
1 changed files with 2 additions and 2 deletions
|
@ -232,9 +232,9 @@ class Facture(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model):
|
||||||
return True, None
|
return True, None
|
||||||
if len(Paiement.find_allowed_payments(user_request)) <= 0:
|
if len(Paiement.find_allowed_payments(user_request)) <= 0:
|
||||||
return False, _("There are no payment types which you can use.")
|
return False, _("There are no payment types which you can use.")
|
||||||
if len(Article.find_allowed_articles(user_request)):
|
if len(Article.find_allowed_articles(user_request)) <= 0:
|
||||||
return False, _("There are no article that you can buy.")
|
return False, _("There are no article that you can buy.")
|
||||||
return True
|
return True, None
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(Facture, self).__init__(*args, **kwargs)
|
super(Facture, self).__init__(*args, **kwargs)
|
||||||
|
|
Loading…
Reference in a new issue