[FIX] account: removed date fields on automatic reconciliation wizard (these options were not supported before so we remove the fields because we don't see a real need for it)
bzr revid: qdp-launchpad@openerp.com-20120215135115-i32tnzekvnn5u37l
This commit is contained in:
parent
2285ce9b02
commit
29ca2327c1
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue