[FIX] account: removed date fields on automatic reconciliation wizard (these options...
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Wed, 15 Feb 2012 13:51:15 +0000 (14:51 +0100)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Wed, 15 Feb 2012 13:51:15 +0000 (14:51 +0100)
bzr revid: qdp-launchpad@openerp.com-20120215135115-i32tnzekvnn5u37l

addons/account/wizard/account_automatic_reconcile.py
addons/account/wizard/account_automatic_reconcile_view.xml

index 4dfe263..5aeefef 100644 (file)
@@ -35,8 +35,6 @@ class account_automatic_reconcile(osv.osv_memory):
         'period_id': fields.many2one('account.period', 'Period'),
         'max_amount': fields.float('Maximum write-off amount'),
         'power': fields.selection([(p, str(p)) for p in range(2, 5)], 'Power', required=True, help='Number of partial amounts that can be combined to find a balance point can be chosen as the power of the automatic reconciliation'),
-        'date1': fields.date('Starting Date', required=True),
-        'date2': fields.date('Ending Date', required=True),
         'reconciled': fields.integer('Reconciled transactions', readonly=True),
         'unreconciled': fields.integer('Not reconciled transactions', readonly=True),
         'allow_write_off': fields.boolean('Allow write off')
@@ -53,8 +51,6 @@ class account_automatic_reconcile(osv.osv_memory):
         return context.get('unreconciled', 0)
 
     _defaults = {
-        'date1': lambda *a: time.strftime('%Y-01-01'),
-        'date2': lambda *a: time.strftime('%Y-%m-%d'),
         'reconciled': _get_reconciled,
         'unreconciled': _get_unreconciled,
         'power': 2
index a2fe0b3..d7713da 100644 (file)
@@ -13,8 +13,6 @@
                     <newline/>
                     <group>
                         <field name="account_ids" colspan="4" domain="[('reconcile','=',1)]"/>
-                        <field name="date1"/>
-                        <field name="date2"/>
                         <field name="power"/>
                         <field name="allow_write_off"/>
                     </group>