openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #02050
lp:~camptocamp/account-financial-tools/credit-control-line_deactivate into lp:account-financial-tools
Vincent Renaville@camptocamp has proposed merging lp:~camptocamp/account-financial-tools/credit-control-line_deactivate into lp:account-financial-tools.
Requested reviews:
Account Core Editors (account-core-editors)
For more details, see:
https://code.launchpad.net/~camptocamp/account-financial-tools/credit-control-line_deactivate/+merge/198532
Add active on credit control policy in order to deactivate it
--
https://code.launchpad.net/~camptocamp/account-financial-tools/credit-control-line_deactivate/+merge/198532
Your team OpenERP Community Reviewer/Maintainer is subscribed to branch lp:account-financial-tools.
=== modified file 'account_credit_control/policy.py'
--- account_credit_control/policy.py 2013-09-04 12:56:07 +0000
+++ account_credit_control/policy.py 2013-12-11 10:35:39 +0000
@@ -45,7 +45,12 @@
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"""
=== modified file 'account_credit_control/policy_view.xml'
--- account_credit_control/policy_view.xml 2013-07-12 10:44:13 +0000
+++ account_credit_control/policy_view.xml 2013-12-11 10:35:39 +0000
@@ -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" >
Follow ups