[REF] clean vat
bzr revid: mra@mra-laptop-20101021070135-auy20xw9l8uoj70e
This commit is contained in:
parent
8add10403c
commit
60d218eb27
|
@ -29,7 +29,6 @@ class account_vat_declaration(osv.osv_memory):
|
|||
'based_on': fields.selection([('invoices', 'Invoices'),
|
||||
('payments', 'Payments'),],
|
||||
'Based On', required=True),
|
||||
# 'company_id': fields.many2one('res.company', 'Company', required=True),
|
||||
'chart_tax_id': fields.many2one('account.tax.code', 'Chart of Tax', help='Select Charts of Taxes', required=True, domain = [('parent_id','=', False)]),
|
||||
}
|
||||
|
||||
|
@ -37,17 +36,6 @@ class account_vat_declaration(osv.osv_memory):
|
|||
taxes = self.pool.get('account.tax.code').search(cr, uid, [('parent_id', '=', False)], limit=1)
|
||||
return taxes and taxes[0] or False
|
||||
|
||||
# def _get_company(self, cr, uid, context={}):
|
||||
# user_obj = self.pool.get('res.users')
|
||||
# company_obj = self.pool.get('res.company')
|
||||
# user = user_obj.browse(cr, uid, uid, context=context)
|
||||
# if user.company_id:
|
||||
# company_id = user.company_id.id
|
||||
# else:
|
||||
# company_id = company_obj.search(cr, uid, [('parent_id', '=', False)])
|
||||
# company_id = company_id and company_id[0] or False
|
||||
# return company_id
|
||||
|
||||
_defaults = {
|
||||
'based_on': 'invoices',
|
||||
'chart_tax_id': _get_tax
|
||||
|
|
Loading…
Reference in New Issue