Browse Source

[FIX] Make company_id a required field in statement wizard

pull/477/head
Graeme Gellatly 6 years ago
parent
commit
99807baad8
  1. 5
      partner_statement/wizard/statement_common.py

5
partner_statement/wizard/statement_common.py

@ -14,7 +14,8 @@ class StatementCommon(models.AbstractModel):
company_id = fields.Many2one(
comodel_name='res.company',
default=lambda self: self.env.user.company_id,
string='Company'
string='Company',
required=True,
)
date_end = fields.Date(required=True, default=fields.Date.context_today)
show_aging_buckets = fields.Boolean(default=True)
@ -22,7 +23,7 @@ class StatementCommon(models.AbstractModel):
default=lambda self: len(self._context['active_ids'])
)
filter_partners_non_due = fields.Boolean(
string='Don\'t show partners with no due entries', default=True)
string="Don't show partners with no due entries", default=True)
filter_negative_balances = fields.Boolean(
"Exclude Negative Balances", default=True
)

Loading…
Cancel
Save