Skip to content

Commit

Permalink
change state field to readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
gborelli committed Nov 7, 2014
1 parent 5a143cd commit 7c7d95c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sale_commission/model/settled.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@ class settlement(models.Model):
default=fields.Datetime.now()
)

# TODO: I think a workflow is necessary to manage 'cancel' state/transition
state = fields.Selection(
[
("invoiced", "Invoiced"),
("settled", "Settled"),
("cancel", "Cancel")
],
string="State",
readonly=True,
default="settled"
)

Expand Down

0 comments on commit 7c7d95c

Please sign in to comment.