[REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
This commit is contained in:
parent
53f168daaf
commit
e69326ee3b
|
@ -132,7 +132,6 @@ class account_payment_term_line(osv.osv):
|
|||
(_check_percent, 'Percentages for Payment Term Line must be between 0 and 1, Example: 0.02 for 2%.', ['value_amount']),
|
||||
]
|
||||
|
||||
account_payment_term_line()
|
||||
|
||||
class account_account_type(osv.osv):
|
||||
_name = "account.account.type"
|
||||
|
@ -198,7 +197,6 @@ class account_account_type(osv.osv):
|
|||
}
|
||||
_order = "code"
|
||||
|
||||
account_account_type()
|
||||
|
||||
def _code_get(self, cr, uid, context=None):
|
||||
acc_type_obj = self.pool.get('account.account.type')
|
||||
|
@ -212,7 +210,6 @@ def _code_get(self, cr, uid, context=None):
|
|||
|
||||
class account_tax(osv.osv):
|
||||
_name = 'account.tax'
|
||||
account_tax()
|
||||
|
||||
class account_account(osv.osv):
|
||||
_order = "parent_left"
|
||||
|
@ -697,7 +694,6 @@ class account_account(osv.osv):
|
|||
self._check_moves(cr, uid, ids, "unlink", context=context)
|
||||
return super(account_account, self).unlink(cr, uid, ids, context=context)
|
||||
|
||||
account_account()
|
||||
|
||||
class account_journal(osv.osv):
|
||||
_name = "account.journal"
|
||||
|
@ -849,7 +845,6 @@ class account_journal(osv.osv):
|
|||
|
||||
return self.name_get(cr, user, ids, context=context)
|
||||
|
||||
account_journal()
|
||||
|
||||
class account_fiscalyear(osv.osv):
|
||||
_name = "account.fiscalyear"
|
||||
|
@ -945,7 +940,6 @@ class account_fiscalyear(osv.osv):
|
|||
ids = self.search(cr, user, [('name', operator, name)]+ args, limit=limit)
|
||||
return self.name_get(cr, user, ids, context=context)
|
||||
|
||||
account_fiscalyear()
|
||||
|
||||
class account_period(osv.osv):
|
||||
_name = "account.period"
|
||||
|
@ -1071,7 +1065,6 @@ class account_period(osv.osv):
|
|||
return self.search(cr, uid, [('date_start', '>=', period_date_start), ('date_stop', '<=', period_date_stop), ('company_id', '=', company1_id)])
|
||||
return self.search(cr, uid, [('date_start', '>=', period_date_start), ('date_stop', '<=', period_date_stop), ('company_id', '=', company1_id), ('special', '=', False)])
|
||||
|
||||
account_period()
|
||||
|
||||
class account_journal_period(osv.osv):
|
||||
_name = "account.journal.period"
|
||||
|
@ -1128,7 +1121,6 @@ class account_journal_period(osv.osv):
|
|||
}
|
||||
_order = "period_id"
|
||||
|
||||
account_journal_period()
|
||||
|
||||
class account_fiscalyear(osv.osv):
|
||||
_inherit = "account.fiscalyear"
|
||||
|
@ -1145,7 +1137,6 @@ class account_fiscalyear(osv.osv):
|
|||
})
|
||||
return super(account_fiscalyear, self).copy(cr, uid, id, default=default, context=context)
|
||||
|
||||
account_fiscalyear()
|
||||
#----------------------------------------------------------
|
||||
# Entries
|
||||
#----------------------------------------------------------
|
||||
|
@ -1643,7 +1634,6 @@ class account_move(osv.osv):
|
|||
valid_moves = [move.id for move in valid_moves]
|
||||
return len(valid_moves) > 0 and valid_moves or False
|
||||
|
||||
account_move()
|
||||
|
||||
class account_move_reconcile(osv.osv):
|
||||
_name = "account.move.reconcile"
|
||||
|
@ -1717,7 +1707,6 @@ class account_move_reconcile(osv.osv):
|
|||
result.append((r.id,r.name))
|
||||
return result
|
||||
|
||||
account_move_reconcile()
|
||||
|
||||
#----------------------------------------------------------
|
||||
# Tax
|
||||
|
@ -1865,7 +1854,6 @@ class account_tax_code(osv.osv):
|
|||
]
|
||||
_order = 'code'
|
||||
|
||||
account_tax_code()
|
||||
|
||||
class account_tax(osv.osv):
|
||||
"""
|
||||
|
@ -2273,7 +2261,6 @@ class account_tax(osv.osv):
|
|||
total += r['amount']
|
||||
return res
|
||||
|
||||
account_tax()
|
||||
|
||||
# ---------------------------------------------------------
|
||||
# Account Entries Models
|
||||
|
@ -2385,7 +2372,6 @@ class account_model(osv.osv):
|
|||
|
||||
return {'value': {'company_id': company_id}}
|
||||
|
||||
account_model()
|
||||
|
||||
class account_model_line(osv.osv):
|
||||
_name = "account.model.line"
|
||||
|
@ -2409,7 +2395,6 @@ class account_model_line(osv.osv):
|
|||
('credit_debit1', 'CHECK (credit*debit=0)', 'Wrong credit or debit value in model, they must be positive!'),
|
||||
('credit_debit2', 'CHECK (credit+debit>=0)', 'Wrong credit or debit value in model, they must be positive!'),
|
||||
]
|
||||
account_model_line()
|
||||
|
||||
# ---------------------------------------------------------
|
||||
# Account Subscription
|
||||
|
@ -2483,7 +2468,6 @@ class account_subscription(osv.osv):
|
|||
self.write(cr, uid, ids, {'state':'running'})
|
||||
return True
|
||||
|
||||
account_subscription()
|
||||
|
||||
class account_subscription_line(osv.osv):
|
||||
_name = "account.subscription.line"
|
||||
|
@ -2512,7 +2496,6 @@ class account_subscription_line(osv.osv):
|
|||
|
||||
_rec_name = 'date'
|
||||
|
||||
account_subscription_line()
|
||||
|
||||
# ---------------------------------------------------------------
|
||||
# Account Templates: Account, Tax, Tax Code and chart. + Wizard
|
||||
|
@ -2520,7 +2503,6 @@ account_subscription_line()
|
|||
|
||||
class account_tax_template(osv.osv):
|
||||
_name = 'account.tax.template'
|
||||
account_tax_template()
|
||||
|
||||
class account_account_template(osv.osv):
|
||||
_order = "code"
|
||||
|
@ -2648,7 +2630,6 @@ class account_account_template(osv.osv):
|
|||
obj_acc._parent_store_compute(cr)
|
||||
return acc_template_ref
|
||||
|
||||
account_account_template()
|
||||
|
||||
class account_add_tmpl_wizard(osv.osv_memory):
|
||||
"""Add one more account from the template.
|
||||
|
@ -2702,7 +2683,6 @@ class account_add_tmpl_wizard(osv.osv_memory):
|
|||
def action_cancel(self, cr, uid, ids, context=None):
|
||||
return { 'type': 'state', 'state': 'end' }
|
||||
|
||||
account_add_tmpl_wizard()
|
||||
|
||||
class account_tax_code_template(osv.osv):
|
||||
|
||||
|
@ -2774,7 +2754,6 @@ class account_tax_code_template(osv.osv):
|
|||
(_check_recursion, 'Error!\nYou cannot create recursive Tax Codes.', ['parent_id'])
|
||||
]
|
||||
_order = 'code,name'
|
||||
account_tax_code_template()
|
||||
|
||||
|
||||
class account_chart_template(osv.osv):
|
||||
|
@ -2807,7 +2786,6 @@ class account_chart_template(osv.osv):
|
|||
'complete_tax_set': True,
|
||||
}
|
||||
|
||||
account_chart_template()
|
||||
|
||||
class account_tax_template(osv.osv):
|
||||
|
||||
|
@ -2937,7 +2915,6 @@ class account_tax_template(osv.osv):
|
|||
res.update({'tax_template_to_tax': tax_template_to_tax, 'account_dict': todo_dict})
|
||||
return res
|
||||
|
||||
account_tax_template()
|
||||
|
||||
# Fiscal Position Templates
|
||||
|
||||
|
@ -2985,7 +2962,6 @@ class account_fiscal_position_template(osv.osv):
|
|||
})
|
||||
return True
|
||||
|
||||
account_fiscal_position_template()
|
||||
|
||||
class account_fiscal_position_tax_template(osv.osv):
|
||||
_name = 'account.fiscal.position.tax.template'
|
||||
|
@ -2998,7 +2974,6 @@ class account_fiscal_position_tax_template(osv.osv):
|
|||
'tax_dest_id': fields.many2one('account.tax.template', 'Replacement Tax')
|
||||
}
|
||||
|
||||
account_fiscal_position_tax_template()
|
||||
|
||||
class account_fiscal_position_account_template(osv.osv):
|
||||
_name = 'account.fiscal.position.account.template'
|
||||
|
@ -3010,7 +2985,6 @@ class account_fiscal_position_account_template(osv.osv):
|
|||
'account_dest_id': fields.many2one('account.account.template', 'Account Destination', domain=[('type','<>','view')], required=True)
|
||||
}
|
||||
|
||||
account_fiscal_position_account_template()
|
||||
|
||||
# ---------------------------------------------------------
|
||||
# Account generation from template wizards
|
||||
|
@ -3550,7 +3524,6 @@ class wizard_multi_charts_accounts(osv.osv_memory):
|
|||
current_num += 1
|
||||
return True
|
||||
|
||||
wizard_multi_charts_accounts()
|
||||
|
||||
class account_bank_accounts_wizard(osv.osv_memory):
|
||||
_name='account.bank.accounts.wizard'
|
||||
|
@ -3562,6 +3535,5 @@ class account_bank_accounts_wizard(osv.osv_memory):
|
|||
'account_type': fields.selection([('cash','Cash'), ('check','Check'), ('bank','Bank')], 'Account Type', size=32),
|
||||
}
|
||||
|
||||
account_bank_accounts_wizard()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -143,7 +143,6 @@ class account_analytic_line(osv.osv):
|
|||
return res
|
||||
return False
|
||||
|
||||
account_analytic_line()
|
||||
|
||||
class res_partner(osv.osv):
|
||||
""" Inherits partner and adds contract information in the partner form """
|
||||
|
@ -154,6 +153,5 @@ class res_partner(osv.osv):
|
|||
'partner_id', 'Contracts', readonly=True),
|
||||
}
|
||||
|
||||
res_partner()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -500,7 +500,6 @@ class account_bank_statement(osv.osv):
|
|||
'context':ctx,
|
||||
}
|
||||
|
||||
account_bank_statement()
|
||||
|
||||
class account_bank_statement_line(osv.osv):
|
||||
|
||||
|
@ -576,6 +575,5 @@ class account_bank_statement_line(osv.osv):
|
|||
'type': 'general',
|
||||
}
|
||||
|
||||
account_bank_statement_line()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -66,7 +66,6 @@ class account_cashbox_line(osv.osv):
|
|||
'bank_statement_id' : fields.many2one('account.bank.statement', ondelete='cascade'),
|
||||
}
|
||||
|
||||
account_cashbox_line()
|
||||
|
||||
class account_cash_statement(osv.osv):
|
||||
|
||||
|
@ -316,7 +315,6 @@ class account_cash_statement(osv.osv):
|
|||
|
||||
return self.write(cr, uid, ids, {'closing_date': time.strftime("%Y-%m-%d %H:%M:%S")}, context=context)
|
||||
|
||||
account_cash_statement()
|
||||
|
||||
class account_journal(osv.osv):
|
||||
_inherit = 'account.journal'
|
||||
|
@ -336,7 +334,6 @@ class account_journal(osv.osv):
|
|||
'cashbox_line_ids' : _default_cashbox_line_ids,
|
||||
}
|
||||
|
||||
account_journal()
|
||||
|
||||
class account_journal_cashbox_line(osv.osv):
|
||||
_name = 'account.journal.cashbox.line'
|
||||
|
@ -348,6 +345,5 @@ class account_journal_cashbox_line(osv.osv):
|
|||
|
||||
_order = 'pieces asc'
|
||||
|
||||
account_journal_cashbox_line()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -138,6 +138,5 @@ class account_financial_report(osv.osv):
|
|||
'style_overwrite': 0,
|
||||
}
|
||||
|
||||
account_financial_report()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -1584,7 +1584,6 @@ class account_invoice_line(osv.osv):
|
|||
unique_tax_ids = product_change_result['value']['invoice_line_tax_id']
|
||||
return {'value':{'invoice_line_tax_id': unique_tax_ids}}
|
||||
|
||||
account_invoice_line()
|
||||
|
||||
class account_invoice_tax(osv.osv):
|
||||
_name = "account.invoice.tax"
|
||||
|
|
|
@ -1308,6 +1308,5 @@ class account_move_line(osv.osv):
|
|||
bool(journal.currency),bool(journal.analytic_journal_id)))
|
||||
return result
|
||||
|
||||
account_move_line()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -47,6 +47,5 @@ Thank you in advance for your cooperation.
|
|||
Best Regards,'''
|
||||
}
|
||||
|
||||
res_company()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -152,6 +152,5 @@ class account_installer(osv.osv_memory):
|
|||
_logger.debug('Installing chart of accounts %s', chart)
|
||||
return modules | set([chart])
|
||||
|
||||
account_installer()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -38,7 +38,6 @@ class ir_sequence_fiscalyear(osv.osv):
|
|||
'Main Sequence must be different from current !'),
|
||||
]
|
||||
|
||||
ir_sequence_fiscalyear()
|
||||
|
||||
class ir_sequence(osv.osv):
|
||||
_inherit = 'ir.sequence'
|
||||
|
@ -56,6 +55,5 @@ class ir_sequence(osv.osv):
|
|||
return super(ir_sequence, self)._next(cr, uid, [line.sequence_id.id], context)
|
||||
return super(ir_sequence, self)._next(cr, uid, seq_ids, context)
|
||||
|
||||
ir_sequence()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -66,7 +66,6 @@ class account_fiscal_position(osv.osv):
|
|||
break
|
||||
return account_id
|
||||
|
||||
account_fiscal_position()
|
||||
|
||||
class account_fiscal_position_tax(osv.osv):
|
||||
_name = 'account.fiscal.position.tax'
|
||||
|
@ -84,7 +83,6 @@ class account_fiscal_position_tax(osv.osv):
|
|||
'A tax fiscal position could be defined only once time on same taxes.')
|
||||
]
|
||||
|
||||
account_fiscal_position_tax()
|
||||
|
||||
class account_fiscal_position_account(osv.osv):
|
||||
_name = 'account.fiscal.position.account'
|
||||
|
@ -102,7 +100,6 @@ class account_fiscal_position_account(osv.osv):
|
|||
'An account fiscal position could be defined only once time on same accounts.')
|
||||
]
|
||||
|
||||
account_fiscal_position_account()
|
||||
|
||||
class res_partner(osv.osv):
|
||||
_name = 'res.partner'
|
||||
|
@ -236,6 +233,5 @@ class res_partner(osv.osv):
|
|||
'last_reconciliation_date': fields.datetime('Latest Full Reconciliation Date', help='Date on which the partner accounting entries were fully reconciled last time. It differs from the last date where a reconciliation has been made for this partner, as here we depict the fact that nothing more was to be reconciled at this date. This can be achieved in 2 different ways: either the last unreconciled debit/credit entry of this partner was reconciled, either the user pressed the button "Nothing more to reconcile" during the manual reconciliation process.')
|
||||
}
|
||||
|
||||
res_partner()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -39,7 +39,6 @@ class product_category(osv.osv):
|
|||
view_load=True,
|
||||
help="This account will be used for invoices to value expenses."),
|
||||
}
|
||||
product_category()
|
||||
|
||||
#----------------------------------------------------------
|
||||
# Products
|
||||
|
@ -70,6 +69,5 @@ class product_template(osv.osv):
|
|||
help="This account will be used for invoices instead of the default one to value expenses for the current product."),
|
||||
}
|
||||
|
||||
product_template()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -38,7 +38,6 @@ class account_analytic_journal(osv.osv):
|
|||
'company_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id,
|
||||
}
|
||||
|
||||
account_analytic_journal()
|
||||
|
||||
class account_journal(osv.osv):
|
||||
_inherit="account.journal"
|
||||
|
@ -47,6 +46,5 @@ class account_journal(osv.osv):
|
|||
'analytic_journal_id':fields.many2one('account.analytic.journal','Analytic Journal', help="Journal for analytic entries"),
|
||||
}
|
||||
|
||||
account_journal()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -52,7 +52,6 @@ class account_analytic_balance(osv.osv_memory):
|
|||
'datas': datas,
|
||||
}
|
||||
|
||||
account_analytic_balance()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
|
|
@ -46,5 +46,4 @@ class account_analytic_chart(osv.osv_memory):
|
|||
result['context'] = str(result_context)
|
||||
return result
|
||||
|
||||
account_analytic_chart()
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -52,5 +52,4 @@ class account_analytic_cost_ledger_journal_report(osv.osv_memory):
|
|||
'datas': datas,
|
||||
}
|
||||
|
||||
account_analytic_cost_ledger_journal_report()
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -52,5 +52,4 @@ class account_analytic_cost_ledger(osv.osv_memory):
|
|||
'datas': datas,
|
||||
}
|
||||
|
||||
account_analytic_cost_ledger()
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -51,5 +51,4 @@ class account_analytic_inverted_balance(osv.osv_memory):
|
|||
'datas': datas,
|
||||
}
|
||||
|
||||
account_analytic_inverted_balance()
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -71,5 +71,4 @@ class account_analytic_journal_report(osv.osv_memory):
|
|||
res.update({'analytic_account_journal_id': journal_ids})
|
||||
return res
|
||||
|
||||
account_analytic_journal_report()
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -53,6 +53,5 @@ class project_account_analytic_line(osv.osv_memory):
|
|||
'search_view_id': id['res_id'],
|
||||
}
|
||||
|
||||
project_account_analytic_line()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -81,6 +81,5 @@ class analytic_entries_report(osv.osv):
|
|||
a.move_id,a.product_id,a.product_uom_id
|
||||
)
|
||||
""")
|
||||
analytic_entries_report()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -152,6 +152,5 @@ class account_entries_report(osv.osv):
|
|||
where l.state != 'draft'
|
||||
)
|
||||
""")
|
||||
account_entries_report()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -217,6 +217,5 @@ class account_invoice_report(osv.osv):
|
|||
self._table,
|
||||
self._select(), self._sub_select(), self._from(), self._group_by()))
|
||||
|
||||
account_invoice_report()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -66,7 +66,6 @@ class report_account_receivable(osv.osv):
|
|||
group by
|
||||
to_char(date,'YYYY:IW'), a.type
|
||||
)""")
|
||||
report_account_receivable()
|
||||
|
||||
#a.type in ('receivable','payable')
|
||||
class temp_range(osv.osv):
|
||||
|
@ -77,7 +76,6 @@ class temp_range(osv.osv):
|
|||
'name': fields.char('Range',size=64)
|
||||
}
|
||||
|
||||
temp_range()
|
||||
|
||||
class report_aged_receivable(osv.osv):
|
||||
_name = "report.aged.receivable"
|
||||
|
@ -147,7 +145,6 @@ class report_aged_receivable(osv.osv):
|
|||
select id,name from temp_range
|
||||
)""")
|
||||
|
||||
report_aged_receivable()
|
||||
|
||||
class report_invoice_created(osv.osv):
|
||||
_name = "report.invoice.created"
|
||||
|
@ -200,7 +197,6 @@ class report_invoice_created(osv.osv):
|
|||
AND
|
||||
(to_date(to_char(inv.create_date, 'YYYY-MM-dd'),'YYYY-MM-dd') > (CURRENT_DATE-15))
|
||||
)""")
|
||||
report_invoice_created()
|
||||
|
||||
class report_account_type_sales(osv.osv):
|
||||
_name = "report.account_type.sales"
|
||||
|
@ -241,7 +237,6 @@ class report_account_type_sales(osv.osv):
|
|||
group by
|
||||
to_char(inv.date_invoice, 'YYYY'),to_char(inv.date_invoice,'MM'),inv.currency_id, inv.period_id, inv_line.product_id, account.user_type
|
||||
)""")
|
||||
report_account_type_sales()
|
||||
|
||||
|
||||
class report_account_sales(osv.osv):
|
||||
|
@ -283,6 +278,5 @@ class report_account_sales(osv.osv):
|
|||
group by
|
||||
to_char(inv.date_invoice, 'YYYY'),to_char(inv.date_invoice,'MM'),inv.currency_id, inv.period_id, inv_line.product_id, account.id
|
||||
)""")
|
||||
report_account_sales()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -78,6 +78,5 @@ class account_treasury_report(osv.osv):
|
|||
group by p.id, p.fiscalyear_id, p.date_start, am.company_id
|
||||
)
|
||||
""")
|
||||
account_treasury_report()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -43,6 +43,5 @@ class res_currency_account(osv.osv):
|
|||
rate = float(tot2)/float(tot1)
|
||||
return rate
|
||||
|
||||
res_currency_account()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -246,6 +246,5 @@ class account_automatic_reconcile(osv.osv_memory):
|
|||
'context': context,
|
||||
}
|
||||
|
||||
account_automatic_reconcile()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -73,6 +73,5 @@ class account_change_currency(osv.osv_memory):
|
|||
obj_inv.write(cr, uid, [invoice.id], {'currency_id': new_currency}, context=context)
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
account_change_currency()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -105,6 +105,5 @@ class account_chart(osv.osv_memory):
|
|||
'fiscalyear': _get_fiscalyear,
|
||||
}
|
||||
|
||||
account_chart()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -93,6 +93,5 @@ class accounting_report(osv.osv_memory):
|
|||
'datas': data,
|
||||
}
|
||||
|
||||
accounting_report()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -278,6 +278,5 @@ class account_fiscalyear_close(osv.osv_memory):
|
|||
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
account_fiscalyear_close()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -56,6 +56,5 @@ class account_fiscalyear_close_state(osv.osv_memory):
|
|||
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
account_fiscalyear_close_state()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -220,6 +220,5 @@ class account_invoice_refund(osv.osv_memory):
|
|||
return self.compute_refund(cr, uid, ids, data_refund, context=context)
|
||||
|
||||
|
||||
account_invoice_refund()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -42,7 +42,6 @@ class account_invoice_confirm(osv.osv_memory):
|
|||
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
account_invoice_confirm()
|
||||
|
||||
class account_invoice_cancel(osv.osv_memory):
|
||||
"""
|
||||
|
@ -64,6 +63,5 @@ class account_invoice_cancel(osv.osv_memory):
|
|||
account_invoice_obj.signal_invoice_cancel(cr , uid, [record['id']])
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
account_invoice_cancel()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -45,6 +45,5 @@ class account_journal_select(osv.osv_memory):
|
|||
result['context'] = str({'journal_id': journal_id, 'period_id': period_id})
|
||||
return result
|
||||
|
||||
account_journal_select()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -59,6 +59,5 @@ the bank account\nin the journal definition for reconciliation.'))
|
|||
'type': 'ir.actions.act_window'
|
||||
}
|
||||
|
||||
account_move_bank_reconcile()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -50,6 +50,5 @@ class account_move_line_reconcile_select(osv.osv_memory):
|
|||
'type': 'ir.actions.act_window'
|
||||
}
|
||||
|
||||
account_move_line_reconcile_select()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -67,6 +67,5 @@ class account_move_line_select(osv.osv_memory):
|
|||
result['domain']=result['domain'][0:-1]+','+domain+result['domain'][-1]
|
||||
return result
|
||||
|
||||
account_move_line_select()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -39,6 +39,5 @@ class account_move_line_unreconcile_select(osv.osv_memory):
|
|||
'type': 'ir.actions.act_window'
|
||||
}
|
||||
|
||||
account_move_line_unreconcile_select()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -43,6 +43,5 @@ class account_open_closed_fiscalyear(osv.osv_memory):
|
|||
cr.execute('delete from account_move where id IN %s', (tuple(ids_move),))
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
account_open_closed_fiscalyear()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -55,6 +55,5 @@ class account_period_close(osv.osv_memory):
|
|||
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
account_period_close()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -91,7 +91,6 @@ class account_move_line_reconcile(osv.osv_memory):
|
|||
period_id, journal_id, context=context)
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
account_move_line_reconcile()
|
||||
|
||||
class account_move_line_reconcile_writeoff(osv.osv_memory):
|
||||
"""
|
||||
|
@ -158,6 +157,5 @@ class account_move_line_reconcile_writeoff(osv.osv_memory):
|
|||
period_id, journal_id, context=context)
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
account_move_line_reconcile_writeoff()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -98,6 +98,5 @@ class account_partner_reconcile_process(osv.osv_memory):
|
|||
'next_partner_id': _get_partner,
|
||||
}
|
||||
|
||||
account_partner_reconcile_process()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -38,6 +38,5 @@ class account_balance_report(osv.osv_memory):
|
|||
data = self.pre_print_report(cr, uid, ids, data, context=context)
|
||||
return {'type': 'ir.actions.report.xml', 'report_name': 'account.account.balance', 'datas': data}
|
||||
|
||||
account_balance_report()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -86,6 +86,5 @@ class account_aged_trial_balance(osv.osv_memory):
|
|||
'datas': data
|
||||
}
|
||||
|
||||
account_aged_trial_balance()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -38,7 +38,6 @@ class account_central_journal(osv.osv_memory):
|
|||
'datas': data,
|
||||
}
|
||||
|
||||
account_central_journal()
|
||||
|
||||
#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
|
|
@ -178,6 +178,5 @@ class account_common_report(osv.osv_memory):
|
|||
data['form']['used_context'] = used_context
|
||||
return self._print_report(cr, uid, ids, data, context=context)
|
||||
|
||||
account_common_report()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -41,7 +41,6 @@ class account_common_account_report(osv.osv_memory):
|
|||
data['form'].update(self.read(cr, uid, ids, ['display_account'], context=context)[0])
|
||||
return data
|
||||
|
||||
account_common_account_report()
|
||||
|
||||
#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
|
|
@ -50,6 +50,5 @@ class account_common_journal_report(osv.osv_memory):
|
|||
data['form']['active_ids'] = self.pool.get('account.journal.period').search(cr, uid, [('journal_id', 'in', data['form']['journal_ids']), ('period_id', 'in', period_list)], context=context)
|
||||
return data
|
||||
|
||||
account_common_journal_report()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -42,7 +42,6 @@ class account_common_partner_report(osv.osv_memory):
|
|||
data['form'].update(self.read(cr, uid, ids, ['result_selection'], context=context)[0])
|
||||
return data
|
||||
|
||||
account_common_partner_report()
|
||||
|
||||
#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -34,7 +34,6 @@ class account_general_journal(osv.osv_memory):
|
|||
data = self.pre_print_report(cr, uid, ids, data, context=context)
|
||||
return {'type': 'ir.actions.report.xml', 'report_name': 'account.general.journal', 'datas': data}
|
||||
|
||||
account_general_journal()
|
||||
|
||||
#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
|
|
@ -58,6 +58,5 @@ class account_report_general_ledger(osv.osv_memory):
|
|||
return { 'type': 'ir.actions.report.xml', 'report_name': 'account.general.ledger_landscape', 'datas': data}
|
||||
return { 'type': 'ir.actions.report.xml', 'report_name': 'account.general.ledger', 'datas': data}
|
||||
|
||||
account_report_general_ledger()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -50,6 +50,5 @@ class account_partner_balance(osv.osv_memory):
|
|||
'datas': data,
|
||||
}
|
||||
|
||||
account_partner_balance()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -67,6 +67,5 @@ class account_partner_ledger(osv.osv_memory):
|
|||
'datas': data,
|
||||
}
|
||||
|
||||
account_partner_ledger()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -72,7 +72,6 @@ class account_print_journal(osv.osv_memory):
|
|||
report_name = 'account.journal.period.print'
|
||||
return {'type': 'ir.actions.report.xml', 'report_name': report_name, 'datas': data}
|
||||
|
||||
account_print_journal()
|
||||
|
||||
#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
|
|
@ -37,6 +37,5 @@ class account_state_open(osv.osv_memory):
|
|||
obj_invoice.signal_open_test(cr, uid, context['active_ids'][0])
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
account_state_open()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -48,6 +48,5 @@ class account_subscription_generate(osv.osv_memory):
|
|||
result['domain'] = str([('id','in',moves_created)])
|
||||
return result
|
||||
|
||||
account_subscription_generate()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -73,6 +73,5 @@ class account_tax_chart(osv.osv_memory):
|
|||
'target_move': 'posted'
|
||||
}
|
||||
|
||||
account_tax_chart()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -33,7 +33,6 @@ class account_unreconcile(osv.osv_memory):
|
|||
obj_move_line._remove_move_reconcile(cr, uid, context['active_ids'], context=context)
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
account_unreconcile()
|
||||
|
||||
class account_unreconcile_reconcile(osv.osv_memory):
|
||||
_name = "account.unreconcile.reconcile"
|
||||
|
@ -48,6 +47,5 @@ class account_unreconcile_reconcile(osv.osv_memory):
|
|||
obj_move_reconcile.unlink(cr, uid, rec_ids, context=context)
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
account_unreconcile_reconcile()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -71,6 +71,5 @@ class account_use_model(osv.osv_memory):
|
|||
'type': 'ir.actions.act_window',
|
||||
}
|
||||
|
||||
account_use_model()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -40,7 +40,6 @@ class validate_account_move(osv.osv_memory):
|
|||
obj_move.button_validate(cr, uid, ids_move, context=context)
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
validate_account_move()
|
||||
|
||||
class validate_account_move_lines(osv.osv_memory):
|
||||
_name = "validate.account.move.lines"
|
||||
|
@ -61,7 +60,6 @@ class validate_account_move_lines(osv.osv_memory):
|
|||
raise osv.except_osv(_('Warning!'), _('Selected Entry Lines does not have any account move enties in draft state.'))
|
||||
obj_move.button_validate(cr, uid, move_ids, context)
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
validate_account_move_lines()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
|
|
@ -59,6 +59,5 @@ class account_vat_declaration(osv.osv_memory):
|
|||
'datas': datas,
|
||||
}
|
||||
|
||||
account_vat_declaration()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -63,7 +63,6 @@ class CashBoxIn(CashBox):
|
|||
'name' : box.name,
|
||||
}
|
||||
|
||||
CashBoxIn()
|
||||
|
||||
class CashBoxOut(CashBox):
|
||||
_name = 'cash.box.out'
|
||||
|
@ -78,4 +77,3 @@ class CashBoxOut(CashBox):
|
|||
'name' : box.name,
|
||||
}
|
||||
|
||||
CashBoxOut()
|
||||
|
|
|
@ -67,7 +67,6 @@ class account_analytic_default(osv.osv):
|
|||
best_index = index
|
||||
return res
|
||||
|
||||
account_analytic_default()
|
||||
|
||||
class account_invoice_line(osv.osv):
|
||||
_inherit = "account.invoice.line"
|
||||
|
@ -82,7 +81,6 @@ class account_invoice_line(osv.osv):
|
|||
res_prod['value'].update({'account_analytic_id': False})
|
||||
return res_prod
|
||||
|
||||
account_invoice_line()
|
||||
|
||||
|
||||
class stock_picking(osv.osv):
|
||||
|
@ -97,7 +95,6 @@ class stock_picking(osv.osv):
|
|||
|
||||
return super(stock_picking, self)._get_account_analytic_invoice(cursor, user, picking, move_line)
|
||||
|
||||
stock_picking()
|
||||
|
||||
class sale_order_line(osv.osv):
|
||||
_inherit = "sale.order.line"
|
||||
|
@ -118,6 +115,5 @@ class sale_order_line(osv.osv):
|
|||
inv_line_obj.write(cr, uid, [line.id], {'account_analytic_id': rec.analytic_id.id}, context=context)
|
||||
return create_ids
|
||||
|
||||
sale_order_line()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -65,7 +65,6 @@ class account_analytic_line(osv.osv):
|
|||
'percentage': fields.float('Percentage')
|
||||
}
|
||||
|
||||
account_analytic_line()
|
||||
|
||||
class account_analytic_plan(osv.osv):
|
||||
_name = "account.analytic.plan"
|
||||
|
@ -75,7 +74,6 @@ class account_analytic_plan(osv.osv):
|
|||
'plan_ids': fields.one2many('account.analytic.plan.line', 'plan_id', 'Analytic Plans'),
|
||||
}
|
||||
|
||||
account_analytic_plan()
|
||||
|
||||
class account_analytic_plan_line(osv.osv):
|
||||
_name = "account.analytic.plan.line"
|
||||
|
@ -94,7 +92,6 @@ class account_analytic_plan_line(osv.osv):
|
|||
'max_required': 100.0,
|
||||
}
|
||||
|
||||
account_analytic_plan_line()
|
||||
|
||||
class account_analytic_plan_instance(osv.osv):
|
||||
_name = "account.analytic.plan.instance"
|
||||
|
@ -257,7 +254,6 @@ class account_analytic_plan_instance(osv.osv):
|
|||
vals['code'] = this.code and (str(this.code)+'*') or "*"
|
||||
return super(account_analytic_plan_instance, self).write(cr, uid, ids, vals, context=context)
|
||||
|
||||
account_analytic_plan_instance()
|
||||
|
||||
class account_analytic_plan_instance_line(osv.osv):
|
||||
_name = "account.analytic.plan.instance.line"
|
||||
|
@ -280,7 +276,6 @@ class account_analytic_plan_instance_line(osv.osv):
|
|||
res.append((record['id'], record['analytic_account_id']))
|
||||
return res
|
||||
|
||||
account_analytic_plan_instance_line()
|
||||
|
||||
class account_journal(osv.osv):
|
||||
_inherit = "account.journal"
|
||||
|
@ -289,7 +284,6 @@ class account_journal(osv.osv):
|
|||
'plan_id': fields.many2one('account.analytic.plan', 'Analytic Plans'),
|
||||
}
|
||||
|
||||
account_journal()
|
||||
|
||||
class account_invoice_line(osv.osv):
|
||||
_inherit = "account.invoice.line"
|
||||
|
@ -315,7 +309,6 @@ class account_invoice_line(osv.osv):
|
|||
res_prod['value'].update({'analytics_id': rec.analytics_id.id})
|
||||
return res_prod
|
||||
|
||||
account_invoice_line()
|
||||
|
||||
class account_move_line(osv.osv):
|
||||
|
||||
|
@ -370,7 +363,6 @@ class account_move_line(osv.osv):
|
|||
result = super(account_move_line, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar=toolbar, submenu=submenu)
|
||||
return result
|
||||
|
||||
account_move_line()
|
||||
|
||||
class account_invoice(osv.osv):
|
||||
_name = "account.invoice"
|
||||
|
@ -425,14 +417,12 @@ class account_invoice(osv.osv):
|
|||
il['analytic_lines'].append((0, 0, al_vals))
|
||||
return iml
|
||||
|
||||
account_invoice()
|
||||
|
||||
class account_analytic_plan(osv.osv):
|
||||
_inherit = "account.analytic.plan"
|
||||
_columns = {
|
||||
'default_instance_id': fields.many2one('account.analytic.plan.instance', 'Default Entries'),
|
||||
}
|
||||
account_analytic_plan()
|
||||
|
||||
class analytic_default(osv.osv):
|
||||
_inherit = "account.analytic.default"
|
||||
|
@ -440,7 +430,6 @@ class analytic_default(osv.osv):
|
|||
'analytics_id': fields.many2one('account.analytic.plan.instance', 'Analytic Distribution'),
|
||||
}
|
||||
|
||||
analytic_default()
|
||||
|
||||
class sale_order_line(osv.osv):
|
||||
_inherit = "sale.order.line"
|
||||
|
@ -459,7 +448,6 @@ class sale_order_line(osv.osv):
|
|||
inv_line_obj.write(cr, uid, [line.id], {'analytics_id': rec.analytics_id.id}, context=context)
|
||||
return create_ids
|
||||
|
||||
sale_order_line()
|
||||
|
||||
|
||||
class account_bank_statement(osv.osv):
|
||||
|
@ -488,7 +476,6 @@ class account_bank_statement(osv.osv):
|
|||
continue
|
||||
return True
|
||||
|
||||
account_bank_statement()
|
||||
|
||||
|
||||
class account_bank_statement_line(osv.osv):
|
||||
|
@ -497,6 +484,5 @@ class account_bank_statement_line(osv.osv):
|
|||
_columns = {
|
||||
'analytics_id': fields.many2one('account.analytic.plan.instance', 'Analytic Distribution'),
|
||||
}
|
||||
account_bank_statement_line()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -71,6 +71,5 @@ class account_crossovered_analytic(osv.osv_memory):
|
|||
'datas': datas,
|
||||
}
|
||||
|
||||
account_crossovered_analytic()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -55,6 +55,5 @@ class analytic_plan_create_model(osv.osv_memory):
|
|||
else:
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
analytic_plan_create_model()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -48,7 +48,6 @@ class product_category(osv.osv):
|
|||
help="This account will be used to value outgoing stock using cost price."),
|
||||
|
||||
}
|
||||
product_category()
|
||||
|
||||
class product_template(osv.osv):
|
||||
_inherit = "product.template"
|
||||
|
@ -78,7 +77,6 @@ class product_template(osv.osv):
|
|||
help="This account will be used to value outgoing stock using cost price."),
|
||||
|
||||
}
|
||||
product_template()
|
||||
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -37,6 +37,5 @@ class purchase_order(osv.osv):
|
|||
new_account_id = self.pool.get('account.fiscal.position').map_account(cr, uid, fpos, acc_id)
|
||||
line.update({'account_id': new_account_id})
|
||||
return line
|
||||
purchase_order()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -57,7 +57,6 @@ class stock_picking(osv.osv):
|
|||
self.pool.get('account.invoice.line').write(cr, uid, [ol.id], {'account_id': a})
|
||||
return res
|
||||
|
||||
stock_picking()
|
||||
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -70,7 +70,6 @@ class account_asset_category(osv.osv):
|
|||
res['value'] = {'account_depreciation_id': account_asset_id}
|
||||
return res
|
||||
|
||||
account_asset_category()
|
||||
|
||||
class account_asset_asset(osv.osv):
|
||||
_name = 'account.asset.asset'
|
||||
|
@ -361,7 +360,6 @@ class account_asset_asset(osv.osv):
|
|||
'context': context,
|
||||
}
|
||||
|
||||
account_asset_asset()
|
||||
|
||||
class account_asset_depreciation_line(osv.osv):
|
||||
_name = 'account.asset.depreciation.line'
|
||||
|
@ -456,7 +454,6 @@ class account_asset_depreciation_line(osv.osv):
|
|||
asset.write({'state': 'close'})
|
||||
return created_move_ids
|
||||
|
||||
account_asset_depreciation_line()
|
||||
|
||||
class account_move_line(osv.osv):
|
||||
_inherit = 'account.move.line'
|
||||
|
@ -465,7 +462,6 @@ class account_move_line(osv.osv):
|
|||
'entry_ids': fields.one2many('account.move.line', 'asset_id', 'Entries', readonly=True, states={'draft':[('readonly',False)]}),
|
||||
|
||||
}
|
||||
account_move_line()
|
||||
|
||||
class account_asset_history(osv.osv):
|
||||
_name = 'account.asset.history'
|
||||
|
@ -490,6 +486,5 @@ class account_asset_history(osv.osv):
|
|||
'user_id': lambda self, cr, uid, ctx: uid
|
||||
}
|
||||
|
||||
account_asset_history()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -35,7 +35,6 @@ class account_invoice(osv.osv):
|
|||
res['asset_id'] = x.get('asset_id', False)
|
||||
return res
|
||||
|
||||
account_invoice()
|
||||
|
||||
class account_invoice_line(osv.osv):
|
||||
|
||||
|
@ -66,6 +65,5 @@ class account_invoice_line(osv.osv):
|
|||
asset_obj.validate(cr, uid, [asset_id], context=context)
|
||||
return True
|
||||
|
||||
account_invoice_line()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -82,6 +82,5 @@ class asset_asset_report(osv.osv):
|
|||
a.purchase_value, a.id, a.salvage_value
|
||||
)""")
|
||||
|
||||
asset_asset_report()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -127,6 +127,5 @@ class asset_modify(osv.osv_memory):
|
|||
asset_obj.compute_depreciation_board(cr, uid, [asset_id], context=context)
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
asset_modify()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -55,6 +55,5 @@ class asset_depreciation_confirmation_wizard(osv.osv_memory):
|
|||
'type': 'ir.actions.act_window',
|
||||
}
|
||||
|
||||
asset_depreciation_confirmation_wizard()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -56,7 +56,6 @@ class account_bank_statement(osv.osv):
|
|||
(tuple([x.id for x in st.line_ids]),))
|
||||
return True
|
||||
|
||||
account_bank_statement()
|
||||
|
||||
class account_bank_statement_line_global(osv.osv):
|
||||
_name = 'account.bank.statement.line.global'
|
||||
|
@ -100,7 +99,6 @@ class account_bank_statement_line_global(osv.osv):
|
|||
ids = self.search(cr, user, args, context=context, limit=limit)
|
||||
return self.name_get(cr, user, ids, context=context)
|
||||
|
||||
account_bank_statement_line_global()
|
||||
|
||||
class account_bank_statement_line(osv.osv):
|
||||
_inherit = 'account.bank.statement.line'
|
||||
|
@ -130,6 +128,5 @@ class account_bank_statement_line(osv.osv):
|
|||
Please go to the associated bank statement in order to delete and/or modify bank statement line.'))
|
||||
return super(account_bank_statement_line, self).unlink(cr, uid, ids, context=context)
|
||||
|
||||
account_bank_statement_line()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -35,5 +35,4 @@ class res_partner_bank(osv.osv):
|
|||
ids = self.search(cr, user, args, context=context, limit=limit)
|
||||
return self.name_get(cr, user, ids, context=context)
|
||||
|
||||
res_partner_bank()
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -32,6 +32,5 @@ class cancel_statement_line(osv.osv_memory):
|
|||
line_obj.write(cr, uid, line_ids, {'state': 'draft'}, context=context)
|
||||
return {}
|
||||
|
||||
cancel_statement_line()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -32,6 +32,5 @@ class confirm_statement_line(osv.osv_memory):
|
|||
line_obj.write(cr, uid, line_ids, {'state': 'confirm'}, context=context)
|
||||
return {}
|
||||
|
||||
confirm_statement_line()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -48,7 +48,6 @@ class account_budget_post(osv.osv):
|
|||
}
|
||||
_order = "name"
|
||||
|
||||
account_budget_post()
|
||||
|
||||
|
||||
class crossovered_budget(osv.osv):
|
||||
|
@ -104,7 +103,6 @@ class crossovered_budget(osv.osv):
|
|||
})
|
||||
return True
|
||||
|
||||
crossovered_budget()
|
||||
|
||||
class crossovered_budget_lines(osv.osv):
|
||||
|
||||
|
@ -202,7 +200,6 @@ class crossovered_budget_lines(osv.osv):
|
|||
'company_id': fields.related('crossovered_budget_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, readonly=True)
|
||||
}
|
||||
|
||||
crossovered_budget_lines()
|
||||
|
||||
class account_analytic_account(osv.osv):
|
||||
_inherit = "account.analytic.account"
|
||||
|
@ -211,6 +208,5 @@ class account_analytic_account(osv.osv):
|
|||
'crossovered_budget_line': fields.one2many('crossovered.budget.lines', 'analytic_account_id', 'Budget Lines'),
|
||||
}
|
||||
|
||||
account_analytic_account()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -50,6 +50,5 @@ class account_budget_analytic(osv.osv_memory):
|
|||
'datas': datas,
|
||||
}
|
||||
|
||||
account_budget_analytic()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -51,6 +51,5 @@ class account_budget_crossvered_report(osv.osv_memory):
|
|||
'datas': datas,
|
||||
}
|
||||
|
||||
account_budget_crossvered_report()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -53,7 +53,6 @@ class account_budget_crossvered_summary_report(osv.osv_memory):
|
|||
'datas': datas,
|
||||
}
|
||||
|
||||
account_budget_crossvered_summary_report()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
|
|
@ -52,6 +52,5 @@ class account_budget_report(osv.osv_memory):
|
|||
'datas': datas,
|
||||
}
|
||||
|
||||
account_budget_report()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -29,7 +29,6 @@ class account_journal(osv.osv):
|
|||
'use_preprint_check': fields.boolean('Use Preprinted Check'),
|
||||
}
|
||||
|
||||
account_journal()
|
||||
|
||||
class res_company(osv.osv):
|
||||
_inherit = "res.company"
|
||||
|
@ -46,5 +45,4 @@ class res_company(osv.osv):
|
|||
'check_layout' : lambda *a: 'top',
|
||||
}
|
||||
|
||||
res_company()
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -97,4 +97,3 @@ class account_voucher(osv.osv):
|
|||
res['arch'] = etree.tostring(doc)
|
||||
return res
|
||||
|
||||
account_voucher()
|
||||
|
|
|
@ -83,5 +83,4 @@ class account_check_write(osv.osv_memory):
|
|||
'nodestroy': True
|
||||
}
|
||||
|
||||
account_check_write()
|
||||
|
||||
|
|
|
@ -91,6 +91,5 @@ class account_followup_stat(osv.osv):
|
|||
GROUP BY
|
||||
l.id, l.partner_id, l.company_id, l.blocked, l.period_id
|
||||
)""")
|
||||
account_followup_stat()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -72,7 +72,6 @@ class account_followup_stat_by_partner(osv.osv):
|
|||
GROUP BY
|
||||
l.partner_id, l.company_id
|
||||
)""") #Blocked is to take into account litigation
|
||||
account_followup_stat_by_partner()
|
||||
|
||||
|
||||
class account_followup_sending_results(osv.osv_memory):
|
||||
|
@ -106,7 +105,6 @@ class account_followup_sending_results(osv.osv_memory):
|
|||
'description':_get_description,
|
||||
}
|
||||
|
||||
account_followup_sending_results()
|
||||
|
||||
|
||||
class account_followup_print(osv.osv_memory):
|
||||
|
@ -315,6 +313,5 @@ class account_followup_print(osv.osv_memory):
|
|||
to_update[str(id)]= {'level': fups[followup_line_id][1], 'partner_id': stat_line_id}
|
||||
return {'partner_ids': partner_list, 'to_update': to_update}
|
||||
|
||||
account_followup_print()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -42,6 +42,5 @@ class Invoice(osv.osv):
|
|||
raise osv.except_osv(_('Error!'), _("You cannot cancel an invoice which has already been imported in a payment order. Remove it from the following payment order : %s."%(payment_order_name)))
|
||||
return super(Invoice, self).action_cancel(cr, uid, ids, context=context)
|
||||
|
||||
Invoice()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -57,6 +57,5 @@ class account_move_line(osv.osv):
|
|||
raise osv.except_osv(_('Error!'), _('There is no partner defined on the entry line.'))
|
||||
return line2bank
|
||||
|
||||
account_move_line()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -62,7 +62,6 @@ class payment_mode(osv.osv):
|
|||
return {'value': result}
|
||||
|
||||
|
||||
payment_mode()
|
||||
|
||||
class payment_order(osv.osv):
|
||||
_name = 'payment.order'
|
||||
|
@ -170,7 +169,6 @@ class payment_order(osv.osv):
|
|||
payment_line_obj.write(cr, uid, payment_line_ids, {'date': False}, context=context)
|
||||
return super(payment_order, self).write(cr, uid, ids, vals, context=context)
|
||||
|
||||
payment_order()
|
||||
|
||||
class payment_line(osv.osv):
|
||||
_name = 'payment.line'
|
||||
|
@ -417,6 +415,5 @@ class payment_line(osv.osv):
|
|||
res['communication2']['states']['normal'] = [('readonly', False)]
|
||||
return res
|
||||
|
||||
payment_line()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -118,6 +118,5 @@ class payment_order_create(osv.osv_memory):
|
|||
'target': 'new',
|
||||
}
|
||||
|
||||
payment_order_create()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -54,6 +54,5 @@ class account_payment_make_payment(osv.osv_memory):
|
|||
# id = obj_model.read(cr, uid, [result], ['res_id'])[0]['res_id']
|
||||
# return obj_act.read(cr, uid, [id])[0]
|
||||
|
||||
account_payment_make_payment()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -118,6 +118,5 @@ class account_payment_populate_statement(osv.osv_memory):
|
|||
line_obj.write(cr, uid, [line.id], {'bank_statement_line_id': st_line_id})
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
account_payment_populate_statement()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -40,7 +40,6 @@ class account_move(osv.osv):
|
|||
self.write(cr, uid, [move.id], {'internal_sequence_number': seq_no})
|
||||
return res
|
||||
|
||||
account_move()
|
||||
|
||||
class account_journal(osv.osv):
|
||||
_inherit = "account.journal"
|
||||
|
@ -49,7 +48,6 @@ class account_journal(osv.osv):
|
|||
'internal_sequence_id': fields.many2one('ir.sequence', 'Internal Sequence', help="This sequence will be used to maintain the internal number for the journal entries related to this journal."),
|
||||
}
|
||||
|
||||
account_journal()
|
||||
|
||||
class account_move_line(osv.osv):
|
||||
_inherit = "account.move.line"
|
||||
|
@ -58,6 +56,5 @@ class account_move_line(osv.osv):
|
|||
'internal_sequence_number': fields.related('move_id','internal_sequence_number', type='char', relation='account.move', help='Internal Sequence Number', string='Internal Number'),
|
||||
}
|
||||
|
||||
account_move_line()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -79,6 +79,5 @@ class account_sequence_installer(osv.osv_memory):
|
|||
ir_values_obj.set(cr, uid, key='default', key2=False, name='internal_sequence_id', models =[('account.journal', False)], value=ir_seq)
|
||||
return res
|
||||
|
||||
account_sequence_installer()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -56,5 +56,4 @@ class accounting_assert_test(osv.osv):
|
|||
'sequence': 10,
|
||||
}
|
||||
|
||||
accounting_assert_test()
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@ class res_company(osv.osv):
|
|||
domain="[('type', '=', 'other')]",),
|
||||
}
|
||||
|
||||
res_company()
|
||||
|
||||
class account_config_settings(osv.osv_memory):
|
||||
_inherit = 'account.config.settings'
|
||||
|
@ -1488,7 +1487,6 @@ class account_voucher_line(osv.osv):
|
|||
'type':ttype
|
||||
})
|
||||
return values
|
||||
account_voucher_line()
|
||||
|
||||
class account_bank_statement(osv.osv):
|
||||
_inherit = 'account.bank.statement'
|
||||
|
@ -1540,7 +1538,6 @@ class account_bank_statement(osv.osv):
|
|||
raise osv.except_osv(_('Unable to change journal !'), _('You can not change the journal as you already reconciled some statement lines!'))
|
||||
return super(account_bank_statement, self).write(cr, uid, ids, vals, context=context)
|
||||
|
||||
account_bank_statement()
|
||||
|
||||
class account_bank_statement_line(osv.osv):
|
||||
_inherit = 'account.bank.statement.line'
|
||||
|
@ -1594,7 +1591,6 @@ class account_bank_statement_line(osv.osv):
|
|||
voucher_obj.unlink(cr, uid, unlink_ids, context=context)
|
||||
return super(account_bank_statement_line, self).unlink(cr, uid, ids, context=context)
|
||||
|
||||
account_bank_statement_line()
|
||||
|
||||
def resolve_o2m_operations(cr, uid, target_osv, operations, fields, context):
|
||||
results = []
|
||||
|
|
|
@ -52,6 +52,5 @@ class invoice(osv.osv):
|
|||
}
|
||||
}
|
||||
|
||||
invoice()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue