From c21ea1fd86ca3ca7da66d7de195c1770646d2322 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Thu, 1 Jul 2010 08:29:31 +0200 Subject: [PATCH 01/14] fi bzr revid: fp@tinyerp.com-20100701062931-1rj74kisseczbgcx --- addons/project/project_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index ad28bda6d6a..1d5ade40e69 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -431,7 +431,7 @@ - + From 05a6df943a3a95d37c433ad60858cdd1e51366e6 Mon Sep 17 00:00:00 2001 From: Launchpad Code Hosting Date: Sat, 3 Jul 2010 04:48:05 +0100 Subject: [PATCH 02/14] Launchpad automatic translations update. bzr revid: codehost@crowberry-20100703034805-zrew32ynm9z5p9dq --- addons/account/i18n/zh_CN.po | 263 ++++++++------- addons/multi_company/i18n/sl.po | 33 +- addons/product_visible_discount/i18n/sl.po | 47 +++ addons/sale_margin/i18n/sl.po | 370 +++++++++++++++++++++ 4 files changed, 570 insertions(+), 143 deletions(-) create mode 100644 addons/product_visible_discount/i18n/sl.po create mode 100644 addons/sale_margin/i18n/sl.po diff --git a/addons/account/i18n/zh_CN.po b/addons/account/i18n/zh_CN.po index 061747e8fcb..87c11dff871 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 5.0.6\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-07-02 03:32+0000\n" +"PO-Revision-Date: 2010-07-03 03:39+0000\n" "Last-Translator: Black Jack \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-07-02 03:32+0000\n" +"X-Launchpad-Export-Date: 2010-07-03 03:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account @@ -277,8 +277,8 @@ msgid "" "date empty, it means direct payment. The payment term may compute several " "due dates, for example 50% now, 50% in one month." msgstr "" -"如果你使用付款条件,到期日期将在自动生成会计分录. 如果付款条件和到期日期为空,则意味着直接付款. " -"付款条件可以计算出几个到期日,例如现在先付50%,然后在一个月内支付余下的50%." +"如果你使用付款条款, 到期将自动生成会计分录. 如果付款条款和到期日期为空, 则意味着直接付款. 付款条款可以计算出几个到期日, 例如现在先付50%, " +"然后在一个月内支付余下的50%." #. module: account #: selection:account.tax,type:0 @@ -322,7 +322,7 @@ msgstr "参考" #. module: account #: wizard_view:account.subscription.generate,init:0 msgid "Subscription Compute" -msgstr "周期计算" +msgstr "周期性分录计算" #. module: account #: rml:account.central.journal:0 @@ -352,13 +352,13 @@ msgstr "借方交易" #: field:account.move.line,analytic_account_id:0 #: field:report.hr.timesheet.invoice.journal,account_id:0 msgid "Analytic Account" -msgstr "辅助核算科目" +msgstr "辅助核算项" #. module: account #: field:account.tax,child_depend:0 #: field:account.tax.template,child_depend:0 msgid "Tax on Children" -msgstr "子税" +msgstr "基于子税" #. module: account #: rml:account.central.journal:0 @@ -375,7 +375,7 @@ msgstr "发票说明" #. module: account #: constraint:account.analytic.account:0 msgid "Error! You can not create recursive analytic accounts." -msgstr "错误! 你不能创建递归的辅助核算科目" +msgstr "错误! 你不能创建递归的辅助核算项" #. module: account #: field:account.bank.statement.reconcile,total_entry:0 @@ -487,7 +487,7 @@ msgstr "税用在" msgid "" "Set if the amount of tax must be included in the base amount before " "computing the next taxes." -msgstr "在下一个税额计算前,如果本税额必须包含在税基里,请设置" +msgstr "如果这税额必须包含在计算下一个税的基础金额里, 请设置" #. module: account #: model:ir.ui.menu,name:account.menu_finance_periodical_processing @@ -540,7 +540,7 @@ msgstr "递延方法" #. module: account #: field:account.tax.template,include_base_amount:0 msgid "Include in Base Amount" -msgstr "基础金额已包含" +msgstr "包含在基础金额里" #. module: account #: field:account.tax,ref_base_code_id:0 @@ -602,7 +602,7 @@ msgstr "分录控制" msgid "" "The sequence field is used to order the resources from lower sequences to " "higher ones" -msgstr "这序列字段使用从高到低排序" +msgstr "这序列字段使用从低到高排序" #. module: account #: wizard_view:account.analytic.account.chart,init:0 @@ -624,7 +624,7 @@ msgstr "联系" #: selection:account.model.line,date:0 #: selection:account.model.line,date_maturity:0 msgid "Partner Payment Term" -msgstr "业务伙伴付款条件" +msgstr "业务伙伴付款条款" #. module: account #: view:account.move.reconcile:0 @@ -655,7 +655,7 @@ msgstr "如果这会计年度属于几个公司留空" #. module: account #: model:ir.ui.menu,name:account.menu_analytic_accounting msgid "Analytic Accounting" -msgstr "管理会计" +msgstr "辅助核算会计" #. module: account #: rml:account.overdue:0 @@ -758,7 +758,7 @@ msgstr "部分支付" #. module: account #: wizard_view:account_use_models,create:0 msgid "Move Lines Created." -msgstr "创建凭证明细" +msgstr "创建的凭证明细" #. module: account #: field:account.fiscalyear,state:0 @@ -840,7 +840,7 @@ msgstr "科目模板" #: model:ir.model,name:account.model_account_analytic_account #: model:ir.ui.menu,name:account.account_analytic_def_account msgid "Analytic Accounts" -msgstr "辅助核算科目" +msgstr "辅助核算项" #. module: account #: wizard_view:account.print.journal.report,init:0 @@ -1075,7 +1075,7 @@ msgstr "原始凭证编号" msgid "" "The sequence field is used to order the payment term lines from the lowest " "sequences to the higher ones" -msgstr "这序列字段用于付款条款行的排序从低到高." +msgstr "这序列字段用于付款条款的从低到高排序." #. module: account #: field:account.bank.statement.reconcile,total_new:0 @@ -1110,7 +1110,7 @@ msgstr "收入类科目" #: model:ir.actions.act_window,name:account.analytic_account_form #: model:ir.ui.menu,name:account.account_analytic_form msgid "New Analytic Account" -msgstr "新辅助核算科目" +msgstr "新辅助核算项" #. module: account #: model:ir.actions.act_window,name:account.action_account_fiscal_position_template_form @@ -1220,7 +1220,7 @@ msgstr "财务结构模板科目一览" #. module: account #: field:account.analytic.account,parent_id:0 msgid "Parent Analytic Account" -msgstr "上级辅助核算科目" +msgstr "上级辅助核算项" #. module: account #: wizard_button:account.move.line.reconcile,init_partial,addendum:0 @@ -1481,7 +1481,7 @@ msgstr "向导.公司.设置" #. module: account #: model:ir.actions.act_window,name:account.action_account_analytic_account_line_extended_form msgid "account.analytic.line.extended" -msgstr "科目.辅助核算.明细.延伸" +msgstr "项.辅助核算.明细.延伸" #. module: account #: field:account.journal,refund_journal:0 @@ -1598,7 +1598,7 @@ msgstr "应收款与应付款科目" #: view:account.subscription:0 #: field:account.subscription,lines_id:0 msgid "Subscription Lines" -msgstr "周期明细" +msgstr "周期性分录明细" #. module: account #: selection:account.analytic.journal,type:0 @@ -1712,7 +1712,7 @@ msgstr "你确定创建分录?" #. module: account #: field:account.tax,include_base_amount:0 msgid "Include in base amount" -msgstr "含基本金额" +msgstr "包含在基本金额里" #. module: account #: rml:account.analytic.account.analytic.check:0 @@ -1903,7 +1903,7 @@ msgstr "客户发票草稿" #. module: account #: model:ir.model,name:account.model_account_subscription_line msgid "Account Subscription Line" -msgstr "科目周期明细" +msgstr "周期性分录明细的科目" #. module: account #: selection:account.account.balance.report,checktype,state:0 @@ -2488,7 +2488,7 @@ msgstr "横向模式" #: model:process.transition,note:account.process_transition_analyticinvoice0 #: model:process.transition,note:account.process_transition_supplieranalyticcost0 msgid "From analytic accounts, Create invoice." -msgstr "从辅助核目科目创建发票" +msgstr "从辅助核算项创建发票" #. module: account #: wizard_button:account.account.balance.report,account_selection,end:0 @@ -2728,7 +2728,7 @@ msgstr "未完税" #: model:ir.actions.report.xml,name:account.account_analytic_account_inverted_balance #: model:ir.actions.wizard,name:account.account_analytic_account_inverted_balance_report msgid "Inverted Analytic Balance" -msgstr "反向核算余额" +msgstr "反向辅助核算余额" #. module: account #: field:account.tax,applicable_type:0 @@ -2852,7 +2852,7 @@ msgstr "最好的祝愿" #. module: account #: model:ir.model,name:account.model_report_hr_timesheet_invoice_journal msgid "Analytic account costs and revenues" -msgstr "成本和收入辅助核算项" +msgstr "辅助核算项成本和收入" #. module: account #: wizard_view:account.invoice.refund,init:0 @@ -3003,7 +3003,7 @@ msgid "" "The maturity date of the generated entries for this model. You can chosse " "between the date of the creation action or the the date of the creation of " "the entries plus the partner payment terms." -msgstr "这月产生分录的应付款日期. 你能在创建日期到创建这分录加上业务伙伴付款条件里限期天数之间的选择一天." +msgstr "这模型在到期日产生分录. 你能从创建日期到到付款期限间选择." #. module: account #: selection:account.analytic.journal,type:0 @@ -3127,7 +3127,7 @@ msgstr "确认" #: view:account.model:0 #: field:account.model,legend:0 msgid "Legend" -msgstr "图表" +msgstr "说明" #. module: account #: model:process.node,note:account.process_node_draftinvoices0 @@ -3201,7 +3201,7 @@ msgstr "税" #. module: account #: wizard_view:account.fiscalyear.close,init:0 msgid "Close Fiscal Year with new entries" -msgstr "关闭会计年度和新分录" +msgstr "用新分录关闭会计年度" #. module: account #: selection:account.account,currency_mode:0 @@ -3308,7 +3308,7 @@ msgstr "凭证" #: field:account.fiscal.position.tax,tax_src_id:0 #: field:account.fiscal.position.tax.template,tax_src_id:0 msgid "Tax Source" -msgstr "税来源" +msgstr "源税" #. module: account #: model:ir.actions.report.xml,name:account.account_analytic_account_balance @@ -3596,7 +3596,7 @@ msgstr "数字 #" msgid "" "This payment term will be used instead of the default one for the current " "partner" -msgstr "当前业务伙伴将替代为这默认的付款条件" +msgstr "当前业务伙伴将替代为这默认的付款条款" #. module: account #: wizard_field:account.invoice.pay,addendum,comment:0 @@ -3676,7 +3676,7 @@ msgstr "如果你想打印总账时打印所有分录, 勾选此项. 否则打 #. module: account #: model:ir.model,name:account.model_account_payment_term_line msgid "Payment Term Line" -msgstr "付款条件明细" +msgstr "付款条款明细" #. module: account #: selection:account.config.wizard,period:0 @@ -3858,7 +3858,7 @@ msgstr "手动报表" #: model:ir.actions.act_window,name:account.action_account_journal_form #: model:ir.ui.menu,name:account.menu_action_account_journal_form msgid "Financial Journals" -msgstr "帐簿" +msgstr "财务分录集合" #. module: account #: selection:account.account.balance.report,checktype,state:0 @@ -3894,7 +3894,7 @@ msgid "" "Gives the type of the analytic journal. When a document (eg: an invoice) " "needs to create analytic entries, Open ERP will look for a matching journal " "of the same type." -msgstr "给出这辅助核算分录集的类型. 当单据(如发票)需要创建辅助核算分录. 系统将寻找匹配同一类型的分录集合." +msgstr "给出这辅助核算分录集的类型. 当单据(如发票)需要创建辅助核算分录. 系统将寻找同一类型匹配的分录集合." #. module: account #: field:account.journal,groups_id:0 @@ -3988,7 +3988,7 @@ msgstr "贷方" msgid "" "Indicate if the tax computation is based on the value computed for the " "computation of child taxes or based on the total amount." -msgstr "如果税计算是基于计算下级税或基于总金额, 显示" +msgstr "如果税计算是基于计算子税或基于总金额, 显示" #. module: account #: field:account.tax,account_paid_id:0 @@ -4563,7 +4563,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 @@ -4622,7 +4622,7 @@ msgstr "运行中" msgid "" "Indicate if the amount of tax must be included in the base amount for the " "computation of the next taxes" -msgstr "表明如果税款必须被包含在计算下一个税的基础金额" +msgstr "表明如果税额必须包含在计算下一个税的基础金额里" #. module: account #: model:process.node,name:account.process_node_draftstatement0 @@ -5323,7 +5323,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 @@ -5375,7 +5375,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 @@ -5397,19 +5397,19 @@ msgstr "会计期间数" #: wizard_field:account.analytic.account.quantity_cost_ledger.report,init,date2:0 #: wizard_field:account.automatic.reconcile,init,date2:0 msgid "End of period" -msgstr "期末日期" +msgstr "结束会计期间" #. module: account #: view:account.move:0 #: model:ir.model,name:account.model_account_move msgid "Account Entry" -msgstr "凭证" +msgstr "分录" #. module: account #: rml:account.general.journal:0 #: model:ir.actions.report.xml,name:account.account_general_journal msgid "General Journal" -msgstr "普通分类帐" +msgstr "一般分录集合" #. module: account #: field:account.account,balance:0 @@ -5445,7 +5445,7 @@ msgstr "发票税" #: model:ir.actions.act_window,name:account.action_account_analytic_journal_form #: model:ir.ui.menu,name:account.account_def_analytic_journal msgid "Analytic Journal Definition" -msgstr "定义辅助核算分类帐" +msgstr "定义辅助核算分录集合" #. module: account #: model:ir.model,name:account.model_account_tax_template @@ -5455,7 +5455,7 @@ msgstr "科目.税.模板" #. module: account #: field:wizard.multi.charts.accounts,bank_accounts_id:0 msgid "Bank Accounts" -msgstr "银行账号" +msgstr "银行帐号" #. module: account #: constraint:account.period:0 @@ -5467,7 +5467,7 @@ msgstr "无效会计期间!一些会计期间重复或者会计期间不在这 #. module: account #: help:account.journal,invoice_sequence_id:0 msgid "The sequence used for invoice numbers in this journal." -msgstr "这序列用于这分类帐发票号" +msgstr "这序列用于这分录集合的发票号" #. module: account #: view:account.account:0 @@ -5484,12 +5484,12 @@ msgid "" "This field allow you to choose the accounting journals you want for " "filtering the invoices. If you left this field empty, it will search on all " "sale, purchase and cash journals." -msgstr "这字段允许你选择会计分类帐要过滤的发票.如果你设为空将搜索所有销售采购和现金分类帐" +msgstr "这字段允许你选择要过滤的发票的会计分录集合. 如果为空将搜索所有销售, 采购和现金分录集合." #. module: account #: constraint:account.fiscalyear:0 msgid "Error ! The duration of the Fiscal Year is invalid. " -msgstr "错误!会计年度无效 " +msgstr "错误!会计年度的期限无效 " #. module: account #: selection:account.analytic.account,state:0 @@ -5499,7 +5499,7 @@ msgstr "关闭" #. module: account #: field:account.bank.statement.line,move_ids:0 msgid "Moves" -msgstr "凭证编号" +msgstr "凭证" #. module: account #: selection:account.invoice,state:0 @@ -5532,7 +5532,7 @@ msgstr "成本分类账(只有数量)" #. module: account #: wizard_view:account.move.validate,init:0 msgid "Validate Account Entries" -msgstr "审核凭证" +msgstr "确认" #. module: account #: selection:account.print.journal.report,init,sort_selection:0 @@ -5553,7 +5553,7 @@ msgstr "到" #. module: account #: model:ir.actions.act_window,name:account.action_account_analytic_journal_open_form msgid "Entries of Open Analytic Journals" -msgstr "待处理辅助核算分类帐" +msgstr "打开的辅助核算分录集合分录" #. module: account #: view:account.invoice.tax:0 @@ -5568,7 +5568,7 @@ msgstr "当前日期" #. module: account #: selection:account.move,type:0 msgid "Journal Sale" -msgstr "销售分类帐" +msgstr "销售分录集合" #. module: account #: wizard_field:account.fiscalyear.close,init,fy_id:0 @@ -5624,7 +5624,7 @@ msgstr "说明" msgid "" "This account will be used instead of the default one to value incoming stock " "for the current product" -msgstr "这科目将用于当前产品的默认销售收入科目" +msgstr "这科目将替换当前产品的默认进仓" #. module: account #: field:account.tax,child_ids:0 @@ -5639,12 +5639,12 @@ msgstr "上级右" #. module: account #: model:ir.ui.menu,name:account.account_account_menu msgid "Financial Accounts" -msgstr "会计科目" +msgstr "财务科目" #. module: account #: model:ir.model,name:account.model_account_chart_template msgid "Templates for Account Chart" -msgstr "科目表" +msgstr "科目表模板" #. module: account #: view:account.config.wizard:0 @@ -5656,7 +5656,7 @@ msgstr "科目设置" msgid "" "This account will be used instead of the default one as the payable account " "for the current partner" -msgstr "这科目将用于当前业务伙伴的默认应付科目" +msgstr "这科目将替换当前业务伙伴的默认支付科目" #. module: account #: field:account.tax.code,code:0 @@ -5683,7 +5683,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 @@ -5715,12 +5715,12 @@ msgstr "会计属性" #. module: account #: model:ir.model,name:account.model_account_sequence_fiscalyear msgid "account.sequence.fiscalyear" -msgstr "科目.序号.会计年度" +msgstr "科目.序列.会计年度" #. module: account #: wizard_field:account.print.journal.report,init,sort_selection:0 msgid "Entries Sorted By" -msgstr "凭证排序按" +msgstr "分录排序按" #. module: account #: rml:account.journal.period.print:0 @@ -5732,13 +5732,13 @@ msgstr "打印分类帐 -" #: field:account.chart.template,bank_account_view_id:0 #: field:account.invoice,partner_bank:0 msgid "Bank Account" -msgstr "银行账号" +msgstr "银行帐号" #. module: account #: model:ir.actions.act_window,name:account.action_model_form #: model:ir.ui.menu,name:account.menu_action_model_form msgid "Models Definition" -msgstr "模型定义" +msgstr "分录模型定义" #. module: account #: model:account.account.type,name:account.account_type_cash_moves @@ -5756,7 +5756,7 @@ msgstr "目标科目" #. module: account #: rml:account.overdue:0 msgid "Maturity" -msgstr "到期" +msgstr "到期日期" #. module: account #: field:account.fiscalyear,name:0 @@ -5792,12 +5792,12 @@ 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 msgid "Entry" -msgstr "凭证" +msgstr "分录" #. module: account #: model:process.node,note:account.process_node_paidinvoice0 @@ -5805,7 +5805,7 @@ msgstr "凭证" #: model:process.transition,note:account.process_transition_reconcilepaid0 #: model:process.transition,note:account.process_transition_supplierreconcilepaid0 msgid "Paid invoice when reconciled." -msgstr "支付发票时对账" +msgstr "对账时支付发票" #. module: account #: field:account.tax,python_compute_inv:0 @@ -5828,7 +5828,7 @@ msgstr "科目一览" msgid "" "This account will be used to value outgoing stock for the current product " "category" -msgstr "这科目将用于当前产品分类的采购科目" +msgstr "这科目将替换当前产品分类的默认出仓" #. module: account #: help:account.tax,base_sign:0 @@ -5850,7 +5850,7 @@ msgstr "银行详情" #. module: account #: field:account.chart.template,property_account_expense:0 msgid "Expense Account on Product Template" -msgstr "产品采购科目模板" +msgstr "产品模板的费用科目" #. module: account #: rml:account.analytic.account.analytic.check:0 @@ -5860,7 +5860,7 @@ msgstr "一般借方" #. module: account #: field:account.analytic.account,code:0 msgid "Account Code" -msgstr "辅助核算代码" +msgstr "辅助核算项代码" #. module: account #: help:account.config.wizard,name:0 @@ -5876,7 +5876,7 @@ msgstr "屏幕上显示的会计年度名称" #: model:ir.model,name:account.model_account_payment_term #: field:res.partner,property_payment_term:0 msgid "Payment Term" -msgstr "付款条件" +msgstr "付款条款" #. module: account #: model:ir.actions.act_window,name:account.action_account_fiscal_position_form @@ -5906,7 +5906,7 @@ msgstr "勾选此项" msgid "" "Check this if the price you use on the product and invoices includes this " "tax." -msgstr "在产品和发票中使用含税价" +msgstr "如果产品和发票你使用含税价. 勾选" #. module: account #: field:account.journal.column,name:0 @@ -5930,7 +5930,7 @@ msgstr "是" #: help:account.account,reconcile:0 msgid "" "Check this if the user is allowed to reconcile entries in this account." -msgstr "用户允许在这科目对账凭证" +msgstr "如果用户可以在这科目去对账分录. 勾选" #. module: account #: wizard_button:account.subscription.generate,init,generate:0 @@ -5940,122 +5940,122 @@ msgstr "计算日期" #. module: account #: view:board.board:0 msgid "Analytic accounts to close" -msgstr "" +msgstr "关闭辅助核算项" #. module: account #: view:board.board:0 msgid "Draft invoices" -msgstr "" +msgstr "发票草稿" #. module: account #: 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 #: model:ir.actions.act_window,name:account.act_my_account msgid "Accounts to invoice" -msgstr "" +msgstr "科目开发票" #. module: account #: view:board.board:0 #: model:ir.actions.act_window,name:account.action_account_analytic_line_to_invoice msgid "Costs to invoice" -msgstr "" +msgstr "成本开发票" #. module: account #: view:board.board:0 msgid "Aged receivables" -msgstr "" +msgstr "以前应收款" #. module: account #: model:ir.module.module,shortdesc:account.module_meta_information msgid "Board for accountant" -msgstr "" +msgstr "会计面板" #. module: account #: model:ir.actions.act_window,name:account.action_aged_income msgid "Income Accounts" -msgstr "" +msgstr "收入科目" #. module: account #: view:board.board:0 msgid "My indicators" -msgstr "" +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 msgid "Show Debit/Credit Information" -msgstr "" +msgstr "显示借方/贷方信息" #. module: account #: selection:account.balance.account.balance.report,init,account_choice:0 msgid "All accounts" -msgstr "" +msgstr "所有科目" #. module: account #: wizard_field:account.balance.account.balance.report,init,period_manner:0 msgid "Entries Selection Based on" -msgstr "" +msgstr "分录选择基于" #. module: account #: wizard_view:account.balance.account.balance.report,backtoinit:0 #: wizard_view:account.balance.account.balance.report,zero_years:0 msgid "Notification" -msgstr "" +msgstr "通知" #. module: account #: selection:account.balance.account.balance.report,init,period_manner:0 msgid "Financial Period" -msgstr "" +msgstr "财务会计期间" #. module: account #: model:ir.actions.report.xml,name:account.account_account_balance #: model:ir.actions.report.xml,name:account.account_account_balance_landscape msgid "Account balance" -msgstr "" +msgstr "科目余额" #. module: account #: wizard_view:account.balance.account.balance.report,init:0 msgid "Select Period(s)" -msgstr "" +msgstr "选择会计期间" #. module: account #: selection:account.balance.account.balance.report,init,compare_pattern:0 msgid "Percentage" -msgstr "" +msgstr "百分比" #. module: account #: wizard_field:account.balance.account.balance.report,init,compare_pattern:0 msgid "Compare Selected Years In Terms Of" -msgstr "" +msgstr "比较选择的会计年度" #. module: account #: wizard_view:account.balance.account.balance.report,init:0 msgid "Select Fiscal Year(s)(Maximum Three Years)" -msgstr "" +msgstr "选择会计年度(最大值为三年)" #. module: account #: wizard_field:account.balance.account.balance.report,init,select_account:0 msgid "Select Reference Account(for % comparision)" -msgstr "" +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 @@ -6078,98 +6078,107 @@ msgid "" " 5. You have an option to print the desired report in Landscape format.\n" " " msgstr "" +"科目结余模块是一附加的财务管理模块\n" +" \n" +"\t该模块为你提供各种可选择打印的资产负债表\n" +"\t1.你能比较资产负债表的不同年份.\n" +"\t2.你能设置两年的现金或百分比比较\n" +"\t3.你能设置特别年份的参考科目的百分比比较\n" +"\t4.你能选择会计期间的实际日期或在会计期间创建日期\n" +"\t5.你可以选择打印要求的报表\n" +" " #. module: account #: wizard_view:account.balance.account.balance.report,backtoinit:0 msgid "You have to select 'Landscape' option. Please Check it." -msgstr "" +msgstr "请勾选此项你能选择‘规定格式’选项" #. module: account #: wizard_field:account.balance.account.balance.report,init,landscape:0 msgid "Show Report in Landscape Form" -msgstr "" +msgstr "显示固定格式的报表" #. module: account #: rml:account.account.balance.landscape:0 #: rml:account.balance.account.balance:0 msgid "Total :" -msgstr "" +msgstr "合计:" #. module: account #: wizard_field:account.balance.account.balance.report,init,format_perc:0 msgid "Show Comparision in %" -msgstr "" +msgstr "显示对比 %" #. module: account #: wizard_view:account.balance.account.balance.report,init:0 msgid "Select Period" -msgstr "选会计期间" +msgstr "选择会计期间" #. module: account #: wizard_view:account.balance.account.balance.report,init:0 msgid "Report Options" -msgstr "" +msgstr "报表选项" #. module: account #: selection:account.balance.account.balance.report,init,compare_pattern:0 msgid "Don't Compare" -msgstr "" +msgstr "不比较" #. module: account #: wizard_field:account.balance.account.balance.report,init,account_choice:0 msgid "Show Accounts" -msgstr "" +msgstr "显示科目" #. module: account #: wizard_view:account.balance.account.balance.report,backtoinit:0 msgid "1. You have selected more than 3 years in any case." -msgstr "" +msgstr "你必须要选择多于3年." #. module: account #: model:ir.module.module,shortdesc:account.module_meta_information msgid "Accounting and financial management-Compare Accounts" -msgstr "" +msgstr "会计和财务管理-科目比较" #. module: account #: rml:account.account.balance.landscape:0 #: rml:account.balance.account.balance:0 msgid "Year :" -msgstr "" +msgstr "会计年度:" #. module: account #: wizard_view:account.balance.account.balance.report,backtoinit:0 msgid "You can select maximum 3 years. Please check again." -msgstr "" +msgstr "请勾选此项你最多能选择3年" #. module: account #: wizard_view:account.balance.account.balance.report,backtoinit:0 msgid "" "3. You have selected 'Percentage' option with more than 2 years, but you " "have not selected landscape format." -msgstr "" +msgstr "你已经选择‘百分比’选项这要2年以上. 但你没选择规定格式." #. module: account #: wizard_view:account.balance.account.balance.report,backtoinit:0 msgid "" "You might have done following mistakes. Please correct them and try again." -msgstr "" +msgstr "你可能存在以下错误. 请纠正后再试." #. module: account #: help:account.balance.account.balance.report,init,select_account:0 msgid "Keep empty for comparision to its parent" -msgstr "" +msgstr "留空为比较母公司" #. module: account #: selection:account.balance.account.balance.report,init,period_manner:0 msgid "Creation Date" -msgstr "" +msgstr "创建日期" #. module: account #: wizard_view:account.balance.account.balance.report,backtoinit:0 msgid "" "2. You have not selected 'Percentage' option, but you have selected more " "than 2 years." -msgstr "" +msgstr "你选择2年以上, 但未选‘百分比’选项" #. module: account #: wizard_view:account.balance.account.balance.report,zero_years:0 @@ -6177,94 +6186,94 @@ msgid "" "You may have selected the compare options with more than 1 year with " "credit/debit columns and % option.This can lead contents to be printed out " "of the paper.Please try again." -msgstr "" +msgstr "你必须要选择比较选项一年以上的借方/贷方栏和%选项, 这才能产生打印的内容请再试." #. module: account #: wizard_view:account.balance.account.balance.report,zero_years:0 msgid "You have to select at least 1 Fiscal Year. Try again." -msgstr "" +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 msgid "Month Range" -msgstr "" +msgstr "月度" #. module: account #: model:ir.actions.act_window,name:report_account.action_view_created_invoice_dashboard msgid "Invoices Created Within Past 15 Days" -msgstr "" +msgstr "发票建立要在15天前" #. module: account #: model:ir.model,name:report_account.model_report_invoice_created msgid "Report of Invoices Created within Last 15 days" -msgstr "" +msgstr "最近15天创建发票的报表" #. module: account #: view:report.invoice.created:0 msgid "Total Amount" -msgstr "" +msgstr "金额合计" #. module: account #: view:report.account.receivable:0 msgid "Accounts by type" -msgstr "" +msgstr "按类型划分的科目" #. module: account #: model:ir.model,name:report_account.model_report_aged_receivable msgid "Aged Receivable Till Today" -msgstr "" +msgstr "直到今天的应收款" #. module: account #: model:ir.model,name:report_account.model_report_account_receivable msgid "Receivable accounts" -msgstr "" +msgstr "应收款科目" #. module: account #: field:temp.range,name:0 msgid "Range" -msgstr "" +msgstr "范围" #. module: account #: model:ir.module.module,description:report_account.module_meta_information msgid "A module that adds new reports based on the account module." -msgstr "" +msgstr "新的报表模块" #. module: account #: model:ir.module.module,shortdesc:report_account.module_meta_information msgid "Account Reporting - Reporting" -msgstr "" +msgstr "科目报表-报表" #. module: account #: 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 msgid "Week of Year" -msgstr "" +msgstr "会计年度里的周" #. module: account #: field:report.invoice.created,create_date:0 msgid "Create Date" -msgstr "" +msgstr "创建日期" #. module: account #: model:ir.actions.act_window,name:report_account.action_aged_receivable_graph #: view:report.aged.receivable:0 msgid "Aged Receivable" -msgstr "" +msgstr "旧的应收款" #. module: account #: view:report.invoice.created:0 msgid "Untaxed Amount" -msgstr "" +msgstr "未完税金额" #~ msgid " Start date" #~ msgstr " 开始日期" diff --git a/addons/multi_company/i18n/sl.po b/addons/multi_company/i18n/sl.po index 81c947adfee..21e94b67eb1 100644 --- a/addons/multi_company/i18n/sl.po +++ b/addons/multi_company/i18n/sl.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2009-12-08 11:46+0000\n" -"PO-Revision-Date: 2010-01-26 11:01+0000\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2010-07-02 12:11+0000\n" +"Last-Translator: Simon Vidmar \n" "Language-Team: Slovenian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-06-22 04:20+0000\n" +"X-Launchpad-Export-Date: 2010-07-03 03:48+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: multi_company @@ -27,22 +27,23 @@ msgstr "" msgid "" "The Object name must start with x_ and not contain any special character !" msgstr "" +"Naziv objekta se mora začeti z 'x_' in ne sme vsebovati posebnih znakov!" #. module: multi_company #: constraint:product.template:0 msgid "" "Error: The default UOM and the purchase UOM must be in the same category." -msgstr "" +msgstr "Napaka: Privzeta EM in nabavna EM morata biti v isti kategoriji." #. module: multi_company #: constraint:res.partner:0 msgid "The VAT doesn't seem to be correct." -msgstr "" +msgstr "Napaka pri obračunu DDV" #. module: multi_company #: constraint:ir.actions.act_window:0 msgid "Invalid model name in the action definition." -msgstr "" +msgstr "Napačno ime modela v definiciji dejanja." #. module: multi_company #: model:res.company,overdue_msg:multi_company.res_company_odoo @@ -59,18 +60,18 @@ msgstr "" #. module: multi_company #: field:multi_company.default,company_dest_id:0 msgid "Default Company" -msgstr "" +msgstr "Privzeto podjetje" #. module: multi_company #: field:multi_company.default,object_id:0 msgid "Object" -msgstr "" +msgstr "Predmet" #. module: multi_company #: model:ir.module.module,shortdesc:multi_company.module_meta_information #: view:multi_company.default:0 msgid "Multi Company" -msgstr "" +msgstr "Za več podjetij" #. module: multi_company #: model:ir.module.module,description:multi_company.module_meta_information @@ -83,12 +84,12 @@ msgstr "" #. module: multi_company #: field:multi_company.default,company_id:0 msgid "Main Company" -msgstr "" +msgstr "Glavna družba" #. module: multi_company #: view:multi_company.default:0 msgid "Condition" -msgstr "" +msgstr "Pogoj" #. module: multi_company #: help:multi_company.default,company_dest_id:0 @@ -98,17 +99,17 @@ msgstr "" #. module: multi_company #: constraint:ir.ui.view:0 msgid "Invalid XML for View Architecture!" -msgstr "" +msgstr "Neveljaven XML za arhitekturo pogleda!" #. module: multi_company #: field:multi_company.default,name:0 msgid "Name" -msgstr "" +msgstr "Ime" #. module: multi_company #: constraint:product.template:0 msgid "Error: UOS must be in a different category than the UOM" -msgstr "" +msgstr "Napaka: Prodajna EM mora biti v drugi kategoriji, kot je EM" #. module: multi_company #: model:product.category,name:multi_company.Odoo1 @@ -118,7 +119,7 @@ msgstr "" #. module: multi_company #: constraint:res.company:0 msgid "Error! You can not create recursive companies." -msgstr "" +msgstr "Napaka. Ne morete ustvariti rekurzivnih družb." #. module: multi_company #: help:multi_company.default,name:0 @@ -128,7 +129,7 @@ msgstr "" #. module: multi_company #: model:ir.ui.menu,name:multi_company.menu_custom_multicompany msgid "Multi company" -msgstr "" +msgstr "Za več podjetij" #. module: multi_company #: model:ir.model,name:multi_company.model_multi_company_default diff --git a/addons/product_visible_discount/i18n/sl.po b/addons/product_visible_discount/i18n/sl.po new file mode 100644 index 00000000000..6ea1da38a59 --- /dev/null +++ b/addons/product_visible_discount/i18n/sl.po @@ -0,0 +1,47 @@ +# Slovenian translation for openobject-addons +# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2009-03-25 12:11+0000\n" +"PO-Revision-Date: 2010-07-02 12:04+0000\n" +"Last-Translator: Simon Vidmar \n" +"Language-Team: Slovenian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2010-07-03 03:48+0000\n" +"X-Generator: Launchpad (build Unknown)\n" + +#. module: product_visible_discount +#: constraint:ir.ui.view:0 +msgid "Invalid XML for View Architecture!" +msgstr "Neveljaven XML za arhitekturo pogleda!" + +#. module: product_visible_discount +#: model:ir.module.module,description:product_visible_discount.module_name_translation +msgid "" +"\n" +" This module lets you calculate discounts on Sale Order lines and Invoice " +"lines base on the partner's pricelist.\n" +" To this end, a new check box named \"Visible Discount\" is added to the " +"pricelist form.\n" +" Example:\n" +" For the product PC1 and the partner \"Asustek\": if listprice=450, " +"and the price calculated using Asustek's pricelist is 225\n" +" If the check box is checked, we will have on the sale order line: " +"Unit price=450, Discount=50,00, Net price=225\n" +" If the check box is unchecked, we will have on Sale Order and " +"Invoice lines: Unit price=225, Discount=0,00, Net price=225\n" +" " +msgstr "" + +#. module: product_visible_discount +#: model:ir.module.module,shortdesc:product_visible_discount.module_name_translation +#: field:product.pricelist,visible_discount:0 +msgid "Visible Discount" +msgstr "Vidni popust" diff --git a/addons/sale_margin/i18n/sl.po b/addons/sale_margin/i18n/sl.po new file mode 100644 index 00000000000..0b59e7db3f6 --- /dev/null +++ b/addons/sale_margin/i18n/sl.po @@ -0,0 +1,370 @@ +# Slovenian translation for openobject-addons +# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2009-11-25 14:28+0000\n" +"PO-Revision-Date: 2010-07-02 12:17+0000\n" +"Last-Translator: Simon Vidmar \n" +"Language-Team: Slovenian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2010-07-03 03:48+0000\n" +"X-Generator: Launchpad (build Unknown)\n" + +#. module: sale_margin +#: selection:report.account.invoice,type:0 +#: selection:report.account.invoice.category,type:0 +#: selection:report.account.invoice.partner,type:0 +#: selection:report.account.invoice.partner.product,type:0 +#: selection:report.account.invoice.product,type:0 +msgid "Customer Refund" +msgstr "Dobropis kupcu" + +#. module: sale_margin +#: model:ir.model,name:sale_margin.model_report_account_invoice_product +msgid "report.account.invoice.product" +msgstr "" + +#. module: sale_margin +#: constraint:ir.model:0 +msgid "" +"The Object name must start with x_ and not contain any special character !" +msgstr "" +"Naziv objekta se mora začeti z 'x_' in ne sme vsebovati posebnih znakov!" + +#. module: sale_margin +#: model:ir.ui.menu,name:sale_margin.menu_report_account_all_invoice_by_product +#: model:ir.ui.menu,name:sale_margin.menu_report_account_invoice_by_product +msgid "Invoices by Product" +msgstr "Računi po proizvodih" + +#. module: sale_margin +#: selection:report.account.invoice,type:0 +#: selection:report.account.invoice.category,type:0 +#: selection:report.account.invoice.partner,type:0 +#: selection:report.account.invoice.partner.product,type:0 +#: selection:report.account.invoice.product,type:0 +msgid "Customer Invoice" +msgstr "Izdan račun" + +#. module: sale_margin +#: wizard_view:stock.invoice_onshipping,init:0 +msgid "Create invoices" +msgstr "Ustvari račune" + +#. module: sale_margin +#: constraint:ir.ui.view:0 +msgid "Invalid XML for View Architecture!" +msgstr "Neveljaven XML za arhitekturo pogleda!" + +#. module: sale_margin +#: model:ir.model,name:sale_margin.model_report_account_invoice_partner_product +msgid "report.account.invoice.partner.product" +msgstr "" + +#. module: sale_margin +#: selection:report.account.invoice,type:0 +#: selection:report.account.invoice.category,type:0 +#: selection:report.account.invoice.partner,type:0 +#: selection:report.account.invoice.partner.product,type:0 +#: selection:report.account.invoice.product,type:0 +msgid "Supplier Invoice" +msgstr "Račun dobavitelja" + +#. module: sale_margin +#: field:report.account.invoice,state:0 +#: field:report.account.invoice.category,state:0 +#: field:report.account.invoice.partner,state:0 +#: field:report.account.invoice.partner.product,state:0 +#: field:report.account.invoice.product,state:0 +msgid "State" +msgstr "" + +#. module: sale_margin +#: view:stock.picking:0 +msgid "Create Invoice" +msgstr "Ustvari račun" + +#. module: sale_margin +#: selection:report.account.invoice,state:0 +#: selection:report.account.invoice.category,state:0 +#: selection:report.account.invoice.partner,state:0 +#: selection:report.account.invoice.partner.product,state:0 +#: selection:report.account.invoice.product,state:0 +msgid "Draft" +msgstr "Osnutek" + +#. module: sale_margin +#: constraint:ir.actions.act_window:0 +msgid "Invalid model name in the action definition." +msgstr "Napačno ime modela v definiciji dejanja." + +#. module: sale_margin +#: model:ir.ui.menu,name:sale_margin.menu_report_account_all_month_product +msgid "All Months" +msgstr "Vsi meseci" + +#. module: sale_margin +#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_partner_product_tree +#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_partner_product_tree_all +msgid "report.account.invoice.partner.product.tree" +msgstr "" + +#. module: sale_margin +#: field:report.account.invoice,type:0 +#: field:report.account.invoice.category,type:0 +#: field:report.account.invoice.partner,type:0 +#: field:report.account.invoice.partner.product,type:0 +#: field:report.account.invoice.product,type:0 +#: wizard_field:stock.invoice_onshipping,init,type:0 +msgid "Type" +msgstr "Vrsta" + +#. module: sale_margin +#: wizard_field:stock.invoice_onshipping,init,journal_id:0 +msgid "Destination Journal" +msgstr "" + +#. module: sale_margin +#: view:stock.picking:0 +msgid "Supplier Invoices" +msgstr "Računi dobaviteljev" + +#. module: sale_margin +#: field:report.account.invoice.partner.product,product_id:0 +#: field:report.account.invoice.product,product_id:0 +msgid "Product" +msgstr "Proizvod" + +#. module: sale_margin +#: view:report.account.invoice.partner:0 +msgid "Invoices by partner" +msgstr "Računi po partnerjih" + +#. module: sale_margin +#: view:report.account.invoice.category:0 +msgid "Invoices by category" +msgstr "Računi po vrstah" + +#. module: sale_margin +#: selection:report.account.invoice,state:0 +#: selection:report.account.invoice.category,state:0 +#: selection:report.account.invoice.partner,state:0 +#: selection:report.account.invoice.partner.product,state:0 +#: selection:report.account.invoice.product,state:0 +msgid "Paid" +msgstr "Plačano" + +#. module: sale_margin +#: model:ir.actions.wizard,name:sale_margin.wizard_picking_invoice_create +#: wizard_button:stock.invoice_onshipping,init,create_invoice:0 +msgid "Create invoice" +msgstr "Ustvari račun" + +#. module: sale_margin +#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_category_tree +#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_category_tree_all +msgid "report.account.invoice.category.tree" +msgstr "" + +#. module: sale_margin +#: model:ir.ui.menu,name:sale_margin.menu_report_account_all_invoice_by_partner_product +#: model:ir.ui.menu,name:sale_margin.menu_report_account_invoice_by_partner_product +msgid "Invoices by Partner and Product" +msgstr "Računi po partnerjih in proizvodih" + +#. module: sale_margin +#: model:ir.model,name:sale_margin.model_report_account_invoice_category +msgid "report.account.invoice.category" +msgstr "" + +#. module: sale_margin +#: model:ir.ui.menu,name:sale_margin.menu_report_account_this_month_product +msgid "This Month" +msgstr "Ta mesec" + +#. module: sale_margin +#: field:report.account.invoice.category,categ_id:0 +msgid "Categories" +msgstr "Kategorije" + +#. module: sale_margin +#: field:account.invoice.line,cost_price:0 +#: field:report.account.invoice,cost_price:0 +#: field:report.account.invoice.category,cost_price:0 +#: field:report.account.invoice.partner,cost_price:0 +#: field:report.account.invoice.partner.product,cost_price:0 +#: field:report.account.invoice.product,cost_price:0 +#: field:sale.order.line,purchase_price:0 +msgid "Cost Price" +msgstr "Lastna cena" + +#. module: sale_margin +#: wizard_field:stock.invoice_onshipping,init,group:0 +msgid "Group by partner" +msgstr "Združi po partnerjih" + +#. module: sale_margin +#: model:ir.model,name:sale_margin.model_report_account_invoice_partner +msgid "report.account.invoice.partner" +msgstr "" + +#. module: sale_margin +#: model:ir.ui.menu,name:sale_margin.menu_report_account_all_invoice_by_partner +#: model:ir.ui.menu,name:sale_margin.menu_report_account_invoice_by_partner +msgid "Invoices by Partner" +msgstr "Računi po partnerju" + +#. module: sale_margin +#: model:ir.ui.menu,name:sale_margin.menu_report_account_all_invoice_by_category +#: model:ir.ui.menu,name:sale_margin.menu_report_account_invoice_by_category +msgid "Invoices by Category" +msgstr "Računi po kategorijah" + +#. module: sale_margin +#: view:report.account.invoice.partner.product:0 +msgid "Invoices by partner and product" +msgstr "Računi po partnerjih in proizvodih" + +#. module: sale_margin +#: field:report.account.invoice,amount:0 +#: field:report.account.invoice.category,amount:0 +#: field:report.account.invoice.partner,amount:0 +#: field:report.account.invoice.partner.product,amount:0 +#: field:report.account.invoice.product,amount:0 +msgid "Amount" +msgstr "Znesek" + +#. module: sale_margin +#: wizard_field:stock.invoice_onshipping,init,invoice_date:0 +msgid "Invoiced date" +msgstr "Datum izdaje računa" + +#. module: sale_margin +#: selection:report.account.invoice,type:0 +#: selection:report.account.invoice.category,type:0 +#: selection:report.account.invoice.partner,type:0 +#: selection:report.account.invoice.partner.product,type:0 +#: selection:report.account.invoice.product,type:0 +msgid "Supplier Refund" +msgstr "Dobropis dobavitelja" + +#. module: sale_margin +#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_partner_tree +#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_partner_tree_all +msgid "report.account.invoice.partner.tree" +msgstr "" + +#. module: sale_margin +#: field:report.account.invoice,margin:0 +#: field:report.account.invoice.category,margin:0 +#: field:report.account.invoice.partner,margin:0 +#: field:report.account.invoice.partner.product,margin:0 +#: field:report.account.invoice.product,margin:0 +#: field:sale.order,margin:0 +#: field:sale.order.line,margin:0 +msgid "Margin" +msgstr "Rob" + +#. module: sale_margin +#: field:report.account.invoice,quantity:0 +#: field:report.account.invoice.category,quantity:0 +#: field:report.account.invoice.partner,quantity:0 +#: field:report.account.invoice.partner.product,quantity:0 +#: field:report.account.invoice.product,quantity:0 +msgid "Quantity" +msgstr "Količina" + +#. module: sale_margin +#: view:report.account.invoice.product:0 +msgid "Invoices by product" +msgstr "Računi po proizvodih" + +#. module: sale_margin +#: model:ir.module.module,shortdesc:sale_margin.module_meta_information +msgid "Margins in Sale Orders" +msgstr "" + +#. module: sale_margin +#: model:ir.model,name:sale_margin.model_report_account_invoice +msgid "report.account.invoice" +msgstr "" + +#. module: sale_margin +#: model:ir.ui.menu,name:sale_margin.menu_report_account_all_invoice_by_invoices +#: model:ir.ui.menu,name:sale_margin.menu_report_account_invoice_by_invoices +#: view:report.account.invoice:0 +#: view:stock.picking:0 +#: field:stock.picking,invoice_ids:0 +msgid "Invoices" +msgstr "Računi" + +#. module: sale_margin +#: selection:report.account.invoice,state:0 +#: selection:report.account.invoice.category,state:0 +#: selection:report.account.invoice.partner,state:0 +#: selection:report.account.invoice.partner.product,state:0 +#: selection:report.account.invoice.product,state:0 +msgid "Pro-forma" +msgstr "Pro-forma" + +#. module: sale_margin +#: field:report.account.invoice,name:0 +#: field:report.account.invoice.category,name:0 +#: field:report.account.invoice.partner,name:0 +#: field:report.account.invoice.partner.product,name:0 +#: field:report.account.invoice.product,name:0 +msgid "Month" +msgstr "Mesec" + +#. module: sale_margin +#: selection:report.account.invoice,state:0 +#: selection:report.account.invoice.category,state:0 +#: selection:report.account.invoice.partner,state:0 +#: selection:report.account.invoice.partner.product,state:0 +#: selection:report.account.invoice.product,state:0 +msgid "Canceled" +msgstr "Preklicano" + +#. module: sale_margin +#: model:ir.ui.menu,name:sale_margin.menu_report_account_invoice_product +msgid "Invoice" +msgstr "Račun" + +#. module: sale_margin +#: wizard_button:stock.invoice_onshipping,init,end:0 +msgid "Cancel" +msgstr "Prekliči" + +#. module: sale_margin +#: field:report.account.invoice.partner,partner_id:0 +#: field:report.account.invoice.partner.product,partner_id:0 +msgid "Partner" +msgstr "Partner" + +#. module: sale_margin +#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_tree +#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_tree_all +msgid "report.account.invoice.tree" +msgstr "" + +#. module: sale_margin +#: selection:report.account.invoice,state:0 +#: selection:report.account.invoice.category,state:0 +#: selection:report.account.invoice.partner,state:0 +#: selection:report.account.invoice.partner.product,state:0 +#: selection:report.account.invoice.product,state:0 +msgid "Open" +msgstr "Odpri" + +#. module: sale_margin +#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_product_tree +#: model:ir.actions.act_window,name:sale_margin.action_report_account_invoice_product_tree_all +msgid "report.account.invoice.product.tree" +msgstr "" From 646bae0c50c965a5fc9124ebec693cb4bde7d827 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Sat, 3 Jul 2010 15:00:47 +0530 Subject: [PATCH 03/14] [IMP] Account_followup: Cleaning and improvement in module (Print report has still problem) bzr revid: mra@mra-laptop-20100703093047-2mdpngvqmvtnzlb0 --- addons/account_followup/__init__.py | 11 ++- addons/account_followup/__openerp__.py | 15 ++--- .../{followup.py => account_followup.py} | 27 +++++--- ...wup_data.xml => account_followup_data.xml} | 0 ...wup_demo.xml => account_followup_demo.xml} | 0 ...p_report.py => account_followup_report.py} | 0 ...t_view.xml => account_followup_report.xml} | 0 ...wup_view.xml => account_followup_view.xml} | 67 +++++++++++-------- .../report/report_followup_print.py | 14 ++-- .../wizard/account_followup_print.py | 40 +++++++---- .../wizard/account_followup_print_view.xml | 11 --- 11 files changed, 102 insertions(+), 83 deletions(-) rename addons/account_followup/{followup.py => account_followup.py} (89%) rename addons/account_followup/{followup_data.xml => account_followup_data.xml} (100%) rename addons/account_followup/{followup_demo.xml => account_followup_demo.xml} (100%) rename addons/account_followup/{followup_report.py => account_followup_report.py} (100%) rename addons/account_followup/{followup_report_view.xml => account_followup_report.xml} (100%) rename addons/account_followup/{followup_view.xml => account_followup_view.xml} (85%) diff --git a/addons/account_followup/__init__.py b/addons/account_followup/__init__.py index 3065bef0130..b0067573a2f 100644 --- a/addons/account_followup/__init__.py +++ b/addons/account_followup/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (). # @@ -15,14 +15,13 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## -import followup -import followup_report +import account_followup +import account_followup_report import wizard import report -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/account_followup/__openerp__.py b/addons/account_followup/__openerp__.py index 81a5cb79cee..5aefa0abc96 100644 --- a/addons/account_followup/__openerp__.py +++ b/addons/account_followup/__openerp__.py @@ -19,7 +19,6 @@ # ############################################################################## - { 'name': 'Accounting follow-ups management', 'version': '1.0', @@ -36,11 +35,10 @@ It will generate a PDF with all the letters according the the different levels of recall defined. You can define different policies - for different companies. - + for different companies. You can send also mail to the customer. Note that if you want to change the followup level for a given partner/account entry, you can do it in the menu: - Financial Management/Reporting/Follow-Ups/All receivable entries + Accounting/Reporting/Follow-Ups/All receivable entries """, 'author': 'Tiny', @@ -50,13 +48,14 @@ 'update_xml': [ 'security/ir.model.access.csv', 'wizard/account_followup_print_view.xml', - 'followup_report_view.xml', - 'followup_view.xml', - 'followup_data.xml' + 'account_followup_report.xml', + 'account_followup_view.xml', + 'account_followup_data.xml' ], - 'demo_xml': ['followup_demo.xml'], + 'demo_xml': ['account_followup_demo.xml'], 'installable': True, 'active': False, 'certificate': '0072481076453', } + # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/account_followup/followup.py b/addons/account_followup/account_followup.py similarity index 89% rename from addons/account_followup/followup.py rename to addons/account_followup/account_followup.py index c8bf9537f13..02986acb184 100644 --- a/addons/account_followup/followup.py +++ b/addons/account_followup/account_followup.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (). # @@ -15,7 +15,7 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## @@ -23,13 +23,17 @@ from osv import fields, osv class followup(osv.osv): _name = 'account_followup.followup' - _description = 'Follow-Up' + _description = 'Account Follow Up' _columns = { 'name': fields.char('Name', size=64, required=True), 'description': fields.text('Description'), 'followup_line': fields.one2many('account_followup.followup.line', 'followup_id', 'Follow-Up'), 'company_id': fields.many2one('res.company', 'Company'), } + _defaults = { + 'company_id': lambda s, cr, uid, c: s.pool.get('res.company')._company_default_get(cr, uid, 'account_followup.followup', context=c), + } + followup() class followup_line(osv.osv): @@ -42,26 +46,27 @@ class followup_line(osv.osv): 'start': fields.selection([('days','Net Days'),('end_of_month','End of Month')], 'Type of Term', size=64, required=True), 'followup_id': fields.many2one('account_followup.followup', 'Follow Ups', required=True, ondelete="cascade"), 'description': fields.text('Printed Message', translate=True), - } + } + followup_line() class account_move_line(osv.osv): - _name = 'account.move.line' _inherit = 'account.move.line' _columns = { 'followup_line_id': fields.many2one('account_followup.followup.line', 'Follow-up Level'), 'followup_date': fields.date('Latest Follow-up'), - } + } + account_move_line() class res_company(osv.osv): _inherit = "res.company" _columns = { 'follow_up_msg' : fields.text('Follow-up Message', translate=True), - } + } _defaults = { - 'overdue_msg': lambda *a: ''' + 'overdue_msg': ''' Date : %(date)s Dear %(partner_name)s, @@ -75,8 +80,8 @@ Thanks, %(user_signature)s %(company_name)s ''' - } + } + res_company() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/account_followup/followup_data.xml b/addons/account_followup/account_followup_data.xml similarity index 100% rename from addons/account_followup/followup_data.xml rename to addons/account_followup/account_followup_data.xml diff --git a/addons/account_followup/followup_demo.xml b/addons/account_followup/account_followup_demo.xml similarity index 100% rename from addons/account_followup/followup_demo.xml rename to addons/account_followup/account_followup_demo.xml diff --git a/addons/account_followup/followup_report.py b/addons/account_followup/account_followup_report.py similarity index 100% rename from addons/account_followup/followup_report.py rename to addons/account_followup/account_followup_report.py diff --git a/addons/account_followup/followup_report_view.xml b/addons/account_followup/account_followup_report.xml similarity index 100% rename from addons/account_followup/followup_report_view.xml rename to addons/account_followup/account_followup_report.xml diff --git a/addons/account_followup/followup_view.xml b/addons/account_followup/account_followup_view.xml similarity index 85% rename from addons/account_followup/followup_view.xml rename to addons/account_followup/account_followup_view.xml index ae31f7253a2..50c1cb5df34 100644 --- a/addons/account_followup/followup_view.xml +++ b/addons/account_followup/account_followup_view.xml @@ -1,7 +1,7 @@ - + account_followup.followup.line.tree account_followup.followup.line @@ -15,40 +15,39 @@ - + account_followup.followup.line.form account_followup.followup.line form
- - - - + + + + - + - -
- + account_followup.followup.form account_followup.followup form
- - + + - - + + @@ -66,17 +65,30 @@
+ + account.followup.select + account_followup.followup + search + + + + + + + + + Follow-Ups ir.actions.act_window account_followup.followup + form - + - - + account.move.line.partner.tree account.move.line @@ -99,7 +111,7 @@ - + account.move.line.form.followup account.move.line @@ -111,7 +123,7 @@ - + account.move.line.tree.followup account.move.line @@ -123,17 +135,17 @@ - + - + - + - + - + - + res.company.followup.form.inherit @@ -146,5 +158,6 @@ +
diff --git a/addons/account_followup/report/report_followup_print.py b/addons/account_followup/report/report_followup_print.py index 4f1df09c302..08c572a5ba9 100644 --- a/addons/account_followup/report/report_followup_print.py +++ b/addons/account_followup/report/report_followup_print.py @@ -30,12 +30,12 @@ class report_rappel(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): super(report_rappel, self).__init__(cr, uid, name, context=context) self.localcontext.update( { - 'time' : time, + 'time': time, 'ids_to_objects': self._ids_to_objects, - 'adr_get' : self._adr_get, - 'getLines' : self._lines_get, - 'get_text' : self._get_text - }) + 'adr_get': self._adr_get, + 'getLines': self._lines_get, + 'get_text': self._get_text + }) def _ids_to_objects(self, partners_ids): pool = pooler.get_pool(self.cr.dbname) @@ -91,10 +91,8 @@ class report_rappel(report_sxw.rml_parse): return text - report_sxw.report_sxw('report.account_followup.followup.print', 'res.partner', 'addons/account_followup/report/rappel.rml', parser=report_rappel) -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/account_followup/wizard/account_followup_print.py b/addons/account_followup/wizard/account_followup_print.py index d7327638669..868249365ee 100644 --- a/addons/account_followup/wizard/account_followup_print.py +++ b/addons/account_followup/wizard/account_followup_print.py @@ -34,25 +34,32 @@ class account_followup_print(osv.osv_memory): } def _get_followup(self, cr, uid, context=None): + if context is None: + context = {} + if context.get('active_model', 'ir.ui.menu') == 'account_followup.followup': + return context.get('active_id', False) company_id = self.pool.get('res.users').browse(cr, uid, uid).company_id.id - tmp = self.pool.get('account_followup.followup').search(cr, uid, [('company_id', '=', company_id)]) - return tmp and tmp[0] or False + followp_id = self.pool.get('account_followup.followup').search(cr, uid, [('company_id', '=', company_id)], context=context) + return followp_id and followp_id[0] or False def do_continue(self, cr, uid, ids, context=None): mod_obj = self.pool.get('ir.model.data') + + if context is None: + context = {} data = self.read(cr, uid, ids, [])[0] model_data_ids = mod_obj.search(cr, uid, [('model','=','ir.ui.view'),('name','=','view_account_followup_print_all')], context=context) resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id'] context.update({'followup_id': data['followup_id'], 'date':data['date']}) return { - 'name': _('Select partners'), - 'view_type': 'form', - 'context': context, - 'view_mode': 'tree,form', - 'res_model': 'account.followup.print.all', - 'views': [(resource_id,'form')], - 'type': 'ir.actions.act_window', - 'target': 'new', + 'name': _('Select Partners'), + 'view_type': 'form', + 'context': context, + 'view_mode': 'tree,form', + 'res_model': 'account.followup.print.all', + 'views': [(resource_id,'form')], + 'type': 'ir.actions.act_window', + 'target': 'new', } _defaults = { @@ -74,10 +81,12 @@ class account_followup_print_all(osv.osv_memory): 'summary': fields.text('Summary', required=True, readonly=True) } def _get_summary(self, cr, uid, context=None): + if context is None: + context = {} return context.get('summary', '') def _get_partners(self, cr, uid, context=None): - return self._get_partners_followp(cr, uid, [], context)['partner_ids'] + return self._get_partners_followp(cr, uid, [], context=context)['partner_ids'] def _get_msg(self, cr, uid, context=None): return self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.follow_up_msg @@ -168,6 +177,9 @@ class account_followup_print_all(osv.osv_memory): move_obj = self.pool.get('account.move.line') user_obj = self.pool.get('res.users') line_obj = self.pool.get('account_followup.stat') + + if context is None: + context = {} data = self.read(cr, uid, ids, [])[0] model_data_ids = mod_obj.search(cr, uid, [('model','=','ir.ui.view'),('name','=','view_account_followup_print_all_msg')], context=context) resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id'] @@ -252,8 +264,9 @@ class account_followup_print_all(osv.osv_memory): context.update({'summary': summary}) else: context.update({'summary': '\n\n\nE-Mail has not been sent to any partner. If you want to send it, please tick send email confirmation on wizard.'}) + return { - 'name': _('Summary'), + 'name': _('Follwoup Summary'), 'view_type': 'form', 'context': context, 'view_mode': 'tree,form', @@ -265,6 +278,8 @@ class account_followup_print_all(osv.osv_memory): } def do_print(self, cr, uid, ids, context=None): + if context is None: + context = {} data = self.read(cr, uid, ids, [])[0] res = self._get_partners_followp(cr, uid, ids, context)['to_update'] to_update = res @@ -284,6 +299,7 @@ class account_followup_print_all(osv.osv_memory): 'model': 'account_followup.followup', 'form': data } + return { 'type': 'ir.actions.report.xml', 'report_name': 'account_followup.followup.print', diff --git a/addons/account_followup/wizard/account_followup_print_view.xml b/addons/account_followup/wizard/account_followup_print_view.xml index 9e0c34c8bf5..a97e54347cb 100644 --- a/addons/account_followup/wizard/account_followup_print_view.xml +++ b/addons/account_followup/wizard/account_followup_print_view.xml @@ -2,17 +2,6 @@ - - - account.followup.print.form account.followup.print From c179005fc74c169bf6bb351021322e06188b62da Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Sat, 3 Jul 2010 15:51:52 +0530 Subject: [PATCH 04/14] [IMP] Clean hr_* module (Still need to done) bzr revid: mra@mra-laptop-20100703102152-4ulrrzbkorpd7xei --- addons/hr/__openerp__.py | 19 +- addons/hr/hr.py | 42 ++-- addons/hr/hr_data.xml | 2 + addons/hr/hr_department.py | 40 ++-- addons/hr/hr_installer.xml | 42 ++-- addons/hr/hr_view.xml | 185 +++++++----------- addons/hr/installer.py | 15 +- addons/hr/security/hr_security.xml | 3 + addons/hr_attendance/__openerp__.py | 3 +- addons/hr_attendance/hr_attendance.py | 37 ++-- addons/hr_attendance/hr_attendance_demo.xml | 20 ++ addons/hr_attendance/hr_attendance_report.xml | 2 + addons/hr_attendance/hr_attendance_view.xml | 30 +-- addons/hr_attendance/hr_attendance_wizard.xml | 4 +- .../hr_attendance/report/attendance_errors.py | 9 +- addons/hr_attendance/report/bymonth.py | 10 +- addons/hr_attendance/report/timesheet.py | 9 +- addons/hr_attendance/security/hr_security.xml | 12 +- .../wizard/hr_attendance_bymonth.py | 12 +- .../wizard/hr_attendance_bymonth_view.xml | 8 +- .../wizard/hr_attendance_byweek.py | 10 +- .../wizard/hr_attendance_byweek_view.xml | 10 +- .../wizard/hr_attendance_error.py | 13 +- .../wizard/hr_attendance_error_view.xml | 14 +- .../wizard/hr_attendance_sign_in_out.py | 15 +- .../wizard/hr_attendance_sign_in_out_view.xml | 22 +-- addons/hr_contract/__openerp__.py | 3 +- addons/hr_contract/hr_contract.py | 29 +-- addons/hr_contract/hr_contract_data.xml | 1 + addons/hr_contract/hr_contract_view.xml | 77 ++++---- .../security/hr_contract_security.xml | 10 +- addons/hr_evaluation/__openerp__.py | 40 ++-- addons/hr_evaluation/hr_evaluation.py | 77 ++++---- addons/hr_evaluation/hr_evaluation_demo.xml | 122 ++++++++++-- addons/hr_evaluation/hr_evaluation_view.xml | 84 +++----- addons/hr_evaluation/report/__init__.py | 3 +- .../report/hr_evaluation_report.py | 8 +- .../report/hr_evaluation_report_view.xml | 48 ++--- addons/hr_evaluation/wizard/__init__.py | 1 - .../wizard/hr_evaluation_mail.py | 4 +- .../wizard/hr_evaluation_mail_view.xml | 54 ++--- addons/hr_expense/__openerp__.py | 9 +- addons/hr_expense/board_hr_expense_view.xml | 2 + addons/hr_expense/hr_expense.py | 31 ++- addons/hr_expense/hr_expense_demo.xml | 24 ++- addons/hr_expense/hr_expense_report.xml | 2 + addons/hr_expense/hr_expense_sequence.xml | 3 + addons/hr_expense/hr_expense_view.xml | 46 ++--- addons/hr_expense/hr_expense_workflow.xml | 15 ++ addons/hr_expense/report/__init__.py | 1 + addons/hr_expense/report/expense.py | 5 +- .../report/hr_expense_report_view.xml | 52 ++--- addons/hr_holidays/__init__.py | 1 + addons/hr_holidays/__openerp__.py | 12 +- addons/hr_holidays/board_hr_holidays_view.xml | 3 +- addons/hr_holidays/hr_bel_holidays_2008.xml | 10 + addons/hr_holidays/hr_holidays.py | 76 ++++--- addons/hr_holidays/hr_holidays_report.xml | 1 + addons/hr_holidays/hr_holidays_view.xml | 66 +++---- addons/hr_holidays/hr_holidays_wizard.xml | 1 + .../hr_holidays/report/available_holidays.py | 22 ++- .../report/available_holidays_view.xml | 37 ++-- .../report/holidays_summary_report.py | 5 +- .../hr_holidays/report/hr_holidays_report.py | 17 +- .../report/hr_holidays_report_view.xml | 44 ++--- .../wizard/hr_holidays_summary_department.py | 7 +- .../wizard/hr_holidays_summary_employees.py | 6 +- 67 files changed, 833 insertions(+), 814 deletions(-) diff --git a/addons/hr/__openerp__.py b/addons/hr/__openerp__.py index d4778237420..29e61ba5599 100755 --- a/addons/hr/__openerp__.py +++ b/addons/hr/__openerp__.py @@ -21,11 +21,11 @@ { - "name" : "Human Resources", - "version" : "1.1", - "author" : "Tiny", - "category" : "Generic Modules/Human Resources", - "website" : "http://www.openerp.com", + "name": "Human Resources", + "version": "1.1", + "author": "Tiny", + "category": "Generic Modules/Human Resources", + "website": "http://www.openerp.com", "description": """ Module for human resource management. You can manage: * Employees and hierarchies : You can define your employee with User and display hierarchies @@ -45,10 +45,11 @@ 'hr_installer.xml', 'hr_data.xml', 'board_hr_view.xml', - ], - 'demo_xml': ['hr_demo.xml', - 'hr_department_demo.xml'], - + ], + 'demo_xml': [ + 'hr_demo.xml', + 'hr_department_demo.xml' + ], 'test': ['test/test_hr.yml'], 'installable': True, 'active': False, diff --git a/addons/hr/hr.py b/addons/hr/hr.py index b5db01ac512..372b5214f6f 100644 --- a/addons/hr/hr.py +++ b/addons/hr/hr.py @@ -27,9 +27,8 @@ from tools.translate import _ class hr_employee_category(osv.osv): _name = "hr.employee.category" _description = "Employee Category" - _columns = { - 'name' : fields.char("Category", size=64, required=True), + 'name': fields.char("Category", size=64, required=True), 'parent_id': fields.many2one('hr.employee.category', 'Parent Category', select=True), 'child_ids': fields.one2many('hr.employee.category', 'parent_id', 'Child Categories') } @@ -37,7 +36,7 @@ class hr_employee_category(osv.osv): def _check_recursion(self, cr, uid, ids): level = 100 while len(ids): - cr.execute('select distinct parent_id from hr_employee_category where id IN %s',(tuple(ids),)) + cr.execute('select distinct parent_id from hr_employee_category where id IN %s', (tuple(ids), )) ids = filter(None, map(lambda x:x[0], cr.fetchall())) if not level: return False @@ -54,13 +53,14 @@ class hr_employee_marital_status(osv.osv): _name = "hr.employee.marital.status" _description = "Employee Marital Status" _columns = { - 'name' : fields.char('Marital Status', size=30, required=True), - 'description' : fields.text('Status Description'), + 'name': fields.char('Marital Status', size=30, required=True), + 'description': fields.text('Status Description'), } hr_employee_marital_status() class hr_job(osv.osv): - def _no_of_employee(self, cr, uid, ids, name,args,context=None): + + def _no_of_employee(self, cr, uid, ids, name, args, context=None): res = {} for emp in self.browse(cr, uid, ids): res[emp.id] = len(emp.employee_ids or []) @@ -70,19 +70,19 @@ class hr_job(osv.osv): _description = "Job Description" _columns = { 'name': fields.char('Job Name', size=128, required=True, select=True), - 'expected_employees':fields.integer('Expected Employees', help='Required number of Employees'), + 'expected_employees': fields.integer('Expected Employees', help='Required number of Employees'), 'no_of_employee': fields.function(_no_of_employee, method=True, string='No of Employees', type='integer', help='Number of Employees selected'), - 'employee_ids':fields.one2many('hr.employee', 'job_id','Employees'), + 'employee_ids': fields.one2many('hr.employee', 'job_id', 'Employees'), 'description': fields.text('Job Description'), - 'requirements':fields.text('Requirements'), - 'department_id':fields.many2one('hr.department','Department'), + 'requirements': fields.text('Requirements'), + 'department_id': fields.many2one('hr.department', 'Department'), 'company_id': fields.many2one('res.company', 'Company'), - 'state': fields.selection([('open','Open'),('old','Old'),('recruit','In Recruitement')], 'State', required=True), + 'state': fields.selection([('open', 'Open'),('old', 'Old'),('recruit', 'In Recruitement')], 'State', required=True), } _defaults = { - 'expected_employees': lambda *a: 1, + 'expected_employees': 1, 'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'hr.job', context=c), - 'state': lambda *args: 'open' + 'state': 'open' } hr_job() @@ -90,17 +90,17 @@ hr_job() class hr_employee(osv.osv): _name = "hr.employee" _description = "Employee" - _inherits = {'resource.resource':"resource_id"} + _inherits = {'resource.resource': "resource_id"} _columns = { - 'country_id' : fields.many2one('res.country', 'Nationality'), - 'birthday' : fields.date("Birthday"), + 'country_id': fields.many2one('res.country', 'Nationality'), + 'birthday': fields.date("Birthday"), 'ssnid': fields.char('SSN No', size=32, help='Social Security Number'), 'sinid': fields.char('SIN No', size=32), 'otherid': fields.char('Other ID', size=32), - 'gender': fields.selection([('male','Male'),('female','Female')], 'Gender'), + 'gender': fields.selection([('male', 'Male'),('female', 'Female')], 'Gender'), 'marital': fields.many2one('hr.employee.marital.status', 'Marital Status'), 'bank_account': fields.char('Bank Account', size=56), - 'partner_id' : fields.related('company_id', 'partner_id', type='many2one', relation='res.partner', readonly=True), + 'partner_id': fields.related('company_id', 'partner_id', type='many2one', relation='res.partner', readonly=True), 'department_id':fields.many2one('hr.department','Department'), 'address_id': fields.many2one('res.partner.address', 'Working Address'), 'address_home_id': fields.many2one('res.partner.address', 'Home Address'), @@ -109,8 +109,8 @@ class hr_employee(osv.osv): 'work_location': fields.char('Office Location', size=32), 'notes': fields.text('Notes'), 'parent_id': fields.many2one('hr.employee', 'Manager', select=True), - 'category_id' : fields.many2one('hr.employee.category', 'Category'), - 'child_ids': fields.one2many('hr.employee', 'parent_id','Subordinates'), + 'category_id': fields.many2one('hr.employee.category', 'Category'), + 'child_ids': fields.one2many('hr.employee', 'parent_id', 'Subordinates'), 'resource_id': fields.many2one('resource.resource', 'Resource', ondelete='cascade'), 'coach_id': fields.many2one('res.users', 'Coach'), 'job_id': fields.many2one('hr.job', 'Job'), @@ -123,7 +123,7 @@ class hr_employee(osv.osv): 'rb') .read().encode('base64') _defaults = { - 'active' : 1, + 'active': 1, 'photo': _get_photo, } diff --git a/addons/hr/hr_data.xml b/addons/hr/hr_data.xml index 7125afb17d4..f76d1457aa1 100644 --- a/addons/hr/hr_data.xml +++ b/addons/hr/hr_data.xml @@ -1,6 +1,7 @@ + Single @@ -14,5 +15,6 @@ Widower + diff --git a/addons/hr/hr_department.py b/addons/hr/hr_department.py index 9e190a2b0f7..d1e13e2f6ec 100644 --- a/addons/hr/hr_department.py +++ b/addons/hr/hr_department.py @@ -25,6 +25,8 @@ import tools class hr_department(osv.osv): def name_get(self, cr, uid, ids, context=None): + if context is None: + context = {} if not len(ids): return [] reads = self.read(cr, uid, ids, ['name','parent_id'], context) @@ -36,7 +38,7 @@ class hr_department(osv.osv): res.append((record['id'], name)) return res - def _dept_name_get_fnc(self, cr, uid, ids, prop, unknow_none, context): + def _dept_name_get_fnc(self, cr, uid, ids, prop, unknow_none, context=None): res = self.name_get(cr, uid, ids, context) return dict(res) @@ -51,13 +53,19 @@ class hr_department(osv.osv): 'manager_id': fields.many2one('res.users', 'Manager', required=True), 'member_ids': fields.many2many('res.users', 'hr_department_user_rel', 'department_id', 'user_id', 'Members'), } - def _get_members(self,cr, uid, context={}): - mids = self.search(cr, uid, [('manager_id','=',uid)]) + + _defaults = { + 'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'hr.department', context=c), + } + + def _get_members(self,cr, uid, context=None): + mids = self.search(cr, uid, [('manager_id', '=', uid)]) result = {uid:1} for m in self.browse(cr, uid, mids, context): for user in m.member_ids: result[user.id] = 1 return result.keys() + def _check_recursion(self, cr, uid, ids): level = 100 while len(ids): @@ -78,18 +86,17 @@ hr_department() class ir_action_window(osv.osv): _inherit = 'ir.actions.act_window' - def read(self, cr, uid, ids, fields=None, context=None, - load='_classic_read'): + def read(self, cr, uid, ids, fields=None, context=None, load='_classic_read'): + if context is None: + context = {} select = ids if isinstance(ids, (int, long)): select = [ids] - res = super(ir_action_window, self).read(cr, uid, select, fields=fields, - context=context, load=load) + res = super(ir_action_window, self).read(cr, uid, select, fields=fields, context=context, load=load) for r in res: mystring = 'department_users_get()' if mystring in (r.get('domain', '[]') or ''): - r['domain'] = r['domain'].replace(mystring, str( - self.pool.get('hr.department')._get_members(cr, uid))) + r['domain'] = r['domain'].replace(mystring, str(self.pool.get('hr.department')._get_members(cr, uid))) if isinstance(ids, (int, long)): if res: return res[0] @@ -103,7 +110,7 @@ class res_users(osv.osv): _inherit = 'res.users' _description = 'User' - def _parent_compute(self, cr, uid, ids, name, args, context={}): + def _parent_compute(self, cr, uid, ids, name, args, context=None): result = {} obj_dept = self.pool.get('hr.department') for user_id in ids: @@ -125,10 +132,12 @@ class res_users(osv.osv): return [('id', 'in', [0])] return [('id', 'in', child_ids.get(uid,[]))] - def _child_compute(self, cr, uid, ids, name, args, context={}): + def _child_compute(self, cr, uid, ids, name, args, context=None): obj_dept = self.pool.get('hr.department') obj_user = self.pool.get('res.users') result = {} + if context is None: + context = {} for manager_id in ids: child_ids = [] mgnt_dept_ids = obj_dept.search(cr, uid, [('manager_id', '=', manager_id)]) @@ -137,10 +146,9 @@ class res_users(osv.osv): data_dept = obj_dept.read(cr, uid, ids_dept, ['member_ids']) childs = map(lambda x: x['member_ids'], data_dept) childs = tools.flatten(childs) - childs = obj_user.search(cr, uid, [('id','in',childs),('active','=',True)]) + childs = obj_user.search(cr, uid, [('id', 'in', childs),('active', '=', True)]) if manager_id in childs: childs.remove(manager_id) - child_ids.extend(tools.flatten(childs)) set = {} map(set.__setitem__, child_ids, []) @@ -150,7 +158,7 @@ class res_users(osv.osv): result[manager_id] = child_ids return result - def _child_search(self, cr, uid, obj, name, args, context): + def _child_search(self, cr, uid, obj, name, args, context=None): parent = [] for arg in args: if arg[0] == 'child_ids': @@ -161,9 +169,11 @@ class res_users(osv.osv): return [('id', 'in', child_ids.get(uid,[]))] _columns = { - 'parent_id': fields.function(_parent_compute, relation='res.users',fnct_search=_parent_search, method=True, string="Managers", type='many2many'), + 'parent_id': fields.function(_parent_compute, relation='res.users', fnct_search=_parent_search, method=True, string="Managers", type='many2many'), 'child_ids': fields.function(_child_compute, relation='res.users', fnct_search=_child_search, method=True, string="Subordinates", type='many2many'), 'context_department_id': fields.many2one('hr.department', 'Departments'), } + res_users() + # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/hr/hr_installer.xml b/addons/hr/hr_installer.xml index 6859150e855..c0d388517eb 100644 --- a/addons/hr/hr_installer.xml +++ b/addons/hr/hr_installer.xml @@ -1,5 +1,7 @@ + + hr.installer.view hr.installer @@ -7,20 +9,18 @@ -
- Select Human Resources Modules To Install -
- - - Select Human Resources Modules To Install - - +
+ Select Human Resources Modules To Install +
+ + Select Human Resources Modules To Install + + - - - The base Human Resources addon will help you manage your employee roster, but you can enhance it even further by installing a few HR-related applications. - +
+ + The base Human Resources addon will help you manage your employee roster, but you can enhance it even further by installing a few HR-related applications. + @@ -51,16 +51,18 @@ 3
- - ir.actions.todo - hr_installer_action_replace - tree - - + + + ir.actions.todo + hr_installer_action_replace + tree + +