[IMP] account_check_writing : Removed the unnecessary sequence.

bzr revid: mdi@tinyerp.com-20121123130755-ryz3n70j855v4cz1
This commit is contained in:
Divyesh Makwana (Open ERP) 2012-11-23 18:37:55 +05:30
parent a15d1ea2e2
commit 62e9ffdfb1
3 changed files with 1 additions and 17 deletions

View File

@ -35,7 +35,6 @@ Module for the Check Writing and Check Printing.
'account_view.xml',
'account_voucher_view.xml',
'account_check_writing_data.xml',
'account_check_sequence.xml'
],
'demo': ['account_demo.xml'],
'test': [],

View File

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<record forcecreate="1" id="sequence_type_check_number" model="ir.sequence.type">
<field name="name">Number</field>
<field name="code">account.check.write</field>
</record>
<record id="sequence_account_check_number" model="ir.sequence">
<field name="name">Number</field>
<field name="code">account.check.write</field>
<field eval="3" name="padding"/>
</record>
</data>
</openerp>

View File

@ -29,7 +29,7 @@ class account_check_write(osv.osv_memory):
}
_defaults = {
'check_number': lambda obj, cr, uid, context:obj.pool.get('ir.sequence').get(cr, uid, 'account.check.write'),
'check_number': lambda obj, cr, uid, context:obj.pool.get('ir.sequence').get(cr, uid, 'check.number'),
}
def print_check_write(self, cr, uid, ids, context=None):