diff --git a/addons/account/account.py b/addons/account/account.py index 04a0bb5da68..61319f7f973 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1965,13 +1965,12 @@ class account_add_tmpl_wizard(osv.osv_memory): if not tids or not tids[0]['parent_id']: return False ptids = tmpl_obj.read(cr, uid, [tids[0]['parent_id'][0]],['code']) + res = None if not ptids or not ptids[0]['code']: raise osv.except_osv(_('Error !'), _('Cannot locate parent code for template account!')) res = acc_obj.search(cr,uid,[('code','=',ptids[0]['code'])]) - if res: - return res[0] - else: - return False + + return res and res[0] or False _columns = { 'cparent_id':fields.many2one('account.account', 'Parent target', help="Creates an account with the selected template under this existing parent.", required=True), diff --git a/addons/account/i18n/de.po b/addons/account/i18n/de.po index 4f9893960bf..d2659e92d1c 100644 --- a/addons/account/i18n/de.po +++ b/addons/account/i18n/de.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-04-16 09:47+0000\n" +"PO-Revision-Date: 2010-06-03 20:09+0000\n" "Last-Translator: Ferdinand @ ChriCar \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-04-21 04:06+0000\n" +"X-Launchpad-Export-Date: 2010-06-04 03:45+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account @@ -272,10 +272,6 @@ msgid "" "in which order. You can create your own view for a faster encoding in each " "journal." msgstr "" -"zeigt die Ansicht des Journalberichtes. Open ERP wird gezeigt welche Felder " -"sichtbar sein sollen, welche erforderlich sind oder keine Schreibrechte habe " -"und in der Reihenfolge der Auftragsnummern. Sie können einen eigenen View " -"für eine schnellere Buchungsbearbeitung herstellen." #. module: account #: help:account.invoice,date_due:0 @@ -2176,7 +2172,8 @@ msgid "Analytic Entry" msgstr "Buchung Analysekonto" #. module: account -#: view:res.company:0 field:res.company,overdue_msg:0 +#: view:res.company:0 +#: field:res.company,overdue_msg:0 msgid "Overdue Payments Message" msgstr "Text Zahlungserinnerung" @@ -3314,7 +3311,9 @@ msgstr "Buchen OP Ausgleich" #. module: account #: wizard_view:account.wizard_paid_open,init:0 msgid "(Invoice should be unreconciled if you want to open it)" -msgstr "(Rechnungen müssen ausgeglichen werden)" +msgstr "" +"(Rechnungen dürfen nicht ausgeglichen sein, wenn diese wieder geöffnet " +"werden sollen)" #. module: account #: view:account.invoice:0 @@ -5314,7 +5313,7 @@ msgstr "Benutze Buchungsvorlage" #. module: account #: wizard_button:account.wizard_paid_open,init,end:0 msgid "No" -msgstr "Nummer" +msgstr "Nein" #. module: account #: model:ir.actions.act_window,name:account.act_account_partner_account_move @@ -6062,3 +6061,6 @@ msgstr "Aktivieren, wenn Benutzer das Konto ausgleichen dürfen." #: wizard_button:account.subscription.generate,init,generate:0 msgid "Compute Entry Dates" msgstr "Berechne eingegebene Daten" + +#~ msgid "account.config.wizard" +#~ msgstr "account.config.wizard" diff --git a/addons/base_setup/base_setup_todo.xml b/addons/base_setup/base_setup_todo.xml index 97c9ea0d301..2d6b400d2c5 100644 --- a/addons/base_setup/base_setup_todo.xml +++ b/addons/base_setup/base_setup_todo.xml @@ -28,9 +28,9 @@ - + diff --git a/addons/base_setup/gtk_contact_form.py b/addons/base_setup/gtk_contact_form.py index a9fde39ffde..c62951b13b7 100644 --- a/addons/base_setup/gtk_contact_form.py +++ b/addons/base_setup/gtk_contact_form.py @@ -71,7 +71,6 @@ class base_gtkcontactform(osv.osv_memory): 'other':fields.boolean('Other'), 'ebook':fields.boolean('ebook'), 'updates':fields.boolean('Updates'), - 'contact_me':fields.boolean('Contact Me'), } def execute(self, cr, uid, ids, context=None): if context is None: @@ -81,10 +80,10 @@ class base_gtkcontactform(osv.osv_memory): company_data = self.pool.get('base.setup.company').read(cr, uid, company_id, context=context) company_data = company_data and company_data[0] or {} country = '' - + if company_data.get('country_id', False): country = self.pool.get('res.country').read(cr, uid, company_data['country_id'],['name'], context=context)['name'] - + for res in self.read(cr, uid, ids, context=context): email = res.get('email','') result = "\ncompany: "+ tools.ustr(company_data.get('name','')) diff --git a/addons/base_setup/gtk_contact_form.xml b/addons/base_setup/gtk_contact_form.xml index c5578f9bc9a..41711032bf0 100644 --- a/addons/base_setup/gtk_contact_form.xml +++ b/addons/base_setup/gtk_contact_form.xml @@ -24,9 +24,7 @@ - -