diff --git a/addons/account/__init__.py b/addons/account/__init__.py index 5ff55f6f3dc..bc27e14380c 100644 --- a/addons/account/__init__.py +++ b/addons/account/__init__.py @@ -38,6 +38,5 @@ import company import res_currency import edi import res_config -import account_move_reconciliation # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/account/__openerp__.py b/addons/account/__openerp__.py index 2e4df6e3a45..ebbd5459cea 100644 --- a/addons/account/__openerp__.py +++ b/addons/account/__openerp__.py @@ -65,7 +65,6 @@ for a particular financial year and for preparation of vouchers there is a modul 'wizard/account_period_close_view.xml', 'wizard/account_reconcile_view.xml', 'wizard/account_unreconcile_view.xml', - 'account_move_reconciliation.xml', 'account_view.xml', 'account_report.xml', 'account_financial_report_data.xml', @@ -135,7 +134,7 @@ for a particular financial year and for preparation of vouchers there is a modul ], 'css':['static/src/css/account_move_reconciliation.css' ], - 'demo_xml': [ + 'demo': [ 'demo/account_demo.xml', 'project/project_demo.xml', 'project/analytic_account_demo.xml', diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index ccea4e1c1a8..18ab1a779a3 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -701,8 +701,6 @@ class account_move_line(osv.osv): def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): if context is None: context = {} - if context and context.get('account_type', False): - args.append(('account_id.type', '=', context.get('account_type', False))) if context and context.get('next_partner_only', False): if not context.get('partner_id', False): partner = self.get_next_partner_only(cr, uid, offset, context) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 9dd855e4a02..4ddeaf2f3b4 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -1047,6 +1047,7 @@ + account.move.line.tree account.move.line @@ -1054,12 +1055,12 @@ - + - - - + + + @@ -1540,6 +1541,20 @@ + + + + + + account.move.line.reconcile
- + + + +
-
diff --git a/addons/account_followup/__init__.py b/addons/account_followup/__init__.py index 395ce5475c8..4bfe3186298 100644 --- a/addons/account_followup/__init__.py +++ b/addons/account_followup/__init__.py @@ -22,6 +22,5 @@ import account_followup import wizard import report -import account_move_reconciliation # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/account_followup/__openerp__.py b/addons/account_followup/__openerp__.py index 2afa0afd623..43b1c4b2859 100644 --- a/addons/account_followup/__openerp__.py +++ b/addons/account_followup/__openerp__.py @@ -55,7 +55,6 @@ Note that if you want to check the follow-up level for a given partner/account e 'report/account_followup_report.xml', 'account_followup_demo.xml', # Defined by default 'account_followup_view.xml', - 'account_move_reconciliation.xml', 'account_followup_data.xml', ], 'demo': [], diff --git a/addons/account_followup/account_followup.py b/addons/account_followup/account_followup.py index ad419736c57..60499603295 100644 --- a/addons/account_followup/account_followup.py +++ b/addons/account_followup/account_followup.py @@ -20,7 +20,6 @@ ############################################################################## from osv import fields, osv -import tools class followup(osv.osv): _name = 'account_followup.followup' diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index ccecf5d6a20..c74ca5f833a 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -334,15 +334,9 @@ class account_voucher(osv.osv): } def create(self, cr, uid, vals, context=None): - if context is None: - context = {} - bank_line_id = context.get('bank_statement_line_id', False) - bank_line_obj = self.pool.get("account.bank.statement.line") - voucher_id = super(account_voucher, self).create(cr, uid, vals, context=context) - if bank_line_id: - bank_line_obj.write(cr, uid, bank_line_id, {'voucher_id': voucher_id}) - self.create_send_note(cr, uid, [voucher_id], context=context) - return voucher_id + voucher = super(account_voucher, self).create(cr, uid, vals, context=context) + self.create_send_note(cr, uid, [voucher], context=context) + return voucher def compute_tax(self, cr, uid, ids, context=None): tax_pool = self.pool.get('account.tax') @@ -1502,37 +1496,7 @@ account_bank_statement() class account_bank_statement_line(osv.osv): _inherit = 'account.bank.statement.line' - - def action_payment_reconcile(self, cr, uid, ids, context=None): - if context is None: - context = {} - ctx = dict(context) - statement_id = ids[0] - statement = self.browse(cr, uid, statement_id, context=context) - ctx['bank_statement_line_id'] = statement.id - ctx.update({ - 'line_type': statement.type, - 'type': statement.amount > 0 and 'payment' or 'receipt', - 'partner_id': statement.partner_id and statement.partner_id.id or False, - 'journal_id': statement.statement_id.journal_id and statement.statement_id.journal_id.id or False, - 'amount': abs(statement.amount), - 'reference': statement.ref, - 'date': statement.date, - 'name': statement.name - }) - voucher = statement.voucher_id or False - voucher_id = voucher and voucher.id or False - return { - 'name': _('Payment Entry'), - 'res_model': 'account.voucher', - 'view_type': 'form', - 'view_mode': 'form', - 'target':'new', - 'context': ctx, - 'res_id':voucher_id, - 'type': 'ir.actions.act_window' - } - + def _amount_reconciled(self, cursor, user, ids, name, args, context=None): if not ids: return {} @@ -1557,11 +1521,6 @@ class account_bank_statement_line(osv.osv): ] _columns = { - 'voucher_state': fields.related('voucher_id', 'state', type="selection", selection= [('draft','Draft'), - ('cancel','Cancelled'), - ('proforma','Pro-forma'), - ('posted','Posted') - ], string='Voucher State'), 'amount_reconciled': fields.function(_amount_reconciled, string='Amount reconciled', type='float'), 'voucher_id': fields.many2one('account.voucher', 'Payment'), diff --git a/addons/account_voucher/account_voucher_view.xml b/addons/account_voucher/account_voucher_view.xml index b5a1912e158..07647d02fe3 100644 --- a/addons/account_voucher/account_voucher_view.xml +++ b/addons/account_voucher/account_voucher_view.xml @@ -213,8 +213,7 @@ -