Skip to content
Snippets Groups Projects

Add a new state to monthly statements for manual validation.

Merged szeka.wong requested to merge topic/11.0/us-4709 into branch/11.0
5 files
+ 21
3
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -114,7 +114,11 @@ class MonthlyStatement(models.Model):
)
state = fields.Selection(
selection=[("in_progress", "In Progress"), ("done", "Done")],
selection=[
("draft", "Draft"),
("in_progress", "In Progress"),
("done", "Done"),
],
string="State",
readonly=True,
required=True,
@@ -129,6 +133,12 @@ class MonthlyStatement(models.Model):
),
)
@api.multi
def validate(self):
self.write({"state": "in_progress"})
for statement in self:
statement.register_process_job()
@api.multi
def open_lines(self):
"""View display action that opens lines through breadcrumbs."""
Loading