diff --git a/addons/account/__openerp__.py b/addons/account/__openerp__.py index f06123487e2..96412077840 100644 --- a/addons/account/__openerp__.py +++ b/addons/account/__openerp__.py @@ -45,7 +45,6 @@ module named account_voucher. 'init_xml': [], "depends" : ["product", "analytic", "process","board"], 'update_xml': [ - #'test/test_parent_structure.yml', 'security/account_security.xml', 'security/ir.model.access.csv', 'account_menuitem.xml', @@ -53,6 +52,7 @@ module named account_voucher. 'wizard/account_statement_from_invoice_view.xml', 'wizard/account_move_bank_reconcile_view.xml', 'wizard/account_use_model_view.xml', + 'account_installer.xml', 'account_view.xml', 'account_report.xml', 'wizard/account_report_common_view.xml', @@ -80,7 +80,6 @@ module named account_voucher. 'wizard/account_invoice_state_view.xml', 'wizard/account_report_partner_balance_view.xml', 'wizard/account_report_account_balance_view.xml', -# 'wizard/account_move_line_select_view.xml', 'wizard/account_report_aged_partner_balance_view.xml', 'wizard/account_compare_account_balance_report_view.xml', 'wizard/account_report_partner_ledger_view.xml', @@ -110,7 +109,6 @@ module named account_voucher. 'process/supplier_invoice_process.xml', 'sequence_view.xml', 'company_view.xml', - 'account_installer.xml', 'report/account_invoice_report_view.xml', 'report/account_entries_report_view.xml', 'report/account_report_view.xml', @@ -120,7 +118,6 @@ module named account_voucher. "wizard/account_report_balance_sheet_view.xml" ], 'demo_xml': [ - #'demo/price_accuracy00.yml', 'account_demo.xml', 'project/project_demo.xml', 'project/analytic_account_demo.xml', @@ -135,7 +132,6 @@ module named account_voucher. 'test/chart_of_account.yml', 'test/account_period_close.yml', 'test/account_fiscalyear_close_state.yml', - #'test/account_invoice_state.yml', 'test/account_use_model.yml', 'test/account_validate_account_move.yml', 'test/account_fiscalyear_close.yml', diff --git a/addons/account/account.py b/addons/account/account.py index 40695d9f921..2a07154461c 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -686,14 +686,6 @@ class account_journal(osv.osv): 'sequence_id':seq_id }) -# if journal.type in journal_type and not journal.invoice_sequence_id: -# res_ids = date_pool.search(cr, uid, [('model','=','ir.sequence'), ('name','=',journal_seq.get(journal.type, 'sale'))]) -# inv_seq_id = date_pool.browse(cr, uid, res_ids[0]).res_id -# inv_seq_id -# res.update({ -# 'invoice_sequence_id':inv_seq_id -# }) - result = self.write(cr, uid, [journal.id], res) return result @@ -701,16 +693,6 @@ class account_journal(osv.osv): def create(self, cr, uid, vals, context={}): journal_id = super(account_journal, self).create(cr, uid, vals, context) self.create_sequence(cr, uid, [journal_id], context) - -# journal_name = self.browse(cr, uid, [journal_id])[0].code -# periods = self.pool.get('account.period') -# ids = periods.search(cr, uid, [('date_stop','>=',time.strftime('%Y-%m-%d'))]) -# for period in periods.browse(cr, uid, ids): -# self.pool.get('account.journal.period').create(cr, uid, { -# 'name': (journal_name or '')+':'+(period.code or ''), -# 'journal_id': journal_id, -# 'period_id': period.id -# }) return journal_id def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100): @@ -724,7 +706,6 @@ class account_journal(osv.osv): if name: ids = self.search(cr, user, [('code', 'ilike', name)]+ args, limit=limit, context=context) if not ids: -# ids = self.search(cr, user, [('name', operator, name)]+ args, limit=limit, context=context) ids = self.search(cr, user, [('name', 'ilike', name)]+ args, limit=limit, context=context)#fix it ilike should be replace with operator return self.name_get(cr, user, ids, context=context) @@ -1412,8 +1393,6 @@ class account_move(osv.osv): self.pool.get('account.move.line').write(cr, uid, line_ids, { 'journal_id': move.journal_id.id, 'period_id': move.period_id.id, - #'tax_code_id': False, - #'tax_amount': False, 'state': 'draft' }, context, check=False) # Create analytic lines for the valid moves @@ -1896,8 +1875,6 @@ class account_tax(osv.osv): amount = localdict['result'] elif tax.type=='balance': amount = cur_price_unit - reduce(lambda x,y: y.get('amount',0.0)+x, res, 0.0) -# data['balance'] = cur_price_unit - if tax.include_base_amount: cur_price_unit -= amount @@ -1972,12 +1949,14 @@ class account_model(osv.osv): 'name': fields.char('Model Name', size=64, required=True, help="This is a model for recurring accounting entries"), 'ref': fields.char('Reference', size=64), 'journal_id': fields.many2one('account.journal', 'Journal', required=True), + 'company_id': fields.many2one('res.company', 'Company', required=True), 'lines_id': fields.one2many('account.model.line', 'model_id', 'Model Entries'), 'legend' :fields.text('Legend', readonly=True, size=100), } _defaults = { 'legend': lambda self, cr, uid, context:_('You can specify year, month and date in the name of the model using the following labels:\n\n%(year)s : To Specify Year \n%(month)s : To Specify Month \n%(date)s : Current Date\n\ne.g. My model on %(date)s'), + 'company_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id } def generate(self, cr, uid, ids, datas={}, context={}): move_ids = [] @@ -2250,12 +2229,8 @@ class account_add_tmpl_wizard(osv.osv_memory): data= self.read(cr, uid, ids) company_id = acc_obj.read(cr, uid, [data[0]['cparent_id']], ['company_id'])[0]['company_id'][0] account_template = tmpl_obj.browse(cr, uid, context['tmpl_ids']) - #tax_ids = [] - #for tax in account_template.tax_ids: - # tax_ids.append(tax_template_ref[tax.id]) vals={ 'name': account_template.name, - #'sign': account_template.sign, 'currency_id': account_template.currency_id and account_template.currency_id.id or False, 'code': account_template.code, 'type': account_template.type, @@ -2264,7 +2239,6 @@ class account_add_tmpl_wizard(osv.osv_memory): 'shortcut': account_template.shortcut, 'note': account_template.note, 'parent_id': data[0]['cparent_id'], - # 'tax_ids': [(6,0,tax_ids)], todo!! 'company_id': company_id, } new_account = acc_obj.create(cr, uid, vals) @@ -2581,7 +2555,6 @@ class wizard_multi_charts_accounts(osv.osv_memory): code_acc=str(code_acc) + (str('0'*(dig-code_main))) vals={ 'name': (obj_acc_root.id == account_template.id) and obj_multi.company_id.name or account_template.name, - #'sign': account_template.sign, 'currency_id': account_template.currency_id and account_template.currency_id.id or False, 'code': code_acc, 'type': account_template.type, diff --git a/addons/account/account_analytic_line.py b/addons/account/account_analytic_line.py index 1792525a7f6..36fc350dfb8 100644 --- a/addons/account/account_analytic_line.py +++ b/addons/account/account_analytic_line.py @@ -42,7 +42,7 @@ class account_analytic_line(osv.osv): _defaults = { 'date': lambda *a: time.strftime('%Y-%m-%d'), 'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.analytic.line', context=c), - } + } _order = 'date' def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): @@ -65,7 +65,6 @@ class account_analytic_line(osv.osv): return False return True _constraints = [ -# (_check_company, 'You can not create analytic line that is not in the same company than the account line', ['account_id']) ] # Compute the cost based on the price type define into company diff --git a/addons/account/account_assert_test.xml b/addons/account/account_assert_test.xml index 585c6bda124..ba5f9840ccc 100644 --- a/addons/account/account_assert_test.xml +++ b/addons/account/account_assert_test.xml @@ -4,25 +4,5 @@ - - - diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py index 95b487e2bf7..8ae6b24f7d0 100644 --- a/addons/account/account_bank_statement.py +++ b/addons/account/account_bank_statement.py @@ -367,8 +367,6 @@ class account_bank_statement(osv.osv): account_move_line_obj.reconcile(cr, uid, torec, 'statement', writeoff_acc_id=writeoff_acc_id, writeoff_period_id=st.period_id.id, writeoff_journal_id=st.journal_id.id, context=context) else: account_move_line_obj.reconcile_partial(cr, uid, torec, 'statement', context) - #except: - # raise osv.except_osv(_('Error !'), _('Unable to reconcile entry "%s": %.2f') % (move.name, move.amount)) if st.journal_id.entry_posted: account_move_obj.write(cr, uid, [move_id], {'state': 'posted'}) diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index f08f9de2f8f..8bf75a8dd03 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -118,19 +118,6 @@ class account_cash_statement(osv.osv): res2[statement.id]=encoding_total return res2 -# def _default_journal_id(self, cr, uid, context={}): - -# """ To get default journal for the object" -# @param name: Names of fields. -# @return: journal -# """ -# company_id = self.pool.get('res.users').browse(cr, uid, uid).company_id.id -# journal = self.pool.get('account.journal').search(cr, uid, [('type', '=', 'cash'), ('company_id', '=', company_id)]) -# if journal: -# return journal[0] -# else: -# return False - def _end_balance(self, cursor, user, ids, name, attr, context=None): res_currency_obj = self.pool.get('res.currency') res_users_obj = self.pool.get('res.users') @@ -374,10 +361,6 @@ class account_cash_statement(osv.osv): if not self._equal_balance(cr, uid, ids, st, context): raise osv.except_osv(_('Error !'), _('CashBox Balance is not matching with Calculated Balance !')) -# if not (abs((st.balance_end or 0.0) - st.balance_end_real) < 0.0001): -# raise osv.except_osv(_('Error !'), -# _('The statement balance is incorrect !\n') + -# _('The expected balance (%.2f) is different than the computed one. (%.2f)') % (st.balance_end_real, st.balance_end)) if (not st.journal_id.default_credit_account_id) \ or (not st.journal_id.default_debit_account_id): raise osv.except_osv(_('Configuration Error !'), diff --git a/addons/account/account_installer.xml b/addons/account/account_installer.xml index 6d067a31a9f..77130168561 100644 --- a/addons/account/account_installer.xml +++ b/addons/account/account_installer.xml @@ -28,6 +28,7 @@ + diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 55e9230cdec..dee0eacc085 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -421,7 +421,6 @@ - Customer Invoices diff --git a/addons/account/account_invoice_workflow.xml b/addons/account/account_invoice_workflow.xml index ba8d1ba2bc8..c3749eb8cf0 100644 --- a/addons/account/account_invoice_workflow.xml +++ b/addons/account/account_invoice_workflow.xml @@ -12,19 +12,6 @@ True draft - - - - - - - - - - @@ -65,35 +52,11 @@ write({'state':'cancel'}) function - - - - - - - invoice_open - - - - - - - - - - - - @@ -106,11 +69,6 @@ write({'state':'cancel'}) invoice_cancel - - - - - @@ -126,7 +84,7 @@ write({'state':'cancel'}) invoice_cancel - + @@ -134,7 +92,7 @@ write({'state':'cancel'}) move_line_id_payment_get() test_paid() - + diff --git a/addons/account/account_menuitem.xml b/addons/account/account_menuitem.xml index 74c8234860d..3cb21315350 100644 --- a/addons/account/account_menuitem.xml +++ b/addons/account/account_menuitem.xml @@ -6,13 +6,10 @@ - - - @@ -25,23 +22,12 @@ - - - - - - - - - - - diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 94dd4e8eb86..4e6c2cb5d8d 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -572,7 +572,7 @@ class account_move_line(osv.osv): if journal: jt = self.pool.get('account.journal').browse(cr, uid, journal).type #FIXME: Bank and cash journal are such a journal we can not assume a account based on this 2 journals - # Bank and cash journal can have a payment or receipt transection, and in both type partner account + # Bank and cash journal can have a payment or receipt transaction, and in both type partner account # will not be same id payment then payable, and if receipt then receivable #if jt in ('sale', 'purchase_refund', 'bank', 'cash'): if jt in ('sale', 'purchase_refund'): @@ -1155,11 +1155,6 @@ class account_move_line(osv.osv): 'journal_id': journal.analytic_journal_id.id, 'ref': vals.get('ref', False), })] - #else: - # raise osv.except_osv(_('No analytic journal !'), _('Please set an analytic journal on this financial journal !')) - - #if not 'currency_id' in vals: - # vals['currency_id'] = account.company_id.currency_id.id result = super(osv.osv, self).create(cr, uid, vals, context) # CREATE Taxes @@ -1228,11 +1223,6 @@ class account_move_line(osv.osv): self.create(cr, uid, data, context) del vals['account_tax_id'] - # No needed, related to the job - #if not is_new_move and 'date' in vals: - # if context and ('__last_update' in context): - # del context['__last_update'] - # self.pool.get('account.move').write(cr, uid, [move_id], {'date':vals['date']}, context=context) if check and ((not context.get('no_store_function')) or journal.entry_posted): tmp = self.pool.get('account.move').validate(cr, uid, [vals['move_id']], context) if journal.entry_posted and tmp: diff --git a/addons/account/account_report.xml b/addons/account/account_report.xml index 8e26ee8553b..be0569fa65f 100644 --- a/addons/account/account_report.xml +++ b/addons/account/account_report.xml @@ -47,20 +47,6 @@ name="Taxes" parent="account.menu_finance_generic_reporting" sequence="3"/> - - - - - diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 1dc871a5597..111fafdd18c 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -160,7 +160,6 @@ - @@ -256,7 +255,6 @@ [('parent_id','=',False)] - - - - - - - account.bank.statement.reconcile.form account.bank.statement.reconcile @@ -872,7 +863,6 @@ id="menu_action_tax_code_tree" parent="menu_finance_charts" sequence="12"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Entry Lines ir.actions.act_window @@ -1435,26 +1372,8 @@ form - - - - - - - - - - - - - - - - account.bank.statement.reconcile.form @@ -1517,20 +1436,6 @@ form,tree - - - - - - - - - - tree You can look up individual account entries by searching for useful information. To search for account entries, open a journal, then select a record line. - - + # Account Models + --> account.model.line.tree @@ -1648,6 +1551,7 @@ + @@ -1665,6 +1569,7 @@ + @@ -1730,26 +1635,7 @@ - - - - - - - - - - - - - - - - - - - - + Payment Terms account.payment.term @@ -1759,8 +1645,8 @@ + # Account Subscriptions + --> account.subscription.line.form @@ -1814,7 +1700,6 @@ - @@ -1884,15 +1769,6 @@ [('account_id','child_of', [active_id]),('state','<>','draft')] {'account_id':active_id} - - - - - - - - - account.move.line.tax.tree @@ -2360,7 +2236,7 @@ new - + account.account.graph diff --git a/addons/account/account_wizard.xml b/addons/account/account_wizard.xml index d7a879cdf20..639dc2dc111 100644 --- a/addons/account/account_wizard.xml +++ b/addons/account/account_wizard.xml @@ -1,100 +1,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/addons/account/board_account_demo.xml b/addons/account/board_account_demo.xml index cfcebdbcdf1..93bfed6d56d 100644 --- a/addons/account/board_account_demo.xml +++ b/addons/account/board_account_demo.xml @@ -2,16 +2,9 @@ - diff --git a/addons/account/company_view.xml b/addons/account/company_view.xml index a3a1ec0080a..692c7960bbf 100644 --- a/addons/account/company_view.xml +++ b/addons/account/company_view.xml @@ -7,12 +7,12 @@ res.company form - - - - - - + + + + + + diff --git a/addons/account/configurable_account_chart.xml b/addons/account/configurable_account_chart.xml index 8aab78f7a3d..de8c1ba0cd0 100644 --- a/addons/account/configurable_account_chart.xml +++ b/addons/account/configurable_account_chart.xml @@ -175,10 +175,6 @@ - - 1103 Output VAT @@ -195,14 +191,6 @@ - - - - - - - - 111 Current Liabilities @@ -220,10 +208,6 @@ - - 1112 Input VAT @@ -268,10 +252,6 @@ - - 21 Cost of Sales @@ -312,12 +292,8 @@ - - - + diff --git a/addons/account/demo/account_minimal.xml b/addons/account/demo/account_minimal.xml index 5f614e47501..bedfed3bb69 100644 --- a/addons/account/demo/account_minimal.xml +++ b/addons/account/demo/account_minimal.xml @@ -419,18 +419,6 @@ Product income and expense accounts, default parameters --> - - - - - - - - - - - - property_account_expense_categ diff --git a/addons/account/i18n/da.po b/addons/account/i18n/da.po index 16400cb3d7e..ccd179f421d 100644 --- a/addons/account/i18n/da.po +++ b/addons/account/i18n/da.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-08-18 13:26+0000\n" -"Last-Translator: vra (openerp) \n" +"PO-Revision-Date: 2010-08-19 05:51+0000\n" +"Last-Translator: OpenERP Administrators \n" "Language-Team: Danish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-08-19 03:47+0000\n" +"X-Launchpad-Export-Date: 2010-08-20 03:37+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/i18n/de.po b/addons/account/i18n/de.po index 9d35f8940b8..f220a36c486 100644 --- a/addons/account/i18n/de.po +++ b/addons/account/i18n/de.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-08-18 13:23+0000\n" -"Last-Translator: vra (openerp) \n" +"PO-Revision-Date: 2010-08-19 05:55+0000\n" +"Last-Translator: OpenERP Administrators \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-08-19 03:47+0000\n" +"X-Launchpad-Export-Date: 2010-08-20 03:38+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/i18n/es_EC.po b/addons/account/i18n/es_EC.po index 9e0ddc90c16..cc2f3139b40 100644 --- a/addons/account/i18n/es_EC.po +++ b/addons/account/i18n/es_EC.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-08-18 18:15+0000\n" +"PO-Revision-Date: 2010-08-20 00:46+0000\n" "Last-Translator: Cristian Salamea (GnuThink) \n" "Language-Team: Spanish (Ecuador) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-08-19 03:48+0000\n" +"X-Launchpad-Export-Date: 2010-08-20 03:38+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account @@ -715,7 +715,7 @@ msgstr "Nota de Debito" #. module: account #: wizard_view:account.analytic.account.chart,init:0 msgid "Select the Period for Analysis" -msgstr "" +msgstr "Seleccione el período de análisis" #. module: account #: field:account.tax,ref_tax_sign:0 @@ -914,7 +914,7 @@ msgstr "Importe de Moneda" #. module: account #: field:account.chart.template,property_account_expense_categ:0 msgid "Expense Category Account" -msgstr "" +msgstr "Cuenta categoría gastos" #. module: account #: wizard_field:account.fiscalyear.close,init,fy2_id:0 @@ -1066,7 +1066,7 @@ msgstr "Nueva factura de proveedor" #. module: account #: wizard_field:account.invoice.pay,init,amount:0 msgid "Amount paid" -msgstr "" +msgstr "Importe pagado" #. module: account #: selection:account.invoice,type:0 @@ -1078,7 +1078,7 @@ msgstr "Factura de cliente" #. module: account #: wizard_view:account.open_closed_fiscalyear,init:0 msgid "Choose Fiscal Year" -msgstr "" +msgstr "Escoja el ejercicio fiscal" #. module: account #: field:account.sequence.fiscalyear,sequence_main_id:0 @@ -1094,7 +1094,7 @@ msgstr "Imprimir diarios analíticos" #. module: account #: rml:account.tax.code.entries:0 msgid "Voucher Nb" -msgstr "" +msgstr "Núm. de comprobante" #. module: account #: help:account.payment.term.line,sequence:0 @@ -1108,12 +1108,12 @@ msgstr "" #. module: account #: field:account.bank.statement.reconcile,total_new:0 msgid "Total write-off" -msgstr "" +msgstr "Desajuste total" #. module: account #: view:account.tax.template:0 msgid "Compute Code for Taxes included prices" -msgstr "" +msgstr "Código para el cálculo de precios con impuestos incluidos" #. module: account #: view:account.invoice.tax:0 @@ -1127,12 +1127,12 @@ msgstr "Códigos de impuestos" #: field:account.tax.template,chart_template_id:0 #: field:wizard.multi.charts.accounts,chart_template_id:0 msgid "Chart Template" -msgstr "" +msgstr "Plantilla plan contable" #. module: account #: field:account.chart.template,property_account_income_categ:0 msgid "Income Category Account" -msgstr "" +msgstr "Cuenta de la categoría de ingresos" #. module: account #: model:ir.actions.act_window,name:account.analytic_account_form @@ -1144,7 +1144,7 @@ msgstr "Nueva cuenta analítica" #: model:ir.actions.act_window,name:account.action_account_fiscal_position_template_form #: model:ir.ui.menu,name:account.menu_action_account_fiscal_position_form_template msgid "Fiscal Position Templates" -msgstr "" +msgstr "Plantillas de Tipos de Contribuyentes" #. module: account #: rml:account.invoice:0 @@ -1155,12 +1155,12 @@ msgstr "Precio unitario" #. module: account #: rml:account.analytic.account.journal:0 msgid "Period from :" -msgstr "" +msgstr "Periodo desde :" #. module: account #: model:ir.model,name:account.model_wizard_multi_charts_accounts msgid "wizard.multi.charts.accounts" -msgstr "" +msgstr "Plan de Cuentas Multiple" #. module: account #: model:account.journal,name:account.sales_journal @@ -1170,13 +1170,13 @@ msgstr "Diario de ventas" #. module: account #: help:account.model.line,amount_currency:0 msgid "The amount expressed in an optional other currency." -msgstr "" +msgstr "El importe expresado en otra divisa opcional." #. module: account #: view:account.fiscal.position.template:0 #: field:account.fiscal.position.template,name:0 msgid "Fiscal Position Template" -msgstr "" +msgstr "Plantilla de Tipo de Contribuyente" #. module: account #: field:account.payment.term,line_ids:0 @@ -1202,7 +1202,7 @@ msgstr "¿Está seguro que desea cerrar el ejercicio fiscal?" #. module: account #: selection:account.move,type:0 msgid "Bank Receipt" -msgstr "" +msgstr "Recibo bancario" #. module: account #: view:res.partner:0 @@ -1217,7 +1217,7 @@ msgstr "Lista plantilla impuestos" #. module: account #: model:process.transition,name:account.process_transition_invoiceimport0 msgid "Invoice import" -msgstr "" +msgstr "Importe factura" #. module: account #: model:ir.actions.wizard,name:account.action_move_journal_line_form_select @@ -1248,7 +1248,7 @@ msgstr "Moneda de la compañía" #. module: account #: model:ir.model,name:account.model_account_fiscal_position_account_template msgid "Fiscal Position Template Account Mapping" -msgstr "" +msgstr "Mapeo cuentas plantilla posición fiscal" #. module: account #: field:account.analytic.account,parent_id:0 @@ -1258,12 +1258,12 @@ msgstr "Cuenta analítica padre" #. module: account #: wizard_button:account.move.line.reconcile,init_partial,addendum:0 msgid "Reconcile With Write-Off" -msgstr "" +msgstr "Conciliación con desfase" #. module: account #: field:account.move.line,tax_amount:0 msgid "Tax/Base Amount" -msgstr "" +msgstr "Importe impuestos/base" #. module: account #: help:wizard.multi.charts.accounts,code_digits:0 @@ -1293,7 +1293,7 @@ msgstr "Importe fijo" #. module: account #: rml:account.analytic.account.analytic.check:0 msgid "Analytic Credit" -msgstr "" +msgstr "Haber analítico" #. module: account #: field:account.move.line,reconcile_partial_id:0 @@ -1327,7 +1327,7 @@ msgstr "Valor" #: wizard_field:account.invoice.pay,addendum,writeoff_acc_id:0 #: wizard_field:account.move.line.reconcile,addendum,writeoff_acc_id:0 msgid "Write-Off account" -msgstr "" +msgstr "Cuenta de desajuste" #. module: account #: field:account.model.line,model_id:0 @@ -1339,17 +1339,17 @@ msgstr "Modelo" #: model:ir.actions.wizard,name:account.wizard_fiscalyear_close_state #: model:ir.ui.menu,name:account.menu_wizard_fy_close_state msgid "Close a Fiscal Year" -msgstr "" +msgstr "Cerrar un ejercicio fiscal" #. module: account #: field:account.journal,centralisation:0 msgid "Centralised counterpart" -msgstr "" +msgstr "Homólogo centralizado" #. module: account #: view:wizard.company.setup:0 msgid "Message" -msgstr "" +msgstr "Mensaje" #. module: account #: model:process.node,note:account.process_node_supplierpaymentorder0 @@ -1388,7 +1388,7 @@ msgstr "El método de cálculo del importe del impuesto." #: model:process.node,note:account.process_node_accountingentries0 #: model:process.node,note:account.process_node_supplieraccountingentries0 msgid "Validated accounting entries." -msgstr "" +msgstr "Asientos contables validados." #. module: account #: wizard_view:account.move.line.unreconcile,init:0 @@ -1409,7 +1409,7 @@ msgstr "Archivo electrónico" #. module: account #: view:res.partner:0 msgid "Customer Credit" -msgstr "" +msgstr "Haber del cliente" #. module: account #: field:account.invoice,tax_line:0 @@ -1474,7 +1474,7 @@ msgstr "Mostrar cuentas " #. module: account #: model:ir.model,name:account.model_account_bank_statement_reconcile_line msgid "Statement reconcile line" -msgstr "" +msgstr "Línea de conciliación de extracto" #. module: account #: view:account.tax:0 @@ -1488,7 +1488,7 @@ msgstr "Dejarlo vacío para usar la cuenta de ingresos" #: wizard_view:account.move.line.reconcile,init_full:0 #: wizard_view:account.move.line.reconcile,init_partial:0 msgid "Write-Off" -msgstr "" +msgstr "Desajuste" #. module: account #: help:account.invoice,partner_bank:0 @@ -1512,17 +1512,17 @@ msgstr "Cerrar estados" #. module: account #: model:ir.model,name:account.model_wizard_company_setup msgid "wizard.company.setup" -msgstr "" +msgstr "Asistente de Configuracion de Compañia" #. module: account #: model:ir.actions.act_window,name:account.action_account_analytic_account_line_extended_form msgid "account.analytic.line.extended" -msgstr "" +msgstr "account.analytic.line.extended" #. module: account #: field:account.journal,refund_journal:0 msgid "Refund Journal" -msgstr "" +msgstr "Diario de Reembolsos" #. module: account #: model:account.account.type,name:account.account_type_income @@ -1542,7 +1542,7 @@ msgstr "Tel. :" #. module: account #: field:account.invoice.tax,tax_amount:0 msgid "Tax Code Amount" -msgstr "" +msgstr "Importe código impuesto" #. module: account #: selection:account.account.type,sign:0 @@ -1577,7 +1577,7 @@ msgstr "Generar plan contable a partir de una plantilla de plan contable" #. module: account #: model:ir.ui.menu,name:account.menu_finance_legal_statement msgid "Legal Statements" -msgstr "" +msgstr "Declaraciones oficiales" #. module: account #: field:account.tax.code,parent_id:0 @@ -1634,7 +1634,7 @@ msgstr "Cuentas a cobrar y pagar" #: view:account.subscription:0 #: field:account.subscription,lines_id:0 msgid "Subscription Lines" -msgstr "" +msgstr "Líneas de asientos periódicos" #. module: account #: selection:account.analytic.journal,type:0 @@ -1663,7 +1663,7 @@ msgstr "Cerrar período" #. module: account #: rml:account.overdue:0 msgid "Due" -msgstr "" +msgstr "Pendiente" #. module: account #: rml:account.journal.period.print:0 @@ -1678,7 +1678,7 @@ msgstr "Tipo de cuentas permitidas (vacío para ningún control)" #. module: account #: field:account.bank.statement,balance_start:0 msgid "Starting Balance" -msgstr "" +msgstr "Saldo inicial" #. module: account #: wizard_field:account.analytic.account.quantity_cost_ledger.report,init,journal:0 @@ -1696,7 +1696,7 @@ msgstr "Ctdad máx." #. module: account #: wizard_button:account.invoice.refund,init,refund:0 msgid "Refund Invoice" -msgstr "" +msgstr "Reembolsar Factura" #. module: account #: model:ir.actions.act_window,name:account.action_account_period_tree @@ -1754,7 +1754,7 @@ msgstr "Incluir en importe base" #. module: account #: rml:account.analytic.account.analytic.check:0 msgid "Delta Credit" -msgstr "" +msgstr "Diferencia haber" #. module: account #: model:ir.actions.wizard,name:account.wizard_reconcile_unreconcile @@ -1765,7 +1765,7 @@ msgstr "Romper conciliación de los asientos" #. module: account #: model:process.node,note:account.process_node_supplierdraftinvoices0 msgid "Pre-generated invoice from control" -msgstr "" +msgstr "Factura pre-generada de control" #. module: account #: wizard_view:account.analytic.account.quantity_cost_ledger.report,init:0 @@ -1845,18 +1845,18 @@ msgstr "Fecha o código" #. module: account #: field:account.analytic.account,user_id:0 msgid "Account Manager" -msgstr "" +msgstr "Gestor contable" #. module: account #: rml:account.analytic.account.journal:0 msgid "to :" -msgstr "" +msgstr "a :" #. module: account #: wizard_field:account.move.line.reconcile,init_full,debit:0 #: wizard_field:account.move.line.reconcile,init_partial,debit:0 msgid "Debit amount" -msgstr "" +msgstr "Importe debe" #. module: account #: selection:account.subscription,period_type:0 @@ -1888,7 +1888,7 @@ msgstr "Fecha inicial" #. module: account #: model:account.journal,name:account.refund_expenses_journal msgid "x Expenses Credit Notes Journal" -msgstr "" +msgstr "x Diario facturas rectificativas (abono) de gastos" #. module: account #: field:account.analytic.journal,type:0 @@ -1909,40 +1909,40 @@ msgstr "Cuentas permitidas (vacío para ningún control)" #. module: account #: view:account.invoice:0 msgid "Untaxed amount" -msgstr "" +msgstr "Base imponible" #. module: account #: field:account.tax,account_collected_id:0 #: field:account.tax.template,account_collected_id:0 msgid "Invoice Tax Account" -msgstr "" +msgstr "Cuenta impuestos de facturas" #. module: account #: view:account.move.line:0 msgid "Analytic Lines" -msgstr "" +msgstr "Líneas analíticas" #. module: account #: wizard_view:account.invoice.pay,init:0 #: model:ir.actions.wizard,name:account.wizard_invoice_pay msgid "Pay invoice" -msgstr "" +msgstr "Pagar factura" #. module: account #: constraint:account.invoice:0 msgid "Error: Invalid Bvr Number (wrong checksum)." -msgstr "" +msgstr "Error: Número BVR inválido (checksum erróneo)." #. module: account #: model:ir.actions.act_window,name:account.action_invoice_tree5 #: model:ir.ui.menu,name:account.menu_invoice_draft msgid "Draft Customer Invoices" -msgstr "" +msgstr "Facturas de cliente en borrador" #. module: account #: model:ir.model,name:account.model_account_subscription_line msgid "Account Subscription Line" -msgstr "" +msgstr "Línea de subscripción de contabilidad" #. module: account #: selection:account.account.balance.report,checktype,state:0 diff --git a/addons/account/i18n/hu.po b/addons/account/i18n/hu.po index 00a811a1ed0..f70028a98ce 100644 --- a/addons/account/i18n/hu.po +++ b/addons/account/i18n/hu.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-08-18 13:17+0000\n" -"Last-Translator: vra (openerp) \n" +"PO-Revision-Date: 2010-08-19 05:54+0000\n" +"Last-Translator: OpenERP Administrators \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-08-19 03:47+0000\n" +"X-Launchpad-Export-Date: 2010-08-20 03:38+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/i18n/it.po b/addons/account/i18n/it.po index b470e328790..d2f6481f860 100644 --- a/addons/account/i18n/it.po +++ b/addons/account/i18n/it.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-08-18 20:38+0000\n" +"PO-Revision-Date: 2010-08-19 05:51+0000\n" "Last-Translator: Andrea \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-08-19 03:47+0000\n" +"X-Launchpad-Export-Date: 2010-08-20 03:38+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/i18n/lt.po b/addons/account/i18n/lt.po index b40a829b01e..399ad4eda5e 100644 --- a/addons/account/i18n/lt.po +++ b/addons/account/i18n/lt.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-08-18 13:14+0000\n" +"PO-Revision-Date: 2010-08-19 05:48+0000\n" "Last-Translator: Giedrius Slavinskas \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-08-19 03:47+0000\n" +"X-Launchpad-Export-Date: 2010-08-20 03:38+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/i18n/pl.po b/addons/account/i18n/pl.po index b660713e522..da387dd02e7 100644 --- a/addons/account/i18n/pl.po +++ b/addons/account/i18n/pl.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-08-18 13:14+0000\n" -"Last-Translator: vra (openerp) \n" +"PO-Revision-Date: 2010-08-19 05:48+0000\n" +"Last-Translator: OpenERP Administrators \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-08-19 03:47+0000\n" +"X-Launchpad-Export-Date: 2010-08-20 03:38+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/i18n/sq.po b/addons/account/i18n/sq.po index adbb61ec3fe..d3e5b8652a1 100644 --- a/addons/account/i18n/sq.po +++ b/addons/account/i18n/sq.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: ASTRIT BOKSHI \n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-08-18 13:08+0000\n" +"PO-Revision-Date: 2010-08-19 05:37+0000\n" "Last-Translator: bokshas \n" "Language-Team: Albanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-08-19 03:47+0000\n" +"X-Launchpad-Export-Date: 2010-08-20 03:37+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/i18n/sv.po b/addons/account/i18n/sv.po index 5794606aec4..95f8c7ae577 100644 --- a/addons/account/i18n/sv.po +++ b/addons/account/i18n/sv.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-08-18 13:18+0000\n" -"Last-Translator: vra (openerp) \n" +"PO-Revision-Date: 2010-08-19 05:53+0000\n" +"Last-Translator: OpenERP Administrators \n" "Language-Team: <> <>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-08-19 03:47+0000\n" +"X-Launchpad-Export-Date: 2010-08-20 03:38+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/i18n/tr.po b/addons/account/i18n/tr.po index 454819e832a..44c1feaaa79 100644 --- a/addons/account/i18n/tr.po +++ b/addons/account/i18n/tr.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-08-18 13:19+0000\n" +"PO-Revision-Date: 2010-08-19 05:48+0000\n" "Last-Translator: Omer Barlas \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-08-19 03:47+0000\n" +"X-Launchpad-Export-Date: 2010-08-20 03:38+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/i18n/zh_CN.po b/addons/account/i18n/zh_CN.po index 74a8e214bf3..61b1c84c474 100644 --- a/addons/account/i18n/zh_CN.po +++ b/addons/account/i18n/zh_CN.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-08-18 13:13+0000\n" +"PO-Revision-Date: 2010-08-19 05:40+0000\n" "Last-Translator: Jeff Wang \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-08-19 03:47+0000\n" +"X-Launchpad-Export-Date: 2010-08-20 03:38+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/installer.py b/addons/account/installer.py index 4843f54187c..d019ba89b2d 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -63,15 +63,23 @@ class account_installer(osv.osv_memory): 'Periods', required=True), 'bank_accounts_id': fields.one2many('account.bank.accounts.wizard', 'bank_account_id', 'Bank Accounts',required=True), 'sale_tax':fields.float('Sale Tax(%)'), - 'purchase_tax':fields.float('Purchase Tax(%)') + 'purchase_tax':fields.float('Purchase Tax(%)'), + 'company_id': fields.many2one('res.company', 'Company'), } + + def _default_company(self, cr, uid, context={}): + user = self.pool.get('res.users').browse(cr, uid, uid, context=context) + if user.company_id: + return user.company_id.id + return False + _defaults = { 'date_start': lambda *a: time.strftime('%Y-01-01'), 'date_stop': lambda *a: time.strftime('%Y-12-31'), 'period':lambda *a:'month', 'sale_tax':lambda *a:0.0, 'purchase_tax':lambda *a:0.0, - #'charts':'configurable', + 'company_id': _default_company, 'bank_accounts_id':_get_default_accounts } @@ -251,10 +259,10 @@ class account_installer(osv.osv_memory): elif val.account_type == 'check': type = check_type_id seq_prefix = "CHK/" - else: + else: type = check_type_id seq_padding = None - + vals_bnk = {'name': val.acc_name or '', 'currency_id': val.currency_id.id or False, 'code': str(110400 + code_cnt), @@ -351,7 +359,7 @@ class account_installer(osv.osv_memory): vals_journal['default_debit_account_id'] = acc_template_ref[obj_multi.property_account_expense_categ.id] obj_journal.create(cr,uid,vals_journal) - + # Creating Journals Sales Refund and Purchase Refund vals_journal={} data_id = mod_obj.search(cr, uid, [('model','=','account.journal.view'), ('name','=','account_sp_refund_journal_view')]) @@ -386,7 +394,7 @@ class account_installer(osv.osv_memory): vals_journal['default_debit_account_id'] = acc_template_ref[obj_multi.property_account_expense_categ.id] obj_journal.create(cr,uid,vals_journal) - + # Bank Journals view_id_cash = self.pool.get('account.journal.view').search(cr, uid, [('name','=','Bank/Cash Journal View')])[0] #TOFIX: Why put fixed name ? view_id_cur = self.pool.get('account.journal.view').search(cr, uid, [('name','=','Bank/Cash Journal (Multi-Currency) View')])[0] #TOFIX: why put fixed name? @@ -459,6 +467,7 @@ class account_installer(osv.osv_memory): def execute(self, cr, uid, ids, context=None): if context is None: context = {} + res_obj = self.pool.get('account.fiscalyear') data_pool = self.pool.get('ir.model.data') obj_acc = self.pool.get('account.account') super(account_installer, self).execute(cr, uid, ids, context=context) @@ -535,18 +544,18 @@ class account_installer(osv.osv_memory): if int(name) != int(res['date_stop'][:4]): name = res['date_start'][:4] +'-'+ res['date_stop'][:4] code = res['date_start'][2:4] +'-'+ res['date_stop'][2:4] - res_obj = self.pool.get('account.fiscalyear') - vals = {'name':name, - 'code':code, - 'date_start':res['date_start'], - 'date_stop':res['date_stop'], + vals = {'name': name, + 'code': code, + 'date_start': res['date_start'], + 'date_stop': res['date_stop'], + 'company_id': res['company_id'] } period_id = res_obj.create(cr, uid, vals, context=context) if res['period'] == 'month': res_obj.create_period(cr, uid, [period_id]) elif res['period'] == '3months': res_obj.create_period3(cr, uid, [period_id]) - + # #fially inactive the demo chart of accounts # data_id = data_pool.search(cr, uid, [('model','=','account.account'), ('name','=','chart0')]) # if data_id: diff --git a/addons/account/invoice.py b/addons/account/invoice.py index cff1ce60141..c2fbe5f9293 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -319,7 +319,6 @@ class account_invoice(osv.osv): } _defaults = { 'type': _get_type, - #'date_invoice': lambda *a: time.strftime('%Y-%m-%d'), 'state': 'draft', 'journal_id': _get_journal, 'currency_id': _get_currency, @@ -372,9 +371,6 @@ class account_invoice(osv.osv): osv.osv.unlink(self, cr, uid, unlink_ids, context=context) return True -# def get_invoice_address(self, cr, uid, ids): -# res = self.pool.get('res.partner').address_get(cr, uid, [part], ['invoice']) -# return [{}] def onchange_partner_id(self, cr, uid, ids, type, partner_id,\ date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False): invoice_addr_id = False @@ -636,7 +632,6 @@ class account_invoice(osv.osv): ait_obj.create(cr, uid, taxe) # Update the stored value (fields.function), so we write to trigger recompute self.pool.get('account.invoice').write(cr, uid, ids, {'invoice_line':[]}, context=context) -# self.pool.get('account.invoice').write(cr, uid, ids, {}, context=context) return True def button_compute(self, cr, uid, ids, context=None, set_total=False): @@ -879,7 +874,7 @@ class account_invoice(osv.osv): line = self.group_lines(cr, uid, iml, line, inv) - journal_id = inv.journal_id.id #self._get_journal(cr, uid, {'type': inv['type']}) + journal_id = inv.journal_id.id journal = self.pool.get('account.journal').browse(cr, uid, journal_id) if journal.centralisation: raise osv.except_osv(_('UserError'), @@ -1321,9 +1316,6 @@ class account_invoice_line(osv.osv): else: app_acc_in = in_acc_cate app_acc_exp = ex_acc_cate -# else: -# app_acc_in = self.pool.get('account.account').browse(cr,uid,in_pro_id)[0] -# app_acc_exp = self.pool.get('account.account').browse(cr,uid,exp_pro_id)[0] if app_acc_in.company_id.id != company_id and app_acc_exp.company_id.id != company_id: in_res_id = account_obj.search(cr, uid, [('name','=',app_acc_in.name),('company_id','=',company_id)]) exp_res_id = account_obj.search(cr, uid, [('name','=',app_acc_exp.name),('company_id','=',company_id)]) diff --git a/addons/account/partner_view.xml b/addons/account/partner_view.xml index 609b8f0da5a..f3a8cca8ada 100644 --- a/addons/account/partner_view.xml +++ b/addons/account/partner_view.xml @@ -63,7 +63,7 @@ + --> res.partner.property.form.inherit diff --git a/addons/account/process/customer_invoice_process.xml b/addons/account/process/customer_invoice_process.xml index 172de7b7b1c..1f04c8e023b 100644 --- a/addons/account/process/customer_invoice_process.xml +++ b/addons/account/process/customer_invoice_process.xml @@ -1,21 +1,21 @@ - - - + - - - + @@ -26,7 +26,7 @@ - + @@ -37,7 +37,7 @@ - + @@ -48,7 +48,7 @@ - + @@ -58,7 +58,7 @@ - + @@ -70,7 +70,7 @@ - + @@ -81,7 +81,7 @@ - + @@ -92,7 +92,7 @@ - + @@ -103,7 +103,7 @@ - + @@ -115,20 +115,16 @@ - - - + - - - - - + @@ -137,7 +133,7 @@ - + @@ -146,7 +142,7 @@ - + @@ -156,7 +152,7 @@ - + @@ -165,7 +161,7 @@ - + @@ -174,7 +170,7 @@ - + @@ -183,7 +179,7 @@ - + @@ -192,7 +188,7 @@ - + @@ -201,17 +197,17 @@ - - - + - + diff --git a/addons/account/project/project_report.xml b/addons/account/project/project_report.xml index ae6aedeaab1..0bc8077761e 100644 --- a/addons/account/project/project_report.xml +++ b/addons/account/project/project_report.xml @@ -3,32 +3,15 @@ - - - - - - - - - - - - - - - - - diff --git a/addons/account/project/project_view.xml b/addons/account/project/project_view.xml index 6b973d14187..fb7e41101f7 100644 --- a/addons/account/project/project_view.xml +++ b/addons/account/project/project_view.xml @@ -61,10 +61,6 @@ - - - - @@ -112,7 +108,6 @@ {"search_default_user_id":uid} - @@ -135,17 +130,8 @@ Analytic Charts of Accounts allows you to access to reports by analytic accounts (or cost accounts) . From this menu you can access to analytic balance, a report that relates the analytic accounts to the general accounts. It is useful for analyzing the profitability of projects, giving you the profitability of a project for the different operations that you used to carry out the project. - - - - - - - - account.analytic.line.form @@ -230,14 +216,8 @@ {"search_default_user_id":uid} - - - - - - - + Analytic Entries @@ -355,30 +335,6 @@ tree,form - - - - - - - - - - - - # # Reporting @@ -392,15 +348,6 @@ - - - - - - - - - # # Statistics # @@ -476,7 +423,6 @@ tree,graph - diff --git a/addons/account/project/wizard/account_analytic_balance_report.py b/addons/account/project/wizard/account_analytic_balance_report.py index b751808ffb9..2a0a8bba7a8 100644 --- a/addons/account/project/wizard/account_analytic_balance_report.py +++ b/addons/account/project/wizard/account_analytic_balance_report.py @@ -30,12 +30,12 @@ class account_analytic_balance(osv.osv_memory): 'date1': fields.date('Start of period', required=True), 'date2': fields.date('End of period', required=True), 'empty_acc': fields.boolean('Empty Accounts ? ', help='Check if you want to display Accounts with 0 balance too.'), - } + } _defaults = { 'date1':time.strftime('%Y-01-01'), 'date2':time.strftime('%Y-%m-%d') - } + } def check_report(self, cr, uid, ids, context=None): datas = {} diff --git a/addons/account/project/wizard/account_analytic_chart.py b/addons/account/project/wizard/account_analytic_chart.py index dc55d6c43e7..89155810fc0 100644 --- a/addons/account/project/wizard/account_analytic_chart.py +++ b/addons/account/project/wizard/account_analytic_chart.py @@ -27,7 +27,7 @@ class account_analytic_chart(osv.osv_memory): _columns = { 'from_date': fields.date('From'), 'to_date': fields.date('To'), - } + } def analytic_account_chart_open_window(self, cr, uid, ids, context=None): mod_obj = self.pool.get('ir.model.data') diff --git a/addons/account/project/wizard/account_analytic_check.py b/addons/account/project/wizard/account_analytic_check.py index 48c89df8fc4..53327963151 100644 --- a/addons/account/project/wizard/account_analytic_check.py +++ b/addons/account/project/wizard/account_analytic_check.py @@ -29,12 +29,12 @@ class account_analytic_check(osv.osv_memory): _columns = { 'date1': fields.date('Start of period', required=True), 'date2': fields.date('End of period', required=True), - } + } _defaults = { 'date1':time.strftime('%Y-01-01'), 'date2':time.strftime('%Y-%m-%d') - } + } def check_report(self, cr, uid, ids, context=None): datas = {} diff --git a/addons/account/project/wizard/account_analytic_cost_ledger_for_journal_report.py b/addons/account/project/wizard/account_analytic_cost_ledger_for_journal_report.py index 6074fee3f08..ad1ea42c29f 100644 --- a/addons/account/project/wizard/account_analytic_cost_ledger_for_journal_report.py +++ b/addons/account/project/wizard/account_analytic_cost_ledger_for_journal_report.py @@ -30,12 +30,12 @@ class account_analytic_cost_ledger_journal_report(osv.osv_memory): 'date1': fields.date('Start of period', required=True), 'date2': fields.date('End of period', required=True), 'journal': fields.many2many('account.analytic.journal', 'ledger_journal_rel', 'ledger_id', 'Journal_id', 'Journals'), - } + } _defaults = { 'date1':time.strftime('%Y-01-01'), 'date2':time.strftime('%Y-%m-%d') - } + } def check_report(self, cr, uid, ids, context=None): datas = {} diff --git a/addons/account/project/wizard/account_analytic_cost_ledger_report.py b/addons/account/project/wizard/account_analytic_cost_ledger_report.py index 96b480b4fb5..d228499e5bd 100644 --- a/addons/account/project/wizard/account_analytic_cost_ledger_report.py +++ b/addons/account/project/wizard/account_analytic_cost_ledger_report.py @@ -29,12 +29,12 @@ class account_analytic_cost_ledger(osv.osv_memory): _columns = { 'date1': fields.date('Start of period', required=True), 'date2': fields.date('End of period', required=True), - } + } _defaults = { 'date1':time.strftime('%Y-01-01'), 'date2':time.strftime('%Y-%m-%d') - } + } def check_report(self, cr, uid, ids, context=None): datas = {} diff --git a/addons/account/project/wizard/account_analytic_inverted_balance_report.py b/addons/account/project/wizard/account_analytic_inverted_balance_report.py index 52f7da936fe..0fac1ba8dec 100644 --- a/addons/account/project/wizard/account_analytic_inverted_balance_report.py +++ b/addons/account/project/wizard/account_analytic_inverted_balance_report.py @@ -29,12 +29,12 @@ class account_analytic_inverted_balance(osv.osv_memory): _columns = { 'date1': fields.date('Start of period', required=True), 'date2': fields.date('End of period', required=True), - } + } _defaults = { 'date1':time.strftime('%Y-01-01'), 'date2':time.strftime('%Y-%m-%d') - } + } def check_report(self, cr, uid, ids, context=None): datas = {} diff --git a/addons/account/project/wizard/account_analytic_journal_report.py b/addons/account/project/wizard/account_analytic_journal_report.py index aef6a85149d..06bec940f89 100644 --- a/addons/account/project/wizard/account_analytic_journal_report.py +++ b/addons/account/project/wizard/account_analytic_journal_report.py @@ -29,12 +29,12 @@ class account_analytic_Journal_report(osv.osv_memory): _columns = { 'date1': fields.date('Start of period', required=True), 'date2': fields.date('End of period', required=True), - } + } _defaults = { 'date1':time.strftime('%Y-01-01'), 'date2':time.strftime('%Y-%m-%d') - } + } def check_report(self, cr, uid, ids, context=None): datas = {} diff --git a/addons/account/project/wizard/project_account_analytic_line.py b/addons/account/project/wizard/project_account_analytic_line.py index dbe3df3c819..5437abe5be7 100644 --- a/addons/account/project/wizard/project_account_analytic_line.py +++ b/addons/account/project/wizard/project_account_analytic_line.py @@ -27,7 +27,7 @@ class project_account_analytic_line(osv.osv_memory): _columns = { 'from_date': fields.date('From'), 'to_date': fields.date('To'), - } + } def action_open_window(self, cr, uid, ids, context={}): mod_obj =self.pool.get('ir.model.data') diff --git a/addons/account/project/wizard/project_account_analytic_line_view.xml b/addons/account/project/wizard/project_account_analytic_line_view.xml index d564ffb5c81..926c783b444 100644 --- a/addons/account/project/wizard/project_account_analytic_line_view.xml +++ b/addons/account/project/wizard/project_account_analytic_line_view.xml @@ -28,8 +28,8 @@ project.account.analytic.line form tree,form - - new + + new diff --git a/addons/account/report/account_aged_partner_balance.py b/addons/account/report/account_aged_partner_balance.py index a70d79cdd40..8e07f3ad56c 100644 --- a/addons/account/report/account_aged_partner_balance.py +++ b/addons/account/report/account_aged_partner_balance.py @@ -181,10 +181,6 @@ class aged_trial_report(rml_parse.rml_parse, common_report_header): ## Add for total self.total_account[(i+1)] = self.total_account[(i+1)] + (total and total[0] or 0.0) values['name'] = partner['name'] - #t = 0.0 - #for i in range(5)+['direction']: - # t+= float(values.get(str(i), 0.0) or 0.0) - #values['total'] = t if values['total']: res.append(values) @@ -217,7 +213,7 @@ class aged_trial_report(rml_parse.rml_parse, common_report_header): return 'Payable Accounts' elif data['form']['result_selection'] == 'customer_supplier': return 'Receivable and Payable Accounts' - return '' + return '' report_sxw.report_sxw('report.account.aged_trial_balance', 'res.partner', 'addons/account/report/account_aged_partner_balance.rml',parser=aged_trial_report, header=False) diff --git a/addons/account/report/account_balance.py b/addons/account/report/account_balance.py index 076369f7e10..79e2334b7dc 100644 --- a/addons/account/report/account_balance.py +++ b/addons/account/report/account_balance.py @@ -86,10 +86,6 @@ class account_balance(report_sxw.rml_parse, common_report_header): elif form['filter'] == 'filter_date': ctx['date_from'] = form['date_from'] ctx['date_to'] = form['date_to'] -# accounts = obj_account.browse(self.cr, self.uid, ids, ctx) -# def cmp_code(x, y): -# return cmp(x.code, y.code) -# accounts.sort(cmp_code) child_ids = obj_account._get_children_and_consol(self.cr, self.uid, ids, ctx) if child_ids: @@ -108,28 +104,11 @@ class account_balance(report_sxw.rml_parse, common_report_header): 'debit': account['debit'], 'credit': account['credit'], 'balance': account['balance'], - # 'leef': not bool(account['child_id']), 'parent_id':account['parent_id'], 'bal_type':'', } self.sum_debit += account['debit'] self.sum_credit += account['credit'] -# if account.child_id: -# def _check_rec(account): -# if not account.child_id: -# return bool(account.credit or account.debit) -# for c in account.child_id: -# if not _check_rec(c) or _check_rec(c): -# return True -# return False -# if not _check_rec(account) : -# continue -# if account['parent_id']: -# acc = obj_account.read(self.cr, self.uid, [ account['parent_id'][0] ] ,['name'], ctx) -# for r in result_acc: -# if r['id'] == account['parent_id'][0]: -# res['level'] = r['level'] + 1 -# break if form['display_account'] == 'bal_movement': if res['credit'] > 0 or res['debit'] > 0 or res['balance'] > 0 : result_acc.append(res) @@ -138,16 +117,6 @@ class account_balance(report_sxw.rml_parse, common_report_header): result_acc.append(res) else: result_acc.append(res) -# if account.child_id: -# acc_id = [acc.id for acc in account.child_id] -# lst_string = '' -# lst_string = '\'' + '\',\''.join(map(str,acc_id)) + '\'' -# self.cr.execute("select code,id from account_account where id IN (%s)"%(lst_string)) -# a_id = self.cr.fetchall() -# a_id.sort() -# ids2 = [x[1] for x in a_id] -# -# result_acc += self.lines(form, ids2, done, level+1) return result_acc report_sxw.report_sxw('report.account.account.balance', 'account.account', 'addons/account/report/account_balance.rml', parser=account_balance, header="internal") diff --git a/addons/account/report/account_balance_landscape.py b/addons/account/report/account_balance_landscape.py index 02d69ba8b19..e8b8502e331 100644 --- a/addons/account/report/account_balance_landscape.py +++ b/addons/account/report/account_balance_landscape.py @@ -24,8 +24,6 @@ import locale from report import report_sxw import rml_parse -#from addons.account.wizard import wizard_account_balance_report - parents = { 'tr':1, 'li':1, @@ -59,267 +57,6 @@ class account_balance_landscape(rml_parse.rml_parse): }) self.context = context -# def repeatIn(self, lst, name, nodes_parent=False,td=False,width=[],value=[],type=[]): -# self._node.data = '' -# node = self._find_parent(self._node, nodes_parent or parents) -# ns = node.nextSibling -##start -# if value==['Cash','%']: -# if show==1: -# if perc==1: -# if pattern=='none': -# value=['','Cash','%'] -# type=['lable','lable','lable'] -# width=[130,65,65] -# else: -# value=[' ','','Cash','%'] -# type=['string','lable','lable','lable'] -# width=[65,130,65,65] -# else: -# if pattern=='none': -# value=[''] -# type=['lable'] -# width=[195] -# else: -# value=[' ',''] -# type=['string','lable'] -# width=[65,195] -# else: -# if perc==1: -# if pattern=='none': -# value=['Cash','%'] -# type=['lable','lable'] -# width=[65,65] -# else: -# value=[' ','Cash','%'] -# type=['string','lable','lable'] -# width=[65,65,65] -# else: -# if pattern=='none': -# value=[''] -# type=['lable'] -# width=[65] -# else: -# value=[' ',''] -# type=['string','lable'] -# width=[65,65] -# -# -# if value==['year']: -# if show==1: -# if perc==1: -# if pattern=='none': -# width=[260] -# else: -# value=[' ','year'] -# type=['string','string'] -# width=[65,260] -# else: -# if pattern=='none': -# width=[195] -# else: -# value=[' ','year'] -# type=['string','string'] -# width=[65,195] -# else: -# if perc==1: -# if pattern=='none': -# width=[130] -# else: -# value=[' ','year'] -# type=['string','string'] -# width=[65,130] -# -# else: -# if pattern=='none': -# width=[65] -# else: -# value=[' ','year'] -# type=['string','string'] -# width=[65,65] -# -# if value==['Debit','Credit','Balance']: -# if show==1: -# if perc==1: -# if pattern=='none': -# width=[65,65,130] -# else: -# value=[' ','Debit','Credit','Balance'] -# type=['string','lable','lable','lable'] -# width=[65,65,65,130] -# else: -# if pattern=='none': -# width=[65,65,65] -# else: -# value=[' ','Debit','Credit','Balance'] -# type=['string','lable','lable','lable'] -# width=[65,65,65,65] -# -# else: -# if perc==1: -# if pattern=='none': -# value=['Balance'] -# type=['lable'] -# width=[130] -# else: -# value=[' ','Balance'] -# type=['string','lable'] -# width=[65,130] -# else: -# if pattern=='none': -# value=['Balance'] -# type=['lable'] -# width=[65] -# else: -# value=[' ','Balance'] -# type=['string','lable'] -# width=[65,65] -# -# if value==['debit','credit','balance']: -# if show==1: -# if perc==1: -# if pattern=='none': -# value=['debit','credit','balance','balance_perc'] -# type=['string','string','string','string'] -# width=[65,65,65,65] -# else: -# value=[pattern,'debit','credit','balance','balance_perc'] -# type=['string','string','string','string','string'] -# width=[65,65,65,65,65] -# else: -# if pattern=='none': -# value=['debit','credit','balance'] -# type=['string','string','string'] -# width=[65,65,65] -# else: -# value=[pattern,'debit','credit','balance'] -# type=['string','string','string','string'] -# width=[65,65,65,65] -# -# else: -# if perc==1: -# if pattern=='none': -# value=['balance','balance_perc'] -# type=['string','string'] -# width=[65,65] -# else: -# value=[pattern,'balance','balance_perc'] -# type=['string','string','string'] -# width=[65,65,65] -# else: -# if pattern=='none': -# value=['balance'] -# type=['string'] -# width=[65] -# else: -# value=[pattern,'balance'] -# type=['string','string'] -# width=[65,65] -# -# if value==['sum_debit','sum_credit','']: -# if show==1: -# if perc==1: -# if pattern=='none': -# width=[65,65,130] -# else: -# value=[' ','sum_debit','sum_credit',''] -# type=['string','string','string','lable'] -# width=[65,65,65,130] -# else: -# if pattern=='none': -# width=[65,65,65] -# else: -# value=[' ','sum_debit','sum_credit',''] -# type=['string','string','string','lable'] -# width=[65,65,65,65] -# else: -# if perc==1: -# if pattern=='none': -# value=[''] -# type=['lable'] -# width=[130] -# else: -# value=[' ',''] -# type=['string','lable'] -# width=[65,130] -# else: -# if pattern=='none': -# value=[''] -# type=['lable'] -# width=[65] -# else: -# value=[' ',''] -# type=['string','lable'] -# width=[65,65] -# -# if not lst: -# lst.append(1) -# for ns in node.childNodes : -# if ns and ns.nodeName!='#text' and ns.tagName=='blockTable' and td : -# width_str = ns._attrs['colWidths'].nodeValue -# ns.removeAttribute('colWidths') -# total_td = td * len(value) -# -# if not width: -# for v in value: -# width.append(30) -# check1=0 -# for t in range(td): -# for v in range(len(value)): -# if type[v] in ('String','STRING','string'): -# if (value[v]==" " or value[0]==pattern): -# if check1==0: -# check1=1 -# width_str +=',0.0' -# else: -# width_str +=',%d'%width[v] -# else: -# width_str +=',%d'%width[v] -# else: -# width_str +=',%d'%width[v] -# ns.setAttribute('colWidths',width_str) -# -# child_list = ns.childNodes -# -# check=0 -# for child in child_list: -# if child.nodeName=='tr': -# lc = child.childNodes[1] -# for t in range(td): -# i=0 -# for v in value: -# -# newnode = lc.cloneNode(1) -# temp2="%s['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]]"%(name) -## -# if type[i] in ('String','STRING','string'): -# if (v==" " or v==pattern) and i==0 and check==0: -# check=1 -# if newnode.childNodes[1].lastChild: -# newnode.childNodes[1].lastChild.data="" -# else: -# if v==" ": -# if newnode.childNodes[1].lastChild: -# newnode.childNodes[1].lastChild.data="" -# else: -# t1= "[[ %s['%s%d'] ]]"%(name,v,t) -# if v=="year" or v=="sum_debit" or v=="sum_credit": -# if newnode.childNodes[1].lastChild: -# newnode.childNodes[1].lastChild.data = t1 -# else: -# if newnode.childNodes[1].lastChild: -# newnode.childNodes[1].lastChild.data = t1+"[["+temp2 -## newnode.childNodes[1].lastChild.data=[[ a['status']==1 and ( setTag('para','para',{'fontName':'Times-bold'})) ]] -# elif type[i] in ('Lable','LABLE','lable'): -# if newnode.childNodes[1].lastChild: -# newnode.childNodes[1].lastChild.data= v -# -# child.appendChild(newnode) -# -# newnode=False -# i+=1 -# return super(account_balance_landscape,self).repeatIn(lst, name, nodes_parent=False) -#end def linesForYear(self,form): temp=0 years={} @@ -363,7 +100,6 @@ class account_balance_landscape(rml_parse.rml_parse): total_for_perc=[] -# if perc==1: self.done_total=1 self.total_for_perc=self.linesForTotal(form, ids={}, doneAccount={}, level=1) self.done_total=0 @@ -372,8 +108,6 @@ class account_balance_landscape(rml_parse.rml_parse): locale.setlocale(locale.LC_ALL, '') self.result_total["sum_credit" + str(t1)]=locale.format("%.2f", self.result_total["sum_credit" + str(t1)], grouping=True) self.result_total["sum_debit" + str(t1)]=locale.format("%.2f", self.result_total["sum_debit" + str(t1)], grouping=True) -# self.flag=1 -# self.result_total = {} for temp in range(0,len(form['fiscalyear'])): fy=self.pool.get('account.fiscalyear').name_get(self.cr, self.uid, form['fiscalyear'][temp]) diff --git a/addons/account/report/account_balance_sheet.py b/addons/account/report/account_balance_sheet.py index ab5a284e412..e76c8450573 100644 --- a/addons/account/report/account_balance_sheet.py +++ b/addons/account/report/account_balance_sheet.py @@ -91,7 +91,6 @@ class report_balancesheet_horizontal(rml_parse.rml_parse, common_report_header): ] ctx = self.context.copy() -# ctx['state'] = form['context'].get('state','filter_no') ctx['fiscalyear'] = data['form'].get('fiscalyear_id', False) if data['form']['filter'] == 'filter_period' : diff --git a/addons/account/report/account_report.py b/addons/account/report/account_report.py index 5a62c1ea337..362d0adb414 100644 --- a/addons/account/report/account_report.py +++ b/addons/account/report/account_report.py @@ -122,7 +122,6 @@ class report_aged_receivable(osv.osv): """ This view will be used in dashboard The reason writing this code here is, we need to check date range from today to first date of fiscal year. """ -# ranges = _get_ranges(cr) # Gets the ranges for the x axis of the graph (name column values) pool_obj_fy = pooler.get_pool(cr.dbname).get('account.fiscalyear') today = time.strftime('%Y-%m-%d') fy_id = pool_obj_fy.find(cr, uid, exception=False) diff --git a/addons/account/report/account_report_view.xml b/addons/account/report/account_report_view.xml index 96b49f0247e..a0cee804992 100644 --- a/addons/account/report/account_report_view.xml +++ b/addons/account/report/account_report_view.xml @@ -47,7 +47,6 @@ form tree,graph - @@ -115,9 +114,6 @@ - - - report.account.sales.tree report.account.sales @@ -169,9 +165,7 @@ graph,tree - - report.account_type.sales.tree report.account_type.sales @@ -237,7 +231,6 @@ graph,tree - diff --git a/addons/account/report/compare_account_balance.py b/addons/account/report/compare_account_balance.py index 13fb90fdb5f..b29b2ea4648 100644 --- a/addons/account/report/compare_account_balance.py +++ b/addons/account/report/compare_account_balance.py @@ -58,268 +58,6 @@ class account_balance(report_sxw.rml_parse): }) self.context = context -# def repeatIn(self, lst, name, nodes_parent=False,td=False,width=[],value=[],type=[]): -# self._node.data = '' -# node = self._find_parent(self._node, nodes_parent or parents) -# ns = node.nextSibling -##start -# if value==['Cash','%']: -# if show==1: -# if perc==1: -# if pattern=='none': -# value=['','Cash','%'] -# type=['lable','lable','lable'] -# width=[130,65,65] -# else: -# value=[' ','','Cash','%'] -# type=['string','lable','lable','lable'] -# width=[65,130,65,65] -# else: -# if pattern=='none': -# value=[''] -# type=['lable'] -# width=[195] -# else: -# value=[' ',''] -# type=['string','lable'] -# width=[65,195] -# else: -# if perc==1: -# if pattern=='none': -# value=['Cash','%'] -# type=['lable','lable'] -# width=[65,65] -# else: -# value=[' ','Cash','%'] -# type=['string','lable','lable'] -# width=[65,65,65] -# else: -# if pattern=='none': -# value=[''] -# type=['lable'] -# width=[65] -# else: -# value=[' ',''] -# type=['string','lable'] -# width=[65,65] -# -# -# if value==['year']: -# if show==1: -# if perc==1: -# if pattern=='none': -# width=[260] -# else: -# value=[' ','year'] -# type=['string','string'] -# width=[65,260] -# else: -# if pattern=='none': -# width=[195] -# else: -# value=[' ','year'] -# type=['string','string'] -# width=[65,195] -# else: -# if perc==1: -# if pattern=='none': -# width=[130] -# else: -# value=[' ','year'] -# type=['string','string'] -# width=[65,130] -# -# else: -# if pattern=='none': -# width=[65] -# else: -# value=[' ','year'] -# type=['string','string'] -# width=[65,65] -# -# if value==['Debit','Credit','Balance']: -# if show==1: -# if perc==1: -# if pattern=='none': -# width=[65,65,130] -# else: -# value=[' ','Debit','Credit','Balance'] -# type=['string','lable','lable','lable'] -# width=[65,65,65,130] -# else: -# if pattern=='none': -# width=[65,65,65] -# else: -# value=[' ','Debit','Credit','Balance'] -# type=['string','lable','lable','lable'] -# width=[65,65,65,65] -# -# else: -# if perc==1: -# if pattern=='none': -# value=['Balance'] -# type=['lable'] -# width=[130] -# else: -# value=[' ','Balance'] -# type=['string','lable'] -# width=[65,130] -# else: -# if pattern=='none': -# value=['Balance'] -# type=['lable'] -# width=[65] -# else: -# value=[' ','Balance'] -# type=['string','lable'] -# width=[65,65] -# -# if value==['debit','credit','balance']: -# if show==1: -# if perc==1: -# if pattern=='none': -# value=['debit','credit','balance','balance_perc'] -# type=['string','string','string','string'] -# width=[65,65,65,65] -# else: -# value=[pattern,'debit','credit','balance','balance_perc'] -# type=['string','string','string','string','string'] -# width=[65,65,65,65,65] -# else: -# if pattern=='none': -# value=['debit','credit','balance'] -# type=['string','string','string'] -# width=[65,65,65] -# else: -# value=[pattern,'debit','credit','balance'] -# type=['string','string','string','string'] -# width=[65,65,65,65] -# -# else: -# if perc==1: -# if pattern=='none': -# value=['balance','balance_perc'] -# type=['string','string'] -# width=[65,65] -# else: -# value=[pattern,'balance','balance_perc'] -# type=['string','string','string'] -# width=[65,65,65] -# else: -# if pattern=='none': -# value=['balance'] -# type=['string'] -# width=[65] -# else: -# value=[pattern,'balance'] -# type=['string','string'] -# width=[65,65] -# -# if value==['sum_debit','sum_credit','']: -# if show==1: -# if perc==1: -# if pattern=='none': -# width=[65,65,130] -# else: -# value=[' ','sum_debit','sum_credit',''] -# type=['string','string','string','lable'] -# width=[65,65,65,130] -# else: -# if pattern=='none': -# width=[65,65,65] -# else: -# value=[' ','sum_debit','sum_credit',''] -# type=['string','string','string','lable'] -# width=[65,65,65,65] -# else: -# if perc==1: -# if pattern=='none': -# value=[''] -# type=['lable'] -# width=[130] -# else: -# value=[' ',''] -# type=['string','lable'] -# width=[65,130] -# else: -# if pattern=='none': -# value=[''] -# type=['lable'] -# width=[65] -# else: -# value=[' ',''] -# type=['string','lable'] -# width=[65,65] -# -# if not lst: -# lst.append(1) -# for ns in node.childNodes : -# if ns and ns.nodeName!='#text' and ns.tagName=='blockTable' and td : -# width_str = ns._attrs['colWidths'].nodeValue -# ns.removeAttribute('colWidths') -# total_td = td * len(value) -# -# if not width: -# for v in value: -# width.append(30) -# check1=0 -# for t in range(td): -# for v in range(len(value)): -# if type[v] in ('String','STRING','string'): -# if (value[v]==" " or value[0]==pattern): -# if check1==0: -# check1=1 -# width_str +=',0.0' -# else: -# width_str +=',%d'%width[v] -# else: -# width_str +=',%d'%width[v] -# else: -# width_str +=',%d'%width[v] -# ns.setAttribute('colWidths',width_str) -# -# child_list = ns.childNodes -# -# check=0 -# for child in child_list: -# if child.nodeName=='tr': -# lc = child.childNodes[1] -# for t in range(td): -# i=0 -# for v in value: -# -# newnode = lc.cloneNode(1) -# temp2="%s['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]]"%(name) -## -# if type[i] in ('String','STRING','string'): -# if (v==" " or v==pattern) and i==0 and check==0: -# check=1 -# if newnode.childNodes[1].lastChild: -# newnode.childNodes[1].lastChild.data="" -# else: -# if v==" ": -# if newnode.childNodes[1].lastChild: -# newnode.childNodes[1].lastChild.data="" -# else: -# t1= "[[ %s['%s%d'] ]]"%(name,v,t) -# if v=="year" or v=="sum_debit" or v=="sum_credit": -# if newnode.childNodes[1].lastChild: -# newnode.childNodes[1].lastChild.data = t1 -# else: -# if newnode.childNodes[1].lastChild: -# newnode.childNodes[1].lastChild.data = t1+"[["+temp2 -## newnode.childNodes[1].lastChild.data=[[ a['status']==1 and ( setTag('para','para',{'fontName':'Times-bold'})) ]] -# elif type[i] in ('Lable','LABLE','lable'): -# if newnode.childNodes[1].lastChild: -# newnode.childNodes[1].lastChild.data= v -# -# child.appendChild(newnode) -# -# newnode=False -# i+=1 -# return super(account_balance,self).repeatIn(lst, name, nodes_parent=False) -#end - def linesForYear(self, form): temp=0 years={} @@ -363,7 +101,6 @@ class account_balance(report_sxw.rml_parse): total_for_perc=[] -# if perc==1: self.done_total=1 self.total_for_perc=self.linesForTotal(form, ids={}, doneAccount={}, level=1) self.done_total=0 @@ -372,8 +109,6 @@ class account_balance(report_sxw.rml_parse): locale.setlocale(locale.LC_ALL, '') self.result_total["sum_credit" + str(t1)]=locale.format("%.2f", self.result_total["sum_credit" + str(t1)], grouping=True) self.result_total["sum_debit" + str(t1)]=locale.format("%.2f", self.result_total["sum_debit" + str(t1)], grouping=True) -# self.flag=1 -# self.result_total = {} for temp in range(0,len(form['fiscalyear'])): fy=self.pool.get('account.fiscalyear').name_get(self.cr, self.uid, form['fiscalyear'][temp]) diff --git a/addons/account/report/rml_parse.py b/addons/account/report/rml_parse.py index 1b38b930b2b..9178c0fd2e8 100644 --- a/addons/account/report/rml_parse.py +++ b/addons/account/report/rml_parse.py @@ -106,7 +106,6 @@ class rml_parse(report_sxw.rml_parse): return Stringer return Stringer def explode_this(self,chaine,length): - #chaine = self.repair_string(chaine) chaine = rstrip(chaine) ast = list(chaine) i = length @@ -120,7 +119,6 @@ class rml_parse(report_sxw.rml_parse): UnicodeAst = [] _previouslyfound = False i = 0 - #print str(ast) while i < len(ast): elem = ast[i] try: @@ -160,25 +158,5 @@ class rml_parse(report_sxw.rml_parse): rml_head = rml_head.replace('',''' [[company.logo]] ''') return True - # def _add_header(self, node): - # rml_head = tools.file_open('specific_param/report/header/corporate_rml_header_ch.rml').read() - # head_dom = xml.dom.minidom.parseString(rml_head) - # #for frame in head_dom.getElementsByTagName('frame'): - # # frame.parentNode.removeChild(frame) - # node2 = head_dom.documentElement - # for tag in node2.childNodes: - # if tag.nodeType==tag.ELEMENT_NODE: - # found = self._find_node(node, tag.localName) - # # rml_frames = found.getElementsByTagName('frame') - # if found: - # if tag.hasAttribute('position') and (tag.getAttribute('position')=='inside'): - # found.appendChild(tag) - # else: - # found.parentNode.replaceChild(tag, found) - # # for frame in rml_frames: - # # tag.appendChild(frame) - # return True - - # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/account/report/tax_report.py b/addons/account/report/tax_report.py index 2075b1f139b..5e5f68a3fa8 100644 --- a/addons/account/report/tax_report.py +++ b/addons/account/report/tax_report.py @@ -78,7 +78,6 @@ class tax_report(rml_parse.rml_parse): top_result.append(res_general[ind_general]) ind_general+=1 i+=1 - #array_result = self.sort_result(top_result) return top_result #return array_result @@ -133,8 +132,6 @@ class tax_report(rml_parse.rml_parse): company_id, periods_ids,)) res = self.cr.dictfetchall() - #AND line.period_id IN ('+ period_sql_list +') \ - i = 0 while i['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + Account fiscal position company rule + + + [('company_id','=',user.company_id.id)] + + + + Account model company rule + + + [('company_id','=',user.company_id.id)] + + diff --git a/addons/account/wizard/__init__.py b/addons/account/wizard/__init__.py index b88619ed9f9..dea907acf2d 100644 --- a/addons/account/wizard/__init__.py +++ b/addons/account/wizard/__init__.py @@ -50,7 +50,6 @@ import account_invoice_state import account_chart #TODO: remove this file no moe used # also remove related view fiel -#import account_move_line_select import account_validate_account_move import account_use_model diff --git a/addons/account/wizard/account_automatic_reconcile.py b/addons/account/wizard/account_automatic_reconcile.py index 900e1c44ec4..436d320456e 100644 --- a/addons/account/wizard/account_automatic_reconcile.py +++ b/addons/account/wizard/account_automatic_reconcile.py @@ -151,8 +151,6 @@ class account_automatic_reconcile(osv.osv_memory): query = "SELECT partner_id FROM account_move_line WHERE account_id=%s AND reconcile_id IS NULL \ AND state <> 'draft' GROUP BY partner_id \ HAVING ABS(SUM(debit-credit)) <> %s AND count(*)>0"%(account_id, 0.0) -# query="SELECT partner_id FROM account_move_line WHERE account_id=%s AND reconcile_id IS NULL \ -# AND state <> 'draft' GROUP BY partner_id AND debit = credi"%(account_id) else: query = "SELECT partner_id FROM account_move_line WHERE account_id=%s AND reconcile_id IS NULL \ AND state <> 'draft' GROUP BY partner_id \ diff --git a/addons/account/wizard/account_chart.py b/addons/account/wizard/account_chart.py index c9cc5ff7bd5..bace3d0ca29 100644 --- a/addons/account/wizard/account_chart.py +++ b/addons/account/wizard/account_chart.py @@ -64,7 +64,7 @@ class account_chart(osv.osv_memory): _defaults = { 'fiscalyear': _get_fiscalyear, 'target_move': 'all' - } + } account_chart() # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/account/wizard/account_compare_account_balance_report.py b/addons/account/wizard/account_compare_account_balance_report.py index 5378cd2569b..05e441c5baa 100644 --- a/addons/account/wizard/account_compare_account_balance_report.py +++ b/addons/account/wizard/account_compare_account_balance_report.py @@ -46,13 +46,13 @@ class account_compare_account_balance_report(osv.osv_memory): 'periods': fields.many2many('account.period', 'period_account_balance_rel', 'report_id', 'period_id', 'Periods', help='Keep empty for all open fiscal year'), - } + } _defaults={ 'compare_pattern': 'none', 'account_choice': 'moves', 'period_manner': 'actual', - } + } def check(self, cr, uid, ids, context=None): data={} diff --git a/addons/account/wizard/account_fiscalyear_close.py b/addons/account/wizard/account_fiscalyear_close.py index 65645f5da1e..a8018e05c2f 100644 --- a/addons/account/wizard/account_fiscalyear_close.py +++ b/addons/account/wizard/account_fiscalyear_close.py @@ -39,10 +39,10 @@ class account_fiscalyear_close(osv.osv_memory): 'Opening Entries Period', required=True), 'report_name': fields.char('Name of new entries',size=64, required=True), 'sure': fields.boolean('Check this box'), - } + } _defaults = { 'report_name':'End of Fiscal Year Entry', - } + } def data_save(self, cr, uid, ids, context=None): """ diff --git a/addons/account/wizard/account_fiscalyear_close_state.py b/addons/account/wizard/account_fiscalyear_close_state.py index 4d0479f8014..fd58e8c7b1c 100644 --- a/addons/account/wizard/account_fiscalyear_close_state.py +++ b/addons/account/wizard/account_fiscalyear_close_state.py @@ -33,7 +33,7 @@ class account_fiscalyear_close_state(osv.osv_memory): 'fy_id': fields.many2one('account.fiscalyear', \ 'Fiscal Year to close', required=True), 'sure': fields.boolean('Check this box', required=False) - } + } def data_save(self, cr, uid, ids, context=None): """ diff --git a/addons/account/wizard/account_invoice_state_view.xml b/addons/account/wizard/account_invoice_state_view.xml index 7130e7dc758..6f6dca22e46 100644 --- a/addons/account/wizard/account_invoice_state_view.xml +++ b/addons/account/wizard/account_invoice_state_view.xml @@ -12,7 +12,7 @@