diff --git a/addons/account/__terp__.py b/addons/account/__terp__.py index 1c58efb161f..6faf8772a67 100644 --- a/addons/account/__terp__.py +++ b/addons/account/__terp__.py @@ -25,15 +25,19 @@ "version" : "1.1", "depends" : ["product", "analytic", "process"], "author" : "Tiny", + "category": 'Generic Modules/Accounting', "description": """Financial and accounting module that covers: - General accounting + General accountings Cost / Analytic accounting Third party accounting Taxes management Budgets Customer and Supplier Invoices Bank statements - Account Balance Report + +The processes like maintaining of general ledger is done through the defined financial Journals (entry move line or +grouping is maintained through journal) for a particular financial year and for preparation of vouchers there is a +module named account_voucherss """, 'website': 'http://www.openerp.com', 'init_xml': [], @@ -61,6 +65,8 @@ 'sequence_view.xml', 'company_view.xml', 'account_installer.xml', + 'report/account_invoice_report_view.xml', + 'report/account_report_view.xml', ], 'demo_xml': [ #'demo/price_accuracy00.yml', diff --git a/addons/account/account.py b/addons/account/account.py index 84e7e0c74c5..12868487c49 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -2182,6 +2182,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): #create all the tax code children_tax_code_template = self.pool.get('account.tax.code.template').search(cr, uid, [('parent_id','child_of',[tax_code_root_id])], order='id') + children_tax_code_template.sort() for tax_code_template in self.pool.get('account.tax.code.template').browse(cr, uid, children_tax_code_template): vals={ 'name': (tax_code_root_id == tax_code_template.id) and obj_multi.company_id.name or tax_code_template.name, diff --git a/addons/account/account_analytic_line.py b/addons/account/account_analytic_line.py index 18f63733ff6..c42597e785d 100644 --- a/addons/account/account_analytic_line.py +++ b/addons/account/account_analytic_line.py @@ -147,8 +147,9 @@ class account_analytic_line(osv.osv): # Compute based on pricetype pricetype=self.pool.get('product.price.type').browse(cr,uid,company_obj.browse(cr,uid,company_id).property_valuation_price_type.id) + # Take the company currency as the reference one + context['currency_id']=company_obj.browse(cr,uid,company_id).currency_id.id amount_unit=prod.price_get(pricetype.field, context)[prod.id] - amount=amount_unit*unit_amount or 1.0 return {'value': { 'amount': - round(amount, 2), diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 4e042a77ca8..c74868c342c 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -144,20 +144,26 @@ - + - + + + + + + - - + + - + @@ -200,19 +206,17 @@ + + - - - - diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 0adc85a942e..07d8e1a02ac 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -278,7 +278,7 @@ class account_move_line(osv.osv): data['amount_currency'] = v return data - def _on_create_write(self, cr, uid, id, context={}): + def on_create_write(self, cr, uid, id, context={}): ml = self.browse(cr, uid, id, context) return map(lambda x: x.id, ml.move_id.line_id) @@ -733,7 +733,7 @@ class account_move_line(osv.osv): state = ' colors="red:state==\'draft\'"' #xml = '''\n\n\t''' % (title, state) - xml = '''\n\n\t''' % (title, state) + xml = '''\n\n\t''' % (title, state) fields = [] widths = { diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index d865823e9cd..e43b2249ae5 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -159,7 +159,7 @@ - + List of Accounts account.account @@ -681,7 +681,7 @@ tree - + @@ -1334,7 +1334,7 @@