[FIx] Add active on credit control policy in order to deactivate it

This commit is contained in:
Vincent Renaville
2013-12-11 11:34:20 +01:00
committed by Pedro M. Baeza
parent 675509627a
commit 9f1e86178c
2 changed files with 6 additions and 0 deletions

View File

@@ -45,7 +45,12 @@ class CreditControlPolicy(Model):
domain="[('reconcile', '=', True)]",
help="This policy will be active only"
" for the selected accounts"),
'active': fields.boolean('Active'),
}
_defaults = {
'active': True,
}
def _move_lines_domain(self, cr, uid, policy, controlling_date, context=None):
"""Build the default domain for searching move lines"""

View File

@@ -10,6 +10,7 @@
<field name="name"/>
<field name="do_nothing"/>
<field name="company_id"/>
<field name="active"/>
<notebook colspan="4">
<page string="Policy levels">
<field name="level_ids" nolabel="1" colspan="4" >