diff --git a/account_lock_date_update/i18n/de.po b/account_lock_date_update/i18n/de.po index e005e27cf..29e72c574 100644 --- a/account_lock_date_update/i18n/de.po +++ b/account_lock_date_update/i18n/de.po @@ -9,19 +9,20 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-11-28 23:24+0000\n" -"PO-Revision-Date: 2017-11-28 23:24+0000\n" -"Last-Translator: OCA Transbot , 2017\n" +"PO-Revision-Date: 2018-10-10 13:41+0000\n" +"Last-Translator: Rudolf Schnapka \n" "Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.1.1\n" #. module: account_lock_date_update #: model:ir.model,name:account_lock_date_update.model_account_update_lock_date msgid "Account Update Lock_date" -msgstr "" +msgstr "Kontoänderungs-Sperrdatum" #. module: account_lock_date_update #: model:ir.ui.view,arch_db:account_lock_date_update.account_update_lock_date_form_view @@ -71,12 +72,12 @@ msgstr "Zuletzt geändert am" #. module: account_lock_date_update #: model:ir.model.fields,field_description:account_lock_date_update.field_account_update_lock_date_fiscalyear_lock_date msgid "Lock Date" -msgstr "" +msgstr "Sperrdatum" #. module: account_lock_date_update #: model:ir.model.fields,field_description:account_lock_date_update.field_account_update_lock_date_period_lock_date msgid "Lock Date for Non-Advisers" -msgstr "" +msgstr "Sperrdatum für Nicht-Buchhalter" #. module: account_lock_date_update #: model:ir.model.fields,help:account_lock_date_update.field_account_update_lock_date_fiscalyear_lock_date @@ -84,6 +85,8 @@ msgid "" "No users, including Advisers, can edit accounts prior to and inclusive of " "this date. Use it for fiscal year locking for example." msgstr "" +"Niemand, Buchhalter eingeschlossen, darf Konten bis einschliesslich diesem " +"Datum bearbeiten. Verwenden Sie dies z.B. für Geschäftsjahresabschluss." #. module: account_lock_date_update #: model:ir.model.fields,help:account_lock_date_update.field_account_update_lock_date_period_lock_date @@ -92,20 +95,23 @@ msgid "" "of this date. Use it for period locking inside an open fiscal year, for " "example." msgstr "" +"Nur mit der Rolle Buchhalter dürfen Konten vor einschliesslich diesem Datum " +"bearbeiten. Verwenden Sie dies z.B. für Periodensperre im laufenden " +"Geschäftsjahr." #. module: account_lock_date_update #: model:ir.ui.view,arch_db:account_lock_date_update.account_update_lock_date_form_view msgid "Update" -msgstr "" +msgstr "Aktualisierung" #. module: account_lock_date_update #: model:ir.actions.act_window,name:account_lock_date_update.account_update_lock_date_act_window #: model:ir.ui.menu,name:account_lock_date_update.account_update_lock_date_menu msgid "Update accounting lock dates" -msgstr "" +msgstr "Aktualisiere Kontosperrdaten" #. module: account_lock_date_update #: code:addons/account_lock_date_update/wizards/account_update_lock_date.py:42 #, python-format msgid "You are not allowed to execute this action." -msgstr "" +msgstr "Sie haben keine Berechtigung für diese Aktion." diff --git a/account_lock_date_update/tests/test_account_lock_date_update.py b/account_lock_date_update/tests/test_account_lock_date_update.py index f290cdeaa..139e86e8d 100644 --- a/account_lock_date_update/tests/test_account_lock_date_update.py +++ b/account_lock_date_update/tests/test_account_lock_date_update.py @@ -9,11 +9,12 @@ class TestAccountLockDateUpdate(TransactionCase): def setUp(self): super(TestAccountLockDateUpdate, self).setUp() - self.UpdateLockDateUpdateObj = self.env['account.update.lock_date'] - self.company = self.env.ref('base.main_company') self.demo_user = self.env.ref('base.user_demo') self.adviser_group = self.env.ref('account.group_account_manager') + self.UpdateLockDateUpdateObj = self.env[ + 'account.update.lock_date' + ].sudo(self.demo_user) def create_account_lock_date_update(self): return self.UpdateLockDateUpdateObj.create({ @@ -26,23 +27,21 @@ class TestAccountLockDateUpdate(TransactionCase): 'period_lock_date': '2000-01-01', 'fiscalyear_lock_date': '2000-01-01', }) - self.demo_user.write({ 'groups_id': [(3, self.adviser_group.id)], }) - with self.assertRaises(UserError): wizard.sudo(self.demo_user.id).execute() def test_02_update_with_access(self): wizard = self.create_account_lock_date_update() wizard.write({ - 'period_lock_date': '2000-01-01', + 'period_lock_date': '2000-02-01', 'fiscalyear_lock_date': '2000-01-01', }) - self.demo_user.write({ 'groups_id': [(4, self.adviser_group.id)], }) - wizard.sudo(self.demo_user.id).execute() + self.assertEqual(self.company.period_lock_date, '2000-02-01') + self.assertEqual(self.company.fiscalyear_lock_date, '2000-01-01')