diff --git a/addons/account/i18n/et.po b/addons/account/i18n/et.po index de29b97400e..455b6da50ce 100644 --- a/addons/account/i18n/et.po +++ b/addons/account/i18n/et.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.0\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2010-07-22 20:15+0000\n" +"PO-Revision-Date: 2010-07-29 06:54+0000\n" "Last-Translator: lyyser \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-23 04:07+0000\n" +"X-Launchpad-Export-Date: 2010-07-30 03:36+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account @@ -6042,12 +6042,12 @@ msgstr "" #. module: account #: wizard_view:account.balance.account.balance.report,init:0 msgid "Select Fiscal Year(s)(Maximum Three Years)" -msgstr "" +msgstr "Vali finantsaasta(d) (maksimum kolm aastat)" #. module: account #: wizard_field:account.balance.account.balance.report,init,select_account:0 msgid "Select Reference Account(for % comparision)" -msgstr "" +msgstr "Valige võrdluskonto (% võrdluseks)" #. module: account #: model:ir.actions.wizard,name:account.wizard_account_balance_report diff --git a/addons/account_voucher/voucher.py b/addons/account_voucher/voucher.py index 0b1b9b01b23..e1005512127 100644 --- a/addons/account_voucher/voucher.py +++ b/addons/account_voucher/voucher.py @@ -203,7 +203,7 @@ class account_voucher(osv.osv): } self.write(cr, uid, ids, res) else: - raise osv.except_osv('Invalid action !', 'You cannot post to Pro-Forma a voucher with Total amount = 0 !') + raise osv.except_osv(_('Invalid action !'), _('You can not post to Pro-Forma a voucher with Total amount = 0 !')) return True def proforma_voucher(self, cr, uid, ids, context={}): diff --git a/addons/account_voucher_payment/account_voucher_payment.py b/addons/account_voucher_payment/account_voucher_payment.py index 3d860146520..2bae0e6f75a 100755 --- a/addons/account_voucher_payment/account_voucher_payment.py +++ b/addons/account_voucher_payment/account_voucher_payment.py @@ -22,6 +22,38 @@ from osv import fields, osv from tools.translate import _ +class account_invoice(osv.osv): + _inherit = 'account.invoice' + + def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False): + """ + Returns a list of ids based on search domain {args} + + @param cr: A database cursor + @param user: ID of the user currently logged in + @param args: list of conditions to be applied in search opertion + @param offset: default from first record, you can start from nth record + @param limit: number of records to be obtained as a result of search opertion + @param order: ordering on any field(s) + @param context: context arguments, like lang, time zone + @param count: + + @return: Returns a list of ids based on search domain + """ + ttype = context.get('ttype', False) + if ttype and ttype in ('rec_voucher', 'bank_rec_voucher'): + args += [('type','in', ['out_invoice', 'in_refund'])] + elif ttype and ttype in ('pay_voucher', 'bank_pay_voucher'): + args += [('type','in', ['in_invoice', 'out_refund'])] + elif ttype and ttype in('journal_sale_vou', 'journal_pur_voucher', 'journal_voucher'): + raise osv.except_osv(_('Invalid action !'), _('You can not reconcile sales, purchase, or journal entry with invoice !')) + args += [('type','=', 'do_not_allow_search')] + + res = super(account_invoice, self).search(cr, user, args, offset, limit, order, context, count) + return res + +account_invoice() + class account_move_line(osv.osv): _inherit = "account.move.line" _columns = { @@ -158,11 +190,12 @@ class account_voucher(osv.osv): move_line_id = move_line_pool.create(cr, uid, move_line) line_ids += [move_line_id] - if line.invoice_id: + if line.invoice_id and inv.type in ('pay_voucher', 'bank_pay_voucher', 'rec_voucher', 'bank_rec_voucher'): rec_ids += [move_line_id] for move_line in line.invoice_id.move_id.line_id: if line.account_id.id == move_line.account_id.id: - rec_ids += [move_line.id] + rec_ids += [move_line.id] + if rec_ids: move_line_pool.reconcile_partial(cr, uid, rec_ids) @@ -196,7 +229,7 @@ class account_voucher_line(osv.osv): res = super(account_voucher_line, self).move_line_get_item(cr, uid, line, context) res['invoice'] = line.invoice_id or False return res - + def onchange_invoice_id(self, cr, uid, ids, invoice_id, currency_id): currency_pool = self.pool.get('res.currency') invoice_pool = self.pool.get('account.invoice') diff --git a/addons/account_voucher_payment/account_voucher_payment_view.xml b/addons/account_voucher_payment/account_voucher_payment_view.xml index 3f118120c8a..6da4c7d45e2 100755 --- a/addons/account_voucher_payment/account_voucher_payment_view.xml +++ b/addons/account_voucher_payment/account_voucher_payment_view.xml @@ -10,10 +10,10 @@ - + - + diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index 674dc143334..241a36b1051 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -1092,7 +1092,7 @@ class calendar_event(osv.osv): ('confirmed', 'Confirmed'), ('cancelled', 'Cancelled')], 'State', readonly=True), 'exdate': fields.text('Exception Date/Times', help="This property \ -defines the list of date/time exceptions for arecurring calendar component."), +defines the list of date/time exceptions for a recurring calendar component."), 'exrule': fields.char('Exception Rule', size=352, help="defines a \ rule or repeating pattern for an exception to a recurrence set"), 'rrule': fields.function(_get_rulestring, type='char', size=124, method=True, \ diff --git a/addons/base_module_quality/i18n/id.po b/addons/base_module_quality/i18n/id.po new file mode 100644 index 00000000000..edd55c91ab6 --- /dev/null +++ b/addons/base_module_quality/i18n/id.po @@ -0,0 +1,185 @@ +# Indonesian 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-08-28 16:01+0000\n" +"PO-Revision-Date: 2010-07-29 09:25+0000\n" +"Last-Translator: FULL NAME \n" +"Language-Team: Indonesian \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-30 03:37+0000\n" +"X-Generator: Launchpad (build Unknown)\n" + +#. module: base_module_quality +#: field:module.quality.check,final_score:0 +msgid "Final Score (%)" +msgstr "" + +#. module: base_module_quality +#: constraint:ir.model:0 +msgid "" +"The Object name must start with x_ and not contain any special character !" +msgstr "" + +#. module: base_module_quality +#: model:ir.module.module,shortdesc:base_module_quality.module_meta_information +msgid "Base module quality" +msgstr "" + +#. module: base_module_quality +#: field:module.quality.check,name:0 +msgid "Rated Module" +msgstr "" + +#. module: base_module_quality +#: view:module.quality.detail:0 +msgid "Detail" +msgstr "" + +#. module: base_module_quality +#: field:module.quality.detail,note:0 +msgid "Note" +msgstr "" + +#. module: base_module_quality +#: field:module.quality.detail,state:0 +msgid "State" +msgstr "" + +#. module: base_module_quality +#: field:module.quality.detail,detail:0 +msgid "Details" +msgstr "" + +#. module: base_module_quality +#: field:module.quality.detail,ponderation:0 +msgid "Ponderation" +msgstr "" + +#. module: base_module_quality +#: help:module.quality.detail,ponderation:0 +msgid "" +"Some tests are more critical than others, so they have a bigger weight in " +"the computation of final rating" +msgstr "" + +#. module: base_module_quality +#: view:module.quality.check:0 +#: field:module.quality.check,check_detail_ids:0 +msgid "Tests" +msgstr "" + +#. module: base_module_quality +#: selection:module.quality.detail,state:0 +msgid "Skipped" +msgstr "" + +#. module: base_module_quality +#: help:module.quality.detail,state:0 +msgid "" +"The test will be completed only if the module is installed or if the test " +"may be processed on uninstalled module." +msgstr "" + +#. module: base_module_quality +#: constraint:ir.ui.view:0 +msgid "Invalid XML for View Architecture!" +msgstr "" + +#. module: base_module_quality +#: model:ir.model,name:base_module_quality.model_module_quality_check +msgid "module.quality.check" +msgstr "" + +#. module: base_module_quality +#: field:module.quality.detail,name:0 +msgid "Name" +msgstr "" + +#. module: base_module_quality +#: wizard_field:quality_detail_save,init,module_file:0 +msgid "Save report" +msgstr "" + +#. module: base_module_quality +#: wizard_field:quality_detail_save,init,name:0 +msgid "File name" +msgstr "" + +#. module: base_module_quality +#: field:module.quality.detail,score:0 +msgid "Score (%)" +msgstr "" + +#. module: base_module_quality +#: help:quality_detail_save,init,name:0 +msgid "Save report as .html format" +msgstr "" + +#. module: base_module_quality +#: view:module.quality.detail:0 +#: field:module.quality.detail,summary:0 +msgid "Summary" +msgstr "" + +#. module: base_module_quality +#: model:ir.actions.wizard,name:base_module_quality.quality_detail_save +msgid "Report Save" +msgstr "" + +#. module: base_module_quality +#: wizard_view:quality_detail_save,init:0 +msgid "Standard entries" +msgstr "" + +#. module: base_module_quality +#: view:module.quality.detail:0 +msgid "Save Report" +msgstr "" + +#. module: base_module_quality +#: code:addons/base_module_quality/wizard/module_quality_check.py:0 +#: model:ir.actions.wizard,name:base_module_quality.create_quality_check_id +#, python-format +msgid "Quality Check" +msgstr "" + +#. module: base_module_quality +#: model:ir.model,name:base_module_quality.model_module_quality_detail +msgid "module.quality.detail" +msgstr "" + +#. module: base_module_quality +#: selection:module.quality.detail,state:0 +msgid "Done" +msgstr "" + +#. module: base_module_quality +#: code:addons/base_module_quality/speed_test/speed_test.py:0 +#: view:module.quality.check:0 +#: view:module.quality.detail:0 +#, python-format +msgid "Result" +msgstr "" + +#. module: base_module_quality +#: wizard_button:quality_detail_save,init,end:0 +msgid "Cancel" +msgstr "" + +#. module: base_module_quality +#: field:module.quality.detail,message:0 +msgid "Message" +msgstr "" + +#. module: base_module_quality +#: field:module.quality.detail,quality_check_id:0 +msgid "Quality" +msgstr "" diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 4ae7b1dd344..0ad779d403f 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -236,12 +236,13 @@ class crm_lead(osv.osv, crm_case): context.update({'active_ids': ids}) data_obj = self.pool.get('ir.model.data') - data_id = data_obj._get_id(cr, uid, 'crm', 'view_crm_lead2opportunity_create') + data_id = data_obj._get_id(cr, uid, 'crm', 'view_crm_lead2opportunity_action') value = {} view_id = False if data_id: view_id = data_obj.browse(cr, uid, data_id, context=context).res_id + for case in self.browse(cr, uid, ids): context.update({'active_id': case.id}) if not case.partner_id: @@ -267,7 +268,7 @@ class crm_lead(osv.osv, crm_case): 'name': _('Create Opportunity'), 'view_type': 'form', 'view_mode': 'form,tree', - 'res_model': 'crm.lead2opportunity', + 'res_model': 'crm.lead2opportunity.action', 'view_id': False, 'context': context, 'views': [(view_id, 'form')], diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 9ddc87b2efd..14a23bd6a18 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -310,7 +310,7 @@ + help="My Sales Team(s)"/> + help="My Sales Team(s)" /> diff --git a/addons/crm/crm_opportunity_view.xml b/addons/crm/crm_opportunity_view.xml index 411ae9ec58d..0ab4529b75f 100644 --- a/addons/crm/crm_opportunity_view.xml +++ b/addons/crm/crm_opportunity_view.xml @@ -35,7 +35,7 @@ -