mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIx] Add active on credit control policy in order to deactivate it
This commit is contained in:
committed by
Pedro M. Baeza
parent
675509627a
commit
9f1e86178c
@@ -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"""
|
||||
|
||||
@@ -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" >
|
||||
|
||||
Reference in New Issue
Block a user