diff --git a/addons/account/account.py b/addons/account/account.py index 1520c4f0646..5de913c45a7 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -2019,7 +2019,7 @@ class account_model(osv.osv): } _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'), + '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'), } def generate(self, cr, uid, ids, datas={}, context=None): move_ids = [] @@ -2221,7 +2221,7 @@ class account_subscription_line(osv.osv): account_subscription_line() # --------------------------------------------------------------- -# Account Templates : Account, Tax, Tax Code and chart. + Wizard +# Account Templates: Account, Tax, Tax Code and chart. + Wizard # --------------------------------------------------------------- class account_tax_template(osv.osv): @@ -2394,7 +2394,7 @@ class account_chart_template(osv.osv): 'property_account_income_categ': fields.many2one('account.account.template','Income Category Account'), 'property_account_expense': fields.many2one('account.account.template','Expense Account on Product Template'), 'property_account_income': fields.many2one('account.account.template','Income Account on Product Template'), - 'property_reserve_and_surplus_account': fields.many2one('account.account.template', 'Reserve and Profit/Loss Account', domain=[('type', '=', 'payable')], help='This Account is used for transferring Profit/Loss(If It is Profit : Amount will be added, Loss : Amount will be deducted.), Which is calculated from Profilt & Loss Report'), + 'property_reserve_and_surplus_account': fields.many2one('account.account.template', 'Reserve and Profit/Loss Account', domain=[('type', '=', 'payable')], help='This Account is used for transferring Profit/Loss(If It is Profit: Amount will be added, Loss: Amount will be deducted.), Which is calculated from Profilt & Loss Report'), } account_chart_template() diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index d9b78795998..b10ced65e88 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -26,6 +26,7 @@ from osv import fields, osv from tools.translate import _ import decimal_precision as dp import tools +from operator import itemgetter class account_move_line(osv.osv): _name = "account.move.line" @@ -863,9 +864,8 @@ class account_move_line(osv.osv): result['toolbar']['action'] = [] #Restrict the list of journal view in search view - if view_type == 'search': - journal_list = journal_pool.name_search(cr, uid, '', [], context=context) - result['fields']['journal_id']['selection'] = journal_list + if view_type == 'search' and result['fields'].get('journal_id', False): + result['fields']['journal_id']['selection'] = journal_pool.name_search(cr, uid, '', [], context=context) return result if context.get('view_mode', False): @@ -887,21 +887,20 @@ class account_move_line(osv.osv): for field in journal.view_id.columns_id: if not field.field in fields: fields[field.field] = [journal.id] - fld.append((field.field, field.sequence)) + fld.append((field.field, field.sequence, field.name)) flds.append(field.field) common_fields[field.field] = 1 else: fields.get(field.field).append(journal.id) common_fields[field.field] = common_fields[field.field] + 1 - fld.append(('period_id', 3)) - fld.append(('journal_id', 10)) + fld.append(('period_id', 3, 'Period')) + fld.append(('journal_id', 10, 'Journal')) flds.append('period_id') flds.append('journal_id') fields['period_id'] = all_journal fields['journal_id'] = all_journal - from operator import itemgetter fld = sorted(fld, key=itemgetter(1)) widths = { @@ -955,7 +954,7 @@ class account_move_line(osv.osv): if field in widths: attrs.append('width="'+str(widths[field])+'"') - + attrs.append('string="'+field_it[2]+'"') attrs.append("invisible=\"context.get('visible_id') not in %s\"" % (fields.get(field))) xml += '''\n''' % (field,' '.join(attrs)) diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index d4e51b7e194..49de367122b 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -23,8 +23,8 @@
- - + + @@ -59,7 +59,7 @@ - + @@ -237,16 +237,16 @@ - account.treasory.graph - account.account - graph - - - - - + account.treasory.graph + account.account + graph + + + + + - + Accounts account.account @@ -314,13 +314,33 @@ + + account.journal.view.search + account.journal.view + search + + + + + + + + account.journal.view.tree + account.journal.view + tree + + + + + + account.journal.view.form account.journal.view form - + @@ -330,7 +350,9 @@ account.journal.view form tree,form + + + + account.account.type.search + account.account.type + search + + + + + + + + account.account.type.tree account.account.type @@ -705,6 +740,7 @@ account.account.type form tree,form + + + account.tax.code.search + account.tax.code + search + + + + + + + + + account.tax.code.tree account.tax.code @@ -777,10 +826,10 @@
- - - - + + + + @@ -803,6 +852,7 @@ form tree,form + @@ -834,7 +884,6 @@ - @@ -845,9 +894,9 @@ - - - + + + @@ -881,8 +930,8 @@ - - + + @@ -1227,24 +1276,24 @@ - - + + - + - + - - + + - + - + @@ -1254,7 +1303,7 @@ - + @@ -1269,7 +1318,7 @@ - + @@ -1355,15 +1404,15 @@ - - - - + + + + - - + + @@ -1471,7 +1520,7 @@ - + @@ -1603,9 +1652,9 @@ form
- - - + + + @@ -1641,7 +1690,7 @@ - + @@ -1723,6 +1772,18 @@ + + account.payment.term.search + account.payment.term + search + + + + + + + + account.payment.term.form account.payment.term @@ -1745,6 +1806,7 @@ account.payment.term form tree,form + account.account.template form tree,form,search + @@ -2243,7 +2306,6 @@ - @@ -2257,6 +2319,7 @@ account.tax.template form tree,form + @@ -2317,6 +2380,7 @@ account.tax.code.template form tree,form,search + @@ -2378,7 +2442,7 @@ new - @@ -2396,13 +2460,24 @@ + + account.fiscal.position.template.search + account.fiscal.position.template + search + + + + + + + account.fiscal.position.template.form account.fiscal.position.template form - + @@ -2444,6 +2519,7 @@ account.fiscal.position.template form tree,form + SAJ/%(year)s/ + + Sales Credit Note Journal + account.journal + + SCNJ/%(year)s/ + Purchase Journal account.journal EXJ/%(year)s/ - + + Expenses Credit Notes Journal + account.journal + + ECNJ/%(year)s/ + + + Bank Journal + account.journal + + BNK/%(year)s/ + + + Checks Journal + account.journal + + CHK/%(year)s/ + + + Cash Journal + account.journal + + CSH/%(year)s/ + diff --git a/addons/account/demo/account_minimal.xml b/addons/account/demo/account_minimal.xml index 764420e6689..87c8a37254d 100644 --- a/addons/account/demo/account_minimal.xml +++ b/addons/account/demo/account_minimal.xml @@ -357,7 +357,7 @@ sale_refund - + @@ -381,7 +381,7 @@ purchase_refund - + @@ -393,7 +393,7 @@ BNK bank - + @@ -404,7 +404,7 @@ CHK bank - + @@ -415,7 +415,7 @@ CSH cash - + diff --git a/addons/account/i18n/hr.po b/addons/account/i18n/hr.po index a34f7c100c0..c4109588ca0 100644 --- a/addons/account/i18n/hr.po +++ b/addons/account/i18n/hr.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-10-13 15:51+0000\n" -"Last-Translator: zmmaj \n" +"PO-Revision-Date: 2010-10-14 07:28+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-10-14 04:45+0000\n" +"X-Launchpad-Export-Date: 2010-10-15 04:42+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/i18n/mn.po b/addons/account/i18n/mn.po index a2e5ce8ef6b..7c955886d37 100644 --- a/addons/account/i18n/mn.po +++ b/addons/account/i18n/mn.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-10-12 07:43+0000\n" -"Last-Translator: OpenERP Administrators \n" +"PO-Revision-Date: 2010-10-15 03:35+0000\n" +"Last-Translator: sugi \n" "Language-Team: Mongolian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-10-13 04:58+0000\n" +"X-Launchpad-Export-Date: 2010-10-15 04:42+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account @@ -706,7 +706,7 @@ msgstr "Нэмэлт мэдээлэл" #. module: account #: selection:account.invoice,type:0 msgid "Customer Refund" -msgstr "Худалдан авагчийн буцаалт" +msgstr "Үйлчлүүлэгчийн буцаалт" #. module: account #: wizard_view:account.analytic.account.chart,init:0 @@ -724,7 +724,7 @@ msgstr "Татварын ангилалын тэмдэг" #. module: account #: help:res.partner,credit:0 msgid "Total amount this customer owes you." -msgstr "Энэ худалдан авагчаас авах нийт авлагын дүн." +msgstr "Энэ үйлчлүүлэгчээс авах нийт авлагын дүн." #. module: account #: view:account.move.line:0 @@ -1067,7 +1067,7 @@ msgstr "Төлсөн дүн" #: model:process.transition,name:account.process_transition_customerinvoice0 #: model:process.transition,name:account.process_transition_suppliercustomerinvoice0 msgid "Customer Invoice" -msgstr "Худалдан авагчийн нэхэмжлэл" +msgstr "Үйлчлүүлэгчийн нэхэмжлэл" #. module: account #: wizard_view:account.open_closed_fiscalyear,init:0 @@ -1401,7 +1401,7 @@ msgstr "Электроник файл" #. module: account #: view:res.partner:0 msgid "Customer Credit" -msgstr "Худалдан авагчийн кредит" +msgstr "Үйлчлүүлэгчийн кредит" #. module: account #: field:account.invoice,tax_line:0 @@ -1881,7 +1881,7 @@ msgstr "Эхлэх огноо" #. module: account #: model:account.journal,name:account.refund_expenses_journal msgid "x Expenses Credit Notes Journal" -msgstr "" +msgstr "Зардлыг кредитийн журналд тэмдэглэх" #. module: account #: field:account.analytic.journal,type:0 @@ -1930,7 +1930,7 @@ msgstr "" #: 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 "Үйлчлүүлэгчийн ноорог нэхэмжлэл" #. module: account #: model:ir.model,name:account.model_account_subscription_line @@ -2020,7 +2020,7 @@ msgstr "Аналитик журналын тайлан" #: model:ir.actions.act_window,name:account.action_invoice_tree3 #: model:ir.ui.menu,name:account.menu_action_invoice_tree3 msgid "Customer Refunds" -msgstr "Худалдан авагчийн буцаалт" +msgstr "Үйлчлүүлэгчийн буцаалт" #. module: account #: rml:account.vat.declaration:0 @@ -2096,7 +2096,7 @@ msgstr "Өгөгдлүүд" #. module: account #: model:process.process,name:account.process_process_invoiceprocess0 msgid "Customer Invoice Process" -msgstr "Худалдан авагчийн нэхэмжлэлийн явц" +msgstr "Үйлчлүүлэгчийн нэхэмжлэлийн явц" #. module: account #: rml:account.invoice:0 @@ -2476,7 +2476,7 @@ msgstr "Журнал нээх" #. module: account #: rml:account.analytic.account.journal:0 msgid "KI" -msgstr "" +msgstr "KI" #. module: account #: model:ir.actions.wizard,name:account.action_account_analytic_line @@ -2732,7 +2732,7 @@ msgstr "-" #. module: account #: rml:account.analytic.account.journal:0 msgid "asgfas" -msgstr "" +msgstr "asgfas" #. module: account #: model:ir.actions.act_window,name:account.action_account_analytic_account_tree2 @@ -2859,7 +2859,7 @@ msgstr "Зарлага төвлөрөл" #. module: account #: rml:account.overdue:0 msgid "Customer Ref:" -msgstr "Худалдан авагчийн дугаар" +msgstr "Үйлчлүүлэгчийн дугаар" #. module: account #: xsl:account.transfer:0 @@ -2882,7 +2882,7 @@ msgstr "Нийт кредит" #: model:ir.actions.act_window,name:account.action_invoice_tree1_new #: model:ir.ui.menu,name:account.menu_action_invoice_tree1_new msgid "New Customer Invoice" -msgstr "Шинэ худалдан авагчийн нэхэмжлэл" +msgstr "Шинэ үйлчлүүлэгчийн нэхэмжлэл" #. module: account #: field:account.account,reconcile:0 @@ -2965,7 +2965,7 @@ msgstr "Дансны хуулга" #. module: account #: rml:account.overdue:0 msgid "Document: Customer account statement" -msgstr "Баримт: Худалдан авагчийн дансны хуулга" +msgstr "Баримт: Үйлчлүүлэгчийн дансны хуулга" #. module: account #: view:product.product:0 @@ -3042,7 +3042,7 @@ msgstr "Гаралтын валютын ханш" #: model:ir.actions.act_window,name:account.action_invoice_tree10 #: model:ir.ui.menu,name:account.menu_action_invoice_tree10 msgid "Draft Customer Refunds" -msgstr "Худалдан авагчийн ноорог буцаалт" +msgstr "Үйлчлүүлэгчийн ноорог буцаалт" #. module: account #: field:account.journal.column,readonly:0 @@ -3840,7 +3840,7 @@ msgstr "" " Харилцагчийн данс бүртгэл\n" " Татварын менежмент\n" " Төсөв\n" -" Харилцагчийн нэхэмжлэл\n" +" Үйлчлүүлэгчийн нэхэмжлэл\n" " Банкны ажил гүйлгэ\n" " " @@ -4001,7 +4001,7 @@ msgstr "Нэмэлт Талбарууд" #. module: account #: view:res.partner:0 msgid "Customer Accounting Properties" -msgstr "Худалдан авагчийн санхүү бүртгэл" +msgstr "Үйлчлүүлэгчийн санхүү бүртгэл" #. module: account #: view:account.bank.statement:0 @@ -4131,7 +4131,7 @@ msgstr "" #: model:ir.actions.act_window,name:account.action_invoice_tree1 #: model:ir.ui.menu,name:account.menu_action_invoice_tree1 msgid "Customer Invoices" -msgstr "Худалдан авагчийн нэхэмжлэл" +msgstr "Үйлчлүүлэгчийн нэхэмжлэл" #. module: account #: field:res.partner,debit_limit:0 @@ -4315,7 +4315,7 @@ msgstr "Татварууд:" #: model:ir.actions.act_window,name:account.action_invoice_tree7 #: model:ir.ui.menu,name:account.menu_action_invoice_tree7 msgid "Unpaid Customer Invoices" -msgstr "Худалдан авагчийн төлөгдөөгүй нэхэмжлэл" +msgstr "Үйлчлүүлэгчийн төлөгдөөгүй нэхэмжлэл" #. module: account #: model:ir.actions.act_window,name:account.action_invoice_tree2 @@ -4503,12 +4503,12 @@ msgstr "Балансын удирдлагын эхлэл төгсгөлийг т #. module: account #: wizard_view:account.wizard_paid_open,init:0 msgid "Are you sure you want to open this invoice ?" -msgstr "" +msgstr "Энэ нэхэмжлэлийг нээхдээ та итгэлтэй байна уу?" #. module: account #: model:ir.actions.report.xml,name:account.account_3rdparty_ledger_other msgid "Partner Other Ledger" -msgstr "" +msgstr "Бусад харилцагчийн тооцооны дэвтэр" #. module: account #: view:res.partner:0 @@ -4652,7 +4652,7 @@ msgstr "Ажил гүйлгээнүүд" #. module: account #: wizard_view:account.analytic.account.chart,init:0 msgid "Analytic Account Charts" -msgstr "" +msgstr "Аналитик дансны мод" #. module: account #: wizard_field:account.aged.trial.balance,init,result_selection:0 @@ -4674,7 +4674,7 @@ msgstr "Аналитик бичилтүүд журналаар" #: model:process.transition,note:account.process_transition_suppliervalidentries0 #: model:process.transition,note:account.process_transition_validentries0 msgid "Valid entries from invoice" -msgstr "" +msgstr "Нэхэмжлэлийн хүчинтэй бичилт" #. module: account #: field:account.account,company_id:0 @@ -4704,7 +4704,7 @@ msgstr "Орлого" #. module: account #: selection:account.subscription,state:0 msgid "Running" -msgstr "" +msgstr "Байнгын" #. module: account #: help:account.tax,include_base_amount:0 @@ -4728,7 +4728,7 @@ msgstr "Журналын нэр" #. module: account #: model:process.transition,note:account.process_transition_invoiceimport0 msgid "Import invoice from statement" -msgstr "" +msgstr "Мэдэгдлээс нэхэмжлэл оруулж ирэх" #. module: account #: selection:account.automatic.reconcile,init,power:0 @@ -4745,13 +4745,13 @@ msgstr "Санхүүгийн жил" #. module: account #: model:process.node,note:account.process_node_importinvoice0 msgid "Import from invoices or payments" -msgstr "" +msgstr "Нэхэмжлэл буюу төлөлтөөс оруулах" #. module: account #: model:ir.actions.wizard,name:account.wizard_reconcile_select #: model:ir.ui.menu,name:account.menu_reconcile_select msgid "Reconcile entries" -msgstr "" +msgstr "Тулгах бичилт" #. module: account #: xsl:account.transfer:0 @@ -4921,7 +4921,7 @@ msgstr "Борлуулалтын татварууд" #. module: account #: model:ir.model,name:account.model_account_move_reconcile msgid "Account Reconciliation" -msgstr "" +msgstr "Дансны тулгалт" #. module: account #: view:account.bank.statement:0 @@ -4953,12 +4953,12 @@ msgstr "" #: field:account.bank.statement.reconcile,total_amount:0 #: field:account.bank.statement.reconcile,total_second_amount:0 msgid "Payment amount" -msgstr "" +msgstr "Төлөлтийн хэмжээ" #. module: account #: view:account.analytic.account:0 msgid "Analytic account" -msgstr "" +msgstr "Аналитик данс" #. module: account #: rml:account.invoice:0 @@ -4995,17 +4995,17 @@ msgstr "Дебит" #. module: account #: model:ir.ui.menu,name:account.next_id_42 msgid "All Months" -msgstr "" +msgstr "Бүх сарууд" #. module: account #: wizard_field:account.invoice.refund,init,date:0 msgid "Operation date" -msgstr "" +msgstr "Ашиглалтын огноо" #. module: account #: field:account.invoice,invoice_line:0 msgid "Invoice Lines" -msgstr "" +msgstr "Нэхэмжлэлийн мөр" #. module: account #: field:account.period,date_start:0 @@ -5020,7 +5020,7 @@ msgstr "Шинэ гүйлгээний нэр" #. module: account #: wizard_button:account_use_models,init_form,create:0 msgid "Create Entries" -msgstr "" +msgstr "Бичилт үүсгэх" #. module: account #: field:account.tax,ref_tax_code_id:0 @@ -5031,7 +5031,7 @@ msgstr "Буцаалтын татварын ангилал" #. module: account #: field:account.invoice.tax,name:0 msgid "Tax Description" -msgstr "" +msgstr "Татварын тайлбар" #. module: account #: help:account.invoice,move_id:0 @@ -5041,7 +5041,7 @@ msgstr "" #. module: account #: wizard_field:account.automatic.reconcile,reconcile,reconciled:0 msgid "Reconciled transactions" -msgstr "" +msgstr "Тулгагдсан гүйлгээнүүд" #. module: account #: model:ir.ui.menu,name:account.menu_finance_reporting @@ -5052,7 +5052,7 @@ msgstr "Тайлан" #: rml:account.third_party_ledger:0 #: rml:account.third_party_ledger_other:0 msgid "/" -msgstr "" +msgstr "/" #. module: account #: model:process.node,note:account.process_node_invoiceinvoice0 @@ -5063,12 +5063,12 @@ msgstr "" #. module: account #: rml:account.analytic.account.analytic.check:0 msgid "Analytic Check -" -msgstr "" +msgstr "Аналитик шалгалт-" #. module: account #: rml:account.account.balance:0 msgid "Account Balance -" -msgstr "" +msgstr "Дансны тэнцэл-" #. module: account #: field:account.journal,group_invoice_lines:0 @@ -5084,7 +5084,7 @@ msgstr "Тохиргоо" #: view:account.analytic.line:0 #: view:account.invoice:0 msgid "Total amount" -msgstr "" +msgstr "Нийт хэмжээ" #. module: account #: view:account.journal:0 @@ -5111,7 +5111,7 @@ msgstr "Уг дансны гүйлгээг хөрвүүлж хадгалах в #: wizard_button:populate_statement_from_inv,go,end:0 #: wizard_button:populate_statement_from_inv,init,end:0 msgid "_Cancel" -msgstr "" +msgstr "Цуцлах" #. module: account #: wizard_view:account.general.ledger.report,checktype:0 @@ -5129,7 +5129,7 @@ msgstr "Тонгоруулсан аналитик баланс-" #: model:process.node,name:account.process_node_paidinvoice0 #: model:process.node,name:account.process_node_supplierpaidinvoice0 msgid "Paid invoice" -msgstr "" +msgstr "Нэхэмжлэл төлөх" #. module: account #: view:account.tax:0 @@ -5147,7 +5147,7 @@ msgstr "Татварын групп" #: model:ir.actions.act_window,name:account.action_invoice_tree3_new #: model:ir.ui.menu,name:account.menu_action_invoice_tree3_new msgid "New Customer Refund" -msgstr "Шинэ худалдан авагчийн буцаалт" +msgstr "Шинэ Үйлчлүүлэгчийн буцаалт" #. module: account #: help:wizard.multi.charts.accounts,seq_journal:0 @@ -5161,7 +5161,7 @@ msgstr "" #. module: account #: model:ir.actions.wizard,name:account.wizard_populate_statement_from_inv msgid "Import invoices" -msgstr "" +msgstr "Нэхэмжлэл оруулж ирэх" #. module: account #: wizard_view:account.move.line.unreconcile,init:0 @@ -5195,7 +5195,7 @@ msgstr "Дансны өгөгдөл" #. module: account #: view:account.tax.code.template:0 msgid "Account Tax Code Template" -msgstr "" +msgstr "Дансны татварын кодны загвар" #. module: account #: view:account.subscription:0 @@ -5205,7 +5205,7 @@ msgstr "" #. module: account #: model:process.node,name:account.process_node_manually0 msgid "Manually" -msgstr "" +msgstr "Гараар" #. module: account #: view:account.invoice:0 @@ -5235,22 +5235,22 @@ msgstr "Нэхэмжлэлийн гүйлгээ" #. module: account #: wizard_field:account.invoice.pay,addendum,writeoff_journal_id:0 msgid "Write-Off journal" -msgstr "" +msgstr "Журналаас хасалт хийх" #. module: account #: wizard_button:account.invoice.pay,init,writeoff_check:0 msgid "Full Payment" -msgstr "" +msgstr "Бүтэн төлөлт" #. module: account #: selection:account.move,type:0 msgid "Journal Purchase" -msgstr "" +msgstr "Худалдан авалтын журнал" #. module: account #: selection:account.move,type:0 msgid "Cash Receipt" -msgstr "" +msgstr "Кассын баримт" #. module: account #: field:account.fiscal.position.tax,tax_dest_id:0 @@ -5295,7 +5295,7 @@ msgstr "" #. module: account #: wizard_view:account_use_models,create:0 msgid "Use Model" -msgstr "" +msgstr "Модел ашиглах" #. module: account #: wizard_button:account.wizard_paid_open,init,end:0 @@ -5305,7 +5305,7 @@ msgstr "Үгүй" #. module: account #: model:ir.actions.act_window,name:account.act_account_partner_account_move msgid "All account entries" -msgstr "" +msgstr "Бүх дансны бичилт" #. module: account #: help:account.invoice.tax,tax_code_id:0 @@ -5323,7 +5323,7 @@ msgstr "Огноо шүүлт" #. module: account #: wizard_view:populate_statement_from_inv,init:0 msgid "Choose Journal and Payment Date" -msgstr "" +msgstr "Журнал болон төлөлтийн огноо сонгох" #. module: account #: selection:account.analytic.account,state:0 @@ -5347,7 +5347,7 @@ msgstr "Төлсөн" #: model:ir.actions.act_window,name:account.action_invoice_tree11 #: model:ir.ui.menu,name:account.menu_action_invoice_tree11 msgid "Unpaid Customer Refunds" -msgstr "Худалдан авагчийн төлөгдөөгүй буцаалтууд" +msgstr "Үйлчлүүлэгчийн төлөгдөөгүй буцаалтууд" #. module: account #: help:account.invoice,residual:0 @@ -5357,13 +5357,13 @@ msgstr "" #. module: account #: wizard_view:account.period.close,init:0 msgid "Are you sure ?" -msgstr "" +msgstr "Та итгэлтэй байна уу?" #. module: account #: rml:account.invoice:0 #: view:account.invoice:0 msgid "PRO-FORMA" -msgstr "" +msgstr "PRO-FORMA" #. module: account #: field:account.move.reconcile,line_partial_ids:0 @@ -5378,7 +5378,7 @@ msgstr "Банкны гүйлгээ тулгалтанд хэрэглэгдэх #. module: account #: view:account.fiscalyear:0 msgid "Fiscalyear" -msgstr "" +msgstr "Санхүүгийн жил" #. module: account #: wizard_button:account.analytic.line,init,open:0 @@ -5389,12 +5389,12 @@ msgstr "" #: selection:account.analytic.account,type:0 #: selection:account.move.line,centralisation:0 msgid "Normal" -msgstr "" +msgstr "Хэвийн" #. module: account #: model:process.process,name:account.process_process_supplierinvoiceprocess0 msgid "Supplier Invoice Process" -msgstr "" +msgstr "Нийлүүлэгч нэхэмжлэх процесс" #. module: account #: rml:account.account.balance:0 @@ -5408,7 +5408,7 @@ msgstr "" #: rml:account.third_party_ledger_other:0 #: rml:account.vat.declaration:0 msgid "Page" -msgstr "" +msgstr "Хуудас" #. module: account #: view:account.move:0 @@ -5420,7 +5420,7 @@ msgstr "Туслах мэдээлэл" #: model:ir.actions.act_window,name:account.action_payment_term_form #: model:ir.ui.menu,name:account.menu_action_payment_term_form msgid "Payment Terms" -msgstr "" +msgstr "Төлөлтийн нөхцөл" #. module: account #: selection:account.aged.trial.balance,init,result_selection:0 @@ -5431,12 +5431,12 @@ msgstr "" #: rml:account.account.balance:0 #: rml:account.general.journal:0 msgid ":" -msgstr "" +msgstr ":" #. module: account #: field:account.bank.statement.line,reconcile_amount:0 msgid "Amount reconciled" -msgstr "" +msgstr "Тулгагдсан хэмжээ" #. module: account #: selection:account.account,currency_mode:0 @@ -5474,7 +5474,7 @@ msgstr "Татварын хэрэглээ" #: model:ir.actions.act_window,name:account.action_subscription_form #: model:ir.ui.menu,name:account.menu_action_subscription_form msgid "Subscription Entries" -msgstr "" +msgstr "Баримтын бичилт" #. module: account #: model:ir.actions.act_window,name:account.action_invoice_tree6 @@ -5502,7 +5502,7 @@ msgstr "Мөчлөгийн төгсгөл" #: view:account.move:0 #: model:ir.model,name:account.model_account_move msgid "Account Entry" -msgstr "" +msgstr "Дансны бичилт" #. module: account #: rml:account.general.journal:0 @@ -5538,7 +5538,7 @@ msgstr "Буцааж төлөх" #. module: account #: model:ir.model,name:account.model_account_invoice_tax msgid "Invoice Tax" -msgstr "" +msgstr "Татварын нэхэмжлэл" #. module: account #: model:ir.actions.act_window,name:account.action_account_analytic_journal_form @@ -5664,7 +5664,7 @@ msgstr "" #. module: account #: field:account.model.line,date:0 msgid "Current Date" -msgstr "" +msgstr "Одоогийн огноо" #. module: account #: selection:account.move,type:0 @@ -5785,7 +5785,7 @@ msgstr "Мөчлөг нээж хаах" #. module: account #: rml:account.analytic.account.balance:0 msgid "Analytic Balance -" -msgstr "" +msgstr "Аналитик тэнцэл" #. module: account #: wizard_field:account_use_models,init_form,model:0 @@ -5802,7 +5802,7 @@ msgstr "Нэхэмжлэлийн мөр" #. module: account #: selection:account.bank.statement.line,type:0 msgid "Customer" -msgstr "Худалдан авагч" +msgstr "Үйлчлүүлэгчийн" #. module: account #: field:account.subscription,period_type:0 @@ -5812,7 +5812,7 @@ msgstr "Мөчлөгийн төрөл" #. module: account #: view:product.category:0 msgid "Accounting Properties" -msgstr "" +msgstr "Санхүүгийн бүрэлдэхүүн хэсгүүд" #. module: account #: model:ir.model,name:account.model_account_sequence_fiscalyear @@ -5858,7 +5858,7 @@ msgstr "Солих данс" #. module: account #: rml:account.overdue:0 msgid "Maturity" -msgstr "" +msgstr "Хугацаа" #. module: account #: field:account.fiscalyear,name:0 @@ -5894,7 +5894,7 @@ msgstr "Нийлүүлэгчийн буцаалт" #: model:process.transition,note:account.process_transition_entriesreconcile0 #: model:process.transition,note:account.process_transition_supplierentriesreconcile0 msgid "Reconcile Entries." -msgstr "" +msgstr "Бичилт тулгах" #. module: account #: field:account.subscription.line,move_id:0 @@ -5918,7 +5918,7 @@ msgstr "" #. module: account #: model:ir.module.module,shortdesc:account.module_meta_information msgid "Accounting and financial management" -msgstr "" +msgstr "Санхүү эдийн засгийн удирдлага" #. module: account #: view:account.fiscal.position.template:0 @@ -6060,7 +6060,7 @@ msgstr "Ноорог нэхэмжлэл" #: model:ir.actions.act_window,name:account.open_board_account #: model:ir.ui.menu,name:account.menu_board_account msgid "Accounting Dashboard" -msgstr "" +msgstr "Санхүүгийн хянах самбар" #. module: account #: view:board.board:0 @@ -6097,12 +6097,12 @@ msgstr "Эдийн засгийн үзүүлэлт" #. module: account #: view:board.board:0 msgid "Account Board" -msgstr "" +msgstr "Дансны самбар" #. module: account #: view:board.board:0 msgid "Aged income" -msgstr "" +msgstr "Насжилтын орлого" #. module: account #: wizard_field:account.balance.account.balance.report,init,show_columns:0 @@ -6164,7 +6164,7 @@ msgstr "" #. module: account #: model:ir.actions.wizard,name:account.wizard_account_balance_report msgid "Account balance-Compare Years" -msgstr "" +msgstr "Дансны тэнцлийг жилээр нь харьцуулах" #. module: account #: model:ir.module.module,description:account.module_meta_information @@ -6296,7 +6296,7 @@ msgstr "" #. module: account #: wizard_view:account.balance.account.balance.report,init:0 msgid "Customize Report" -msgstr "" +msgstr "Хувийн тайлан" #. module: account #: field:report.aged.receivable,name:0 @@ -6352,7 +6352,7 @@ msgstr "Санхүүгийн тайлан-Тайлан" #: model:ir.actions.act_window,name:report_account.action_account_receivable_graph #: model:ir.ui.menu,name:report_account.menu_account_receivable_graph msgid "Balance by Type of Account" -msgstr "" +msgstr "Дансны төрлийн тэнцэл" #. module: account #: field:report.account.receivable,name:0 diff --git a/addons/account/i18n/sr.po b/addons/account/i18n/sr.po index d171553ea85..7efd4a0b1be 100644 --- a/addons/account/i18n/sr.po +++ b/addons/account/i18n/sr.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-10-13 16:24+0000\n" -"Last-Translator: zmmaj \n" +"PO-Revision-Date: 2010-10-14 07:29+0000\n" +"Last-Translator: OpenERP Administrators \n" "Language-Team: Serbian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-10-14 04:45+0000\n" +"X-Launchpad-Export-Date: 2010-10-15 04:42+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/installer.py b/addons/account/installer.py index 60251a673ae..b85b2dc21e2 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -256,7 +256,7 @@ class account_installer(osv.osv_memory): vals_seq = { 'name': _('Bank Journal '), 'code': 'account.journal', - 'prefix': 'BAN/', + 'prefix': 'BNK/%(year)s/', 'padding': 5 } seq_id = obj_sequence.create(cr,uid,vals_seq) @@ -280,17 +280,13 @@ class account_installer(osv.osv_memory): obj_journal.create(cr,uid,vals_journal) for val in record.bank_accounts_id: - seq_prefix = None seq_padding = 5 if val.account_type == 'cash': type = cash_type_id - seq_prefix = "CSH/" elif val.account_type == 'bank': type = bank_type_id - seq_prefix = "BAN/" elif val.account_type == 'check': type = check_type_id - seq_prefix = "CHK/" else: type = check_type_id seq_padding = None @@ -304,9 +300,9 @@ class account_installer(osv.osv_memory): 'company_id': company_id.id } child_bnk_acc = obj_acc.create(cr, uid, vals_bnk) vals_seq_child = { - 'name': _(vals_bnk['name']), + 'name': _(vals_bnk['name'] + ' ' + 'Journal'), 'code': 'account.journal', - 'prefix': seq_prefix, + 'prefix': _((vals_bnk['name'][:3].upper()) + '/%(year)s/'), 'padding': seq_padding } seq_id = obj_sequence.create(cr, uid, vals_seq_child) @@ -314,7 +310,7 @@ class account_installer(osv.osv_memory): #create the bank journal vals_journal = {} vals_journal['name']= vals_bnk['name'] + ' Journal' - vals_journal['code']= _(vals_bnk['name'][:3]) + vals_journal['code']= _(vals_bnk['name'][:3]).upper() vals_journal['sequence_id'] = seq_id vals_journal['type'] = 'cash' if vals.get('currency_id', False): @@ -328,7 +324,6 @@ class account_installer(osv.osv_memory): obj_journal.create(cr,uid,vals_journal) code_cnt += 1 - #reactivate the parent_store functionality on account_account self.pool._init = False self.pool.get('account.account')._parent_store_compute(cr) @@ -352,20 +347,36 @@ class account_installer(osv.osv_memory): seq_sale = { 'name': 'Sale Journal', 'code': 'account.journal', - 'prefix': '%(year)s/', + 'prefix': 'SAJ/%(year)s/', 'padding': 3 } seq_id_sale = obj_sequence.create(cr, uid, seq_sale) seq_purchase = { 'name': 'Purchase Journal', 'code': 'account.journal', - 'prefix': '%(year)s/', + 'prefix': 'EXJ/%(year)s/', 'padding': 3 } seq_id_purchase = obj_sequence.create(cr, uid, seq_purchase) + seq_refund_sale = { + 'name': 'Sales Refund Journal', + 'code': 'account.journal', + 'prefix': 'SCNJ/%(year)s/', + 'padding': 3 + } + seq_id_sale_refund = obj_sequence.create(cr, uid, seq_refund_sale) + seq_refund_purchase = { + 'name': 'Purchase Refund Journal', + 'code': 'account.journal', + 'prefix': 'ECNJ/%(year)s/', + 'padding': 3 + } + seq_id_purchase_refund = obj_sequence.create(cr, uid, seq_refund_purchase) else: seq_id_sale = seq_id seq_id_purchase = seq_id + seq_id_sale_refund = seq_id + seq_id_purchase_refund = seq_id vals_journal['view_id'] = view_id @@ -408,9 +419,6 @@ class account_installer(osv.osv_memory): data = mod_obj.browse(cr, uid, data_id[0]) view_id = data.res_id - seq_id_sale_refund = seq_id_sale - seq_id_purchase_refund = seq_id_purchase - vals_journal['view_id'] = view_id #Sales Refund Journal diff --git a/addons/account/project/project.py b/addons/account/project/project.py index f082672310e..5a58eca97a4 100644 --- a/addons/account/project/project.py +++ b/addons/account/project/project.py @@ -28,11 +28,11 @@ from osv import osv class account_analytic_journal(osv.osv): _name = 'account.analytic.journal' _columns = { - 'name' : fields.char('Journal Name', size=64, required=True), - 'code' : fields.char('Journal Code', size=8), - 'active' : fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the analytic journal without removing it."), + 'name': fields.char('Journal Name', size=64, required=True), + 'code': fields.char('Journal Code', size=8), + 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the analytic journal without removing it."), 'type': fields.selection([('sale','Sale'), ('purchase','Purchase'), ('cash','Cash'), ('general','General'), ('situation','Situation')], 'Type', size=32, required=True, help="Gives the type of the analytic journal. When it needs for a document (eg: an invoice) to create analytic entries, OpenERP will look for a matching journal of the same type."), - 'line_ids' : fields.one2many('account.analytic.line', 'journal_id', 'Lines'), + 'line_ids': fields.one2many('account.analytic.line', 'journal_id', 'Lines'), 'company_id': fields.many2one('res.company', 'Company', required=True), } _defaults = { diff --git a/addons/account/project/project_view.xml b/addons/account/project/project_view.xml index 809f69673fe..6795ae6a0f8 100644 --- a/addons/account/project/project_view.xml +++ b/addons/account/project/project_view.xml @@ -14,6 +14,8 @@ + + diff --git a/addons/account/project/wizard/account_analytic_cost_ledger_for_journal_report_view.xml b/addons/account/project/wizard/account_analytic_cost_ledger_for_journal_report_view.xml index 82796a75b4f..3bf5d54e8a6 100644 --- a/addons/account/project/wizard/account_analytic_cost_ledger_for_journal_report_view.xml +++ b/addons/account/project/wizard/account_analytic_cost_ledger_for_journal_report_view.xml @@ -8,18 +8,16 @@ form - - - - - - - - -