Merge lp:~akretion-team/account-analytic/account-analytic-add-analytic-required into lp:account-analytic/6.1

Proposed by Alexis de Lattre on 2012-11-21
Status: Merged
Merged at revision: 10
Proposed branch: lp:~akretion-team/account-analytic/account-analytic-add-analytic-required
Merge into: lp:account-analytic/6.1
Diff against target: 782 lines (+736/-0)
9 files modified
account_analytic_required/__init__.py (+24/-0)
account_analytic_required/__openerp__.py (+44/-0)
account_analytic_required/account.py (+67/-0)
account_analytic_required/account_view.xml (+24/-0)
account_analytic_required/i18n/account_analytic_required.pot (+94/-0)
account_analytic_required/i18n/ar.po (+120/-0)
account_analytic_required/i18n/ca.po (+120/-0)
account_analytic_required/i18n/es.po (+122/-0)
account_analytic_required/i18n/fr.po (+121/-0)
To merge this branch: bzr merge lp:~akretion-team/account-analytic/account-analytic-add-analytic-required
Reviewer Review Type Date Requested Status
Guewen Baconnier @ Camptocamp no test, review 2012-11-21 Approve on 2012-11-22
Review via email: mp+135334@code.launchpad.net

Description of the change

Move my module account_analytic_required from extra-addons to account-analytic, as discussed in the openerp-community mailing-list.

To post a comment you must log in.

Hi Alexis, ok for me

review: Approve (no test, review)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'account_analytic_required'
2=== added file 'account_analytic_required/__init__.py'
3--- account_analytic_required/__init__.py 1970-01-01 00:00:00 +0000
4+++ account_analytic_required/__init__.py 2012-11-21 09:01:21 +0000
5@@ -0,0 +1,24 @@
6+# -*- encoding: utf-8 -*-
7+##############################################################################
8+#
9+# Account analytic required module for OpenERP
10+# Copyright (C) 2011 Akretion (http://www.akretion.com). All Rights Reserved
11+# @author Alexis de Lattre <alexis.delattre@akretion.com>
12+#
13+# This program is free software: you can redistribute it and/or modify
14+# it under the terms of the GNU Affero General Public License as
15+# published by the Free Software Foundation, either version 3 of the
16+# License, or (at your option) any later version.
17+#
18+# This program is distributed in the hope that it will be useful,
19+# but WITHOUT ANY WARRANTY; without even the implied warranty of
20+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+# GNU Affero General Public License for more details.
22+#
23+# You should have received a copy of the GNU Affero General Public License
24+# along with this program. If not, see <http://www.gnu.org/licenses/>.
25+#
26+##############################################################################
27+
28+
29+import account
30
31=== added file 'account_analytic_required/__openerp__.py'
32--- account_analytic_required/__openerp__.py 1970-01-01 00:00:00 +0000
33+++ account_analytic_required/__openerp__.py 2012-11-21 09:01:21 +0000
34@@ -0,0 +1,44 @@
35+# -*- encoding: utf-8 -*-
36+##############################################################################
37+#
38+# Account analytic required module for OpenERP
39+# Copyright (C) 2011 Akretion (http://www.akretion.com). All Rights Reserved
40+# @author Alexis de Lattre <alexis.delattre@akretion.com>
41+#
42+# This program is free software: you can redistribute it and/or modify
43+# it under the terms of the GNU Affero General Public License as
44+# published by the Free Software Foundation, either version 3 of the
45+# License, or (at your option) any later version.
46+#
47+# This program is distributed in the hope that it will be useful,
48+# but WITHOUT ANY WARRANTY; without even the implied warranty of
49+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
50+# GNU Affero General Public License for more details.
51+#
52+# You should have received a copy of the GNU Affero General Public License
53+# along with this program. If not, see <http://www.gnu.org/licenses/>.
54+#
55+##############################################################################
56+
57+
58+{
59+ 'name': 'Account analytic required',
60+ 'version': '0.1',
61+ 'category': 'Generic Modules/Accounting',
62+ 'license': 'AGPL-3',
63+ 'description': """This module adds an option "analytic policy" on account types. You have the choice between 3 policies : always, never and optional.
64+
65+For example, if you want to have an analytic account on all your expenses, set the policy to "always" for the account type "expense" ; then, if you try to save an account move line with an account of type "expense" without analytic account, you will get an error message.
66+
67+Module developped by Alexis de Lattre <alexis.delattre@akretion.com> during the Akretion-Camptocamp code sprint of June 2011.
68+""",
69+ 'author': 'Akretion',
70+ 'website': 'http://www.akretion.com/',
71+ 'depends': ['account'],
72+ 'init_xml': [],
73+ 'update_xml': ['account_view.xml'],
74+ 'demo_xml': [],
75+ 'installable': True,
76+ 'active': False,
77+}
78+
79
80=== added file 'account_analytic_required/account.py'
81--- account_analytic_required/account.py 1970-01-01 00:00:00 +0000
82+++ account_analytic_required/account.py 2012-11-21 09:01:21 +0000
83@@ -0,0 +1,67 @@
84+# -*- encoding: utf-8 -*-
85+##############################################################################
86+#
87+# Account analytic required module for OpenERP
88+# Copyright (C) 2011 Akretion (http://www.akretion.com). All Rights Reserved
89+# @author Alexis de Lattre <alexis.delattre@akretion.com>
90+# Developped during the Akretion-Camptocamp code sprint of June 2011
91+#
92+# This program is free software: you can redistribute it and/or modify
93+# it under the terms of the GNU Affero General Public License as
94+# published by the Free Software Foundation, either version 3 of the
95+# License, or (at your option) any later version.
96+#
97+# This program is distributed in the hope that it will be useful,
98+# but WITHOUT ANY WARRANTY; without even the implied warranty of
99+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
100+# GNU Affero General Public License for more details.
101+#
102+# You should have received a copy of the GNU Affero General Public License
103+# along with this program. If not, see <http://www.gnu.org/licenses/>.
104+#
105+##############################################################################
106+
107+from osv import fields, osv
108+from tools.translate import _
109+
110+
111+class account_account_type(osv.osv):
112+ _inherit = "account.account.type"
113+
114+ _columns = {
115+ 'analytic_policy' : fields.selection([
116+ ('optional', 'Optional'),
117+ ('always', 'Always'),
118+ ('never', 'Never')
119+ ], 'Policy for analytic account', help="Set the policy for analytic accounts : if you select 'Optional', the accountant is free to put an analytic account on an account move line with this type of account ; if you select 'Always', the accountant will get an error message if there is no analytic account ; if you select 'Never', the accountant will get an error message if an analytic account is present."),
120+ }
121+
122+ _defaults = {
123+ 'analytic_policy': lambda *a: 'optional',
124+ }
125+
126+account_account_type()
127+
128+
129+class account_move_line(osv.osv):
130+ _inherit = "account.move.line"
131+
132+ def check_analytic_required(self, cr, uid, vals, context=None):
133+ if vals.has_key('account_id'):
134+ account = self.pool.get('account.account').browse(cr, uid, vals['account_id'], context=context)
135+ if account.user_type.analytic_policy == 'always' and not vals.get('analytic_account_id', False):
136+ raise osv.except_osv(_('Error :'), _("Analytic policy is set to 'Always' with account %s '%s' but the analytic account is missing in the account move line with label '%s'." % (account.code, account.name, vals.get('name', False))))
137+ elif account.user_type.analytic_policy == 'never' and vals.get('analytic_account_id', False):
138+ cur_analytic_account = self.pool.get('account.analytic.account').read(cr, uid, vals['analytic_account_id'], ['name', 'code'], context=context)
139+ raise osv.except_osv(_('Error :'), _("Analytic policy is set to 'Never' with account %s '%s' but the account move line with label '%s' has an analytic account %s '%s'." % (account.code, account.name, vals.get('name', False), cur_analytic_account['code'], cur_analytic_account['name'])))
140+ return True
141+
142+ def create(self, cr, uid, vals, context=None, check=True):
143+ self.check_analytic_required(cr, uid, vals, context=context)
144+ return super(account_move_line, self).create(cr, uid, vals, context=context, check=check)
145+
146+ def write(self, cr, uid, ids, vals, context=None, check=True, update_check=True):
147+ self.check_analytic_required(cr, uid, vals, context=context)
148+ return super(account_move_line, self).write(cr, uid, ids, vals, context=context, check=check, update_check=update_check)
149+
150+account_move_line()
151
152=== added file 'account_analytic_required/account_view.xml'
153--- account_analytic_required/account_view.xml 1970-01-01 00:00:00 +0000
154+++ account_analytic_required/account_view.xml 2012-11-21 09:01:21 +0000
155@@ -0,0 +1,24 @@
156+<?xml version="1.0" encoding="utf-8"?>
157+<!--
158+ Account analytic required module for OpenERP
159+ Copyright (C) 2011 Akretion (http://www.akretion.com). All Rights Reserved
160+ @author Alexis de Lattre <alexis.delattre@akretion.com>
161+ The licence is in the file __openerp__.py
162+-->
163+
164+<openerp>
165+<data>
166+
167+<record id="account_analytic_required_account_type_form" model="ir.ui.view">
168+ <field name="name">account_analytic_required.account_type_form</field>
169+ <field name="model">account.account.type</field>
170+ <field name="inherit_id" ref="account.view_account_type_form" />
171+ <field name="arch" type="xml">
172+ <field name="code" position="after">
173+ <field name="analytic_policy" />
174+ </field>
175+ </field>
176+</record>
177+
178+</data>
179+</openerp>
180
181=== added directory 'account_analytic_required/i18n'
182=== added file 'account_analytic_required/i18n/account_analytic_required.pot'
183--- account_analytic_required/i18n/account_analytic_required.pot 1970-01-01 00:00:00 +0000
184+++ account_analytic_required/i18n/account_analytic_required.pot 2012-11-21 09:01:21 +0000
185@@ -0,0 +1,94 @@
186+# Translation of OpenERP Server.
187+# This file contains the translation of the following modules:
188+# * account_analytic_required
189+#
190+msgid ""
191+msgstr ""
192+"Project-Id-Version: OpenERP Server 6.0.2\n"
193+"Report-Msgid-Bugs-To: support@openerp.com\n"
194+"POT-Creation-Date: 2011-06-10 07:49+0000\n"
195+"PO-Revision-Date: 2011-06-10 07:49+0000\n"
196+"Last-Translator: <>\n"
197+"Language-Team: \n"
198+"MIME-Version: 1.0\n"
199+"Content-Type: text/plain; charset=UTF-8\n"
200+"Content-Transfer-Encoding: \n"
201+"Plural-Forms: \n"
202+
203+#. module: account_analytic_required
204+#: field:account.account.type,analytic_policy:0
205+msgid "Policy for analytic account"
206+msgstr ""
207+
208+#. module: account_analytic_required
209+#: help:account.account.type,analytic_policy:0
210+msgid "Set the policy for analytic accounts : if you select 'Optional', the accountant is free to put an analytic account on an account move line with this type of account ; if you select 'Always', the accountant will get an error message if there is no analytic account ; if you select 'Never', the accountant will get an error message if an analytic account is present."
211+msgstr ""
212+
213+#. module: account_analytic_required
214+#: selection:account.account.type,analytic_policy:0
215+msgid "Optional"
216+msgstr ""
217+
218+#. module: account_analytic_required
219+#: model:ir.module.module,description:account_analytic_required.module_meta_information
220+msgid "This module adds an option \"analytic policy\" on account types. You have the choice between 3 policies : always, never and optional.\n"
221+"\n"
222+"For example, if you want to have an analytic account on all your expenses, set the policy to \"always\" for the account type \"expense\" ; then, if you try to save an account move line with an account of type \"expense\" without analytic account, you will get an error message.\n"
223+"\n"
224+"Module developped by Alexis de Lattre <alexis.delattre@akretion.com> during the Akretion-Camptocamp code sprint of June 2011.\n"
225+""
226+msgstr ""
227+
228+#. module: account_analytic_required
229+#: constraint:account.move.line:0
230+msgid "You can not create move line on closed account."
231+msgstr ""
232+
233+#. module: account_analytic_required
234+#: selection:account.account.type,analytic_policy:0
235+msgid "Always"
236+msgstr ""
237+
238+#. module: account_analytic_required
239+#: selection:account.account.type,analytic_policy:0
240+msgid "Never"
241+msgstr ""
242+
243+#. module: account_analytic_required
244+#: model:ir.module.module,shortdesc:account_analytic_required.module_meta_information
245+msgid "Account analytic required"
246+msgstr ""
247+
248+#. module: account_analytic_required
249+#: sql_constraint:account.move.line:0
250+msgid "Wrong credit or debit value in accounting entry !"
251+msgstr ""
252+
253+#. module: account_analytic_required
254+#: constraint:account.move.line:0
255+msgid "You can not create move line on view account."
256+msgstr ""
257+
258+#. module: account_analytic_required
259+#: model:ir.model,name:account_analytic_required.model_account_move_line
260+msgid "Journal Items"
261+msgstr ""
262+
263+#. module: account_analytic_required
264+#: model:ir.model,name:account_analytic_required.model_account_account_type
265+msgid "Account Type"
266+msgstr ""
267+
268+#. module: account_analytic_required
269+#: constraint:account.move.line:0
270+msgid "Company must be same for its related account and period."
271+msgstr ""
272+
273+#. module: account_analytic_required
274+#: code:addons/account_analytic_required/account.py:53
275+#: code:addons/account_analytic_required/account.py:56
276+#, python-format
277+msgid "Error :"
278+msgstr ""
279+
280
281=== added file 'account_analytic_required/i18n/ar.po'
282--- account_analytic_required/i18n/ar.po 1970-01-01 00:00:00 +0000
283+++ account_analytic_required/i18n/ar.po 2012-11-21 09:01:21 +0000
284@@ -0,0 +1,120 @@
285+# Arabic translation for openobject-addons
286+# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
287+# This file is distributed under the same license as the openobject-addons package.
288+# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
289+#
290+msgid ""
291+msgstr ""
292+"Project-Id-Version: openobject-addons\n"
293+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
294+"POT-Creation-Date: 2011-06-10 07:49+0000\n"
295+"PO-Revision-Date: 2012-02-08 07:01+0000\n"
296+"Last-Translator: husam <Unknown>\n"
297+"Language-Team: Arabic <ar@li.org>\n"
298+"MIME-Version: 1.0\n"
299+"Content-Type: text/plain; charset=UTF-8\n"
300+"Content-Transfer-Encoding: 8bit\n"
301+"X-Launchpad-Export-Date: 2012-09-25 05:07+0000\n"
302+"X-Generator: Launchpad (build 16019)\n"
303+
304+#. module: account_analytic_required
305+#: field:account.account.type,analytic_policy:0
306+msgid "Policy for analytic account"
307+msgstr "سياسة للحسابات التحليلية"
308+
309+#. module: account_analytic_required
310+#: help:account.account.type,analytic_policy:0
311+msgid ""
312+"Set the policy for analytic accounts : if you select 'Optional', the "
313+"accountant is free to put an analytic account on an account move line with "
314+"this type of account ; if you select 'Always', the accountant will get an "
315+"error message if there is no analytic account ; if you select 'Never', the "
316+"accountant will get an error message if an analytic account is present."
317+msgstr ""
318+"ضع سياسة للحسابات التحليلية: إذا قمت بتحديد \"الاختياري\"، فان المحاسب حر في "
319+"وضع حساب تحليلي على حساب خط التحرك مع هذا النوع من الحساب، وإذا قمت بتحديد "
320+"\"دائما\"، فان المحاسب سوف يحصل على رسالة خطأ إذا كان هناك لا يوجد حساب "
321+"تحليلي، وإذا قمت بتحديد \"أبدا\"، فان المحاسب سوف يحصل على رسالة خطأ إذا كان "
322+"هناك حساب تحليلي موجود"
323+
324+#. module: account_analytic_required
325+#: selection:account.account.type,analytic_policy:0
326+msgid "Optional"
327+msgstr "إختياري"
328+
329+#. module: account_analytic_required
330+#: model:ir.module.module,description:account_analytic_required.module_meta_information
331+msgid ""
332+"This module adds an option \"analytic policy\" on account types. You have "
333+"the choice between 3 policies : always, never and optional.\n"
334+"\n"
335+"For example, if you want to have an analytic account on all your expenses, "
336+"set the policy to \"always\" for the account type \"expense\" ; then, if you "
337+"try to save an account move line with an account of type \"expense\" without "
338+"analytic account, you will get an error message.\n"
339+"\n"
340+"Module developped by Alexis de Lattre <alexis.delattre@akretion.com> during "
341+"the Akretion-Camptocamp code sprint of June 2011.\n"
342+msgstr ""
343+"هذه الوحدة تضيف خيار \"السياسة التحليلية\" على أنواع الحسابات. لديك خيار بين "
344+"3 سياسات: دائما، أبدا، واختياري.\n"
345+"\n"
346+"على سبيل المثال، إذا كنت تريد أن يكون لديك حساب تحليلي عن جميع النفقات "
347+"الخاصة بك، اختار النهج \"دائما\" من أجل نوع الحساب\"مصروف\"، ثم، إذا حاولت "
348+"حفظ الحركة في حساب مع حساب \"مصروف\" من دون حساب تحليلي، وسوف تحصل على "
349+"رسالة خطأ.\n"
350+"\n"
351+"طورت الوحدة بواسطة اتر أليكسيس دي alexis.delattre@akretion.com> Akretion-"
352+"Camptocamp من يونيو 2011\n"
353+
354+#. module: account_analytic_required
355+#: constraint:account.move.line:0
356+msgid "You can not create move line on closed account."
357+msgstr "لا يمكنك انشاء حركة على الحساب"
358+
359+#. module: account_analytic_required
360+#: selection:account.account.type,analytic_policy:0
361+msgid "Always"
362+msgstr "دائماً"
363+
364+#. module: account_analytic_required
365+#: selection:account.account.type,analytic_policy:0
366+msgid "Never"
367+msgstr "أبدًا"
368+
369+#. module: account_analytic_required
370+#: model:ir.module.module,shortdesc:account_analytic_required.module_meta_information
371+msgid "Account analytic required"
372+msgstr "مطلوب حساب تحليلي"
373+
374+#. module: account_analytic_required
375+#: sql_constraint:account.move.line:0
376+msgid "Wrong credit or debit value in accounting entry !"
377+msgstr "قيمة دائنة أو مدينة خاطئة في القيد المحاسبي !"
378+
379+#. module: account_analytic_required
380+#: constraint:account.move.line:0
381+msgid "You can not create move line on view account."
382+msgstr "لا يمكنك عمل حركة على هذا الحساب"
383+
384+#. module: account_analytic_required
385+#: model:ir.model,name:account_analytic_required.model_account_move_line
386+msgid "Journal Items"
387+msgstr "عناصر دفتر اليومية"
388+
389+#. module: account_analytic_required
390+#: model:ir.model,name:account_analytic_required.model_account_account_type
391+msgid "Account Type"
392+msgstr "نوع الحساب"
393+
394+#. module: account_analytic_required
395+#: constraint:account.move.line:0
396+msgid "Company must be same for its related account and period."
397+msgstr "يجب ان تكون الشركة نفس فترتها وحسابها المتعلق بها."
398+
399+#. module: account_analytic_required
400+#: code:addons/account_analytic_required/account.py:53
401+#: code:addons/account_analytic_required/account.py:56
402+#, python-format
403+msgid "Error :"
404+msgstr "خطأ :"
405
406=== added file 'account_analytic_required/i18n/ca.po'
407--- account_analytic_required/i18n/ca.po 1970-01-01 00:00:00 +0000
408+++ account_analytic_required/i18n/ca.po 2012-11-21 09:01:21 +0000
409@@ -0,0 +1,120 @@
410+# Translation of OpenERP Server.
411+# This file contains the translation of the following modules:
412+# * account_analytic_required
413+#
414+msgid ""
415+msgstr ""
416+"Project-Id-Version: OpenERP Server 6.0.2\n"
417+"Report-Msgid-Bugs-To: support@openerp.com\n"
418+"POT-Creation-Date: 2011-06-10 07:49+0000\n"
419+"PO-Revision-Date: 2011-06-24 10:26+0000\n"
420+"Last-Translator: jmartin (Zikzakmedia) <jmartin@zikzakmedia.com>\n"
421+"Language-Team: \n"
422+"MIME-Version: 1.0\n"
423+"Content-Type: text/plain; charset=UTF-8\n"
424+"Content-Transfer-Encoding: 8bit\n"
425+"X-Launchpad-Export-Date: 2012-09-25 05:07+0000\n"
426+"X-Generator: Launchpad (build 16019)\n"
427+
428+#. module: account_analytic_required
429+#: field:account.account.type,analytic_policy:0
430+msgid "Policy for analytic account"
431+msgstr "Política per als comptes analítics"
432+
433+#. module: account_analytic_required
434+#: help:account.account.type,analytic_policy:0
435+msgid ""
436+"Set the policy for analytic accounts : if you select 'Optional', the "
437+"accountant is free to put an analytic account on an account move line with "
438+"this type of account ; if you select 'Always', the accountant will get an "
439+"error message if there is no analytic account ; if you select 'Never', the "
440+"accountant will get an error message if an analytic account is present."
441+msgstr ""
442+"Configura la política per als comptes analítics: Si seleccioneu 'Opcional', "
443+"el comptable és lliure de posar un compte analític en un apunt comptable amb "
444+"aquest tipus de compte; si seleccioneu 'Sempre', el comptable rebrà un "
445+"missatge d'error si l'apunt no té compte analític; si seleccioneu 'Mai', el "
446+"comptable rebrà un missatge d'error si l'apunt té un compte analític."
447+
448+#. module: account_analytic_required
449+#: selection:account.account.type,analytic_policy:0
450+msgid "Optional"
451+msgstr "Opcional"
452+
453+#. module: account_analytic_required
454+#: model:ir.module.module,description:account_analytic_required.module_meta_information
455+msgid ""
456+"This module adds an option \"analytic policy\" on account types. You have "
457+"the choice between 3 policies : always, never and optional.\n"
458+"\n"
459+"For example, if you want to have an analytic account on all your expenses, "
460+"set the policy to \"always\" for the account type \"expense\" ; then, if you "
461+"try to save an account move line with an account of type \"expense\" without "
462+"analytic account, you will get an error message.\n"
463+"\n"
464+"Module developped by Alexis de Lattre <alexis.delattre@akretion.com> during "
465+"the Akretion-Camptocamp code sprint of June 2011.\n"
466+msgstr ""
467+"Aquest mòdul afegeix una opció \"política analítica\" als tipus comptables. "
468+"Podeu escollir entre 3 polítiques: 'Sempre', 'Mai' i 'Opcional'.\n"
469+"\n"
470+"Per exemple, si voleu tenir un compte analític de totes les vostres "
471+"despeses, seleccioneu la política \"Sempre\" per al tipus comptable "
472+"\"Despesa\"; llavors, si intenteu desar un apunt comptable de tipus "
473+"comptable \"Despesa\" sense compte analític, obtindreu un missatge d'error.\n"
474+"\n"
475+"Mòdul desenvolupat per Alexis de Lattre <alexis.delattre@akretion.com> "
476+"durant la cursa de codi Akretion-Camptocamp de juny de 2011.\n"
477+
478+#. module: account_analytic_required
479+#: constraint:account.move.line:0
480+msgid "You can not create move line on closed account."
481+msgstr "No podeu crear un apunt en un compte tancat."
482+
483+#. module: account_analytic_required
484+#: selection:account.account.type,analytic_policy:0
485+msgid "Always"
486+msgstr "Sempre"
487+
488+#. module: account_analytic_required
489+#: selection:account.account.type,analytic_policy:0
490+msgid "Never"
491+msgstr "Mai"
492+
493+#. module: account_analytic_required
494+#: model:ir.module.module,shortdesc:account_analytic_required.module_meta_information
495+msgid "Account analytic required"
496+msgstr "El compte analític és requerit."
497+
498+#. module: account_analytic_required
499+#: sql_constraint:account.move.line:0
500+msgid "Wrong credit or debit value in accounting entry !"
501+msgstr "Valor erroni al deure o a l'haver de l'assentament comptable!"
502+
503+#. module: account_analytic_required
504+#: constraint:account.move.line:0
505+msgid "You can not create move line on view account."
506+msgstr "No podeu crear un apunt en un compte de tipus \"Vista\"."
507+
508+#. module: account_analytic_required
509+#: model:ir.model,name:account_analytic_required.model_account_move_line
510+msgid "Journal Items"
511+msgstr "Apunts comptables"
512+
513+#. module: account_analytic_required
514+#: model:ir.model,name:account_analytic_required.model_account_account_type
515+msgid "Account Type"
516+msgstr "Tipus de compte"
517+
518+#. module: account_analytic_required
519+#: constraint:account.move.line:0
520+msgid "Company must be same for its related account and period."
521+msgstr ""
522+"La companyia ha de ser la mateixa que la dels comptes i períodes relacionats."
523+
524+#. module: account_analytic_required
525+#: code:addons/account_analytic_required/account.py:53
526+#: code:addons/account_analytic_required/account.py:56
527+#, python-format
528+msgid "Error :"
529+msgstr "Error:"
530
531=== added file 'account_analytic_required/i18n/es.po'
532--- account_analytic_required/i18n/es.po 1970-01-01 00:00:00 +0000
533+++ account_analytic_required/i18n/es.po 2012-11-21 09:01:21 +0000
534@@ -0,0 +1,122 @@
535+# Translation of OpenERP Server.
536+# This file contains the translation of the following modules:
537+# * account_analytic_required
538+#
539+msgid ""
540+msgstr ""
541+"Project-Id-Version: OpenERP Server 6.0.2\n"
542+"Report-Msgid-Bugs-To: support@openerp.com\n"
543+"POT-Creation-Date: 2011-06-10 07:49+0000\n"
544+"PO-Revision-Date: 2011-06-24 10:25+0000\n"
545+"Last-Translator: jmartin (Zikzakmedia) <jmartin@zikzakmedia.com>\n"
546+"Language-Team: \n"
547+"MIME-Version: 1.0\n"
548+"Content-Type: text/plain; charset=UTF-8\n"
549+"Content-Transfer-Encoding: 8bit\n"
550+"X-Launchpad-Export-Date: 2012-09-25 05:07+0000\n"
551+"X-Generator: Launchpad (build 16019)\n"
552+
553+#. module: account_analytic_required
554+#: field:account.account.type,analytic_policy:0
555+msgid "Policy for analytic account"
556+msgstr "Política para las cuentas analíticas"
557+
558+#. module: account_analytic_required
559+#: help:account.account.type,analytic_policy:0
560+msgid ""
561+"Set the policy for analytic accounts : if you select 'Optional', the "
562+"accountant is free to put an analytic account on an account move line with "
563+"this type of account ; if you select 'Always', the accountant will get an "
564+"error message if there is no analytic account ; if you select 'Never', the "
565+"accountant will get an error message if an analytic account is present."
566+msgstr ""
567+"Configura la política para las cuentas analíticas: Si selecciona 'Opcional', "
568+"el contable es libre de poner una cuenta analítica en un apunte contable de "
569+"este tipo de cuenta; si selecciona 'Siempre', el contable recibirá un "
570+"mensaje de error si el apunte no tiene cuenta analítica; si selecciona "
571+"'Nunca', el contable recibirá un mensaje de error si el apunte tiene una "
572+"cuenta analítica."
573+
574+#. module: account_analytic_required
575+#: selection:account.account.type,analytic_policy:0
576+msgid "Optional"
577+msgstr "Opcional"
578+
579+#. module: account_analytic_required
580+#: model:ir.module.module,description:account_analytic_required.module_meta_information
581+msgid ""
582+"This module adds an option \"analytic policy\" on account types. You have "
583+"the choice between 3 policies : always, never and optional.\n"
584+"\n"
585+"For example, if you want to have an analytic account on all your expenses, "
586+"set the policy to \"always\" for the account type \"expense\" ; then, if you "
587+"try to save an account move line with an account of type \"expense\" without "
588+"analytic account, you will get an error message.\n"
589+"\n"
590+"Module developped by Alexis de Lattre <alexis.delattre@akretion.com> during "
591+"the Akretion-Camptocamp code sprint of June 2011.\n"
592+msgstr ""
593+"Este módulo añade una opción \"política analítica\" a los tipos contables. "
594+"Puede escoger entre 3 políticas: 'Siempre', 'Nunca' y 'Opcional'.\n"
595+"\n"
596+"Por ejemplo, si quiere tener una cuenta analítica de todos sus gastos, "
597+"seleccione la política \"Siempre\" para el tipo contable \"Gasto\"; "
598+"entonces, si intenta guardar un apunte contable de tipo contable \"Gasto\" "
599+"sin cuenta analítica, obtendrá un mensaje de error.\n"
600+"\n"
601+"Módulo desarrollado por Alexis de Lattre <alexis.delattre@akretion.com> "
602+"durante la carrera de código Akretion-Camptocamp de junio de 2011.\n"
603+
604+#. module: account_analytic_required
605+#: constraint:account.move.line:0
606+msgid "You can not create move line on closed account."
607+msgstr "No puede crear un apunte en una cuenta cerrada."
608+
609+#. module: account_analytic_required
610+#: selection:account.account.type,analytic_policy:0
611+msgid "Always"
612+msgstr "Siempre"
613+
614+#. module: account_analytic_required
615+#: selection:account.account.type,analytic_policy:0
616+msgid "Never"
617+msgstr "Nunca"
618+
619+#. module: account_analytic_required
620+#: model:ir.module.module,shortdesc:account_analytic_required.module_meta_information
621+msgid "Account analytic required"
622+msgstr "La cuenta analítica es requerida."
623+
624+#. module: account_analytic_required
625+#: sql_constraint:account.move.line:0
626+msgid "Wrong credit or debit value in accounting entry !"
627+msgstr "¡Valor erróneo en el debe o en el haber del asiento contable!"
628+
629+#. module: account_analytic_required
630+#: constraint:account.move.line:0
631+msgid "You can not create move line on view account."
632+msgstr "No puede crear un apunte en una cuenta de tipo \"Vista\"."
633+
634+#. module: account_analytic_required
635+#: model:ir.model,name:account_analytic_required.model_account_move_line
636+msgid "Journal Items"
637+msgstr "Apuntes contables"
638+
639+#. module: account_analytic_required
640+#: model:ir.model,name:account_analytic_required.model_account_account_type
641+msgid "Account Type"
642+msgstr "Tipo de cuenta"
643+
644+#. module: account_analytic_required
645+#: constraint:account.move.line:0
646+msgid "Company must be same for its related account and period."
647+msgstr ""
648+"La compañía debe ser la misma que la de las cuentas y los periodos "
649+"relacionados."
650+
651+#. module: account_analytic_required
652+#: code:addons/account_analytic_required/account.py:53
653+#: code:addons/account_analytic_required/account.py:56
654+#, python-format
655+msgid "Error :"
656+msgstr "Error:"
657
658=== added file 'account_analytic_required/i18n/fr.po'
659--- account_analytic_required/i18n/fr.po 1970-01-01 00:00:00 +0000
660+++ account_analytic_required/i18n/fr.po 2012-11-21 09:01:21 +0000
661@@ -0,0 +1,121 @@
662+# Translation of OpenERP Server.
663+# This file contains the translation of the following modules:
664+# * account_analytic_required
665+#
666+msgid ""
667+msgstr ""
668+"Project-Id-Version: OpenERP Server 6.0.2\n"
669+"Report-Msgid-Bugs-To: support@openerp.com\n"
670+"POT-Creation-Date: 2011-06-10 07:49+0000\n"
671+"PO-Revision-Date: 2011-06-14 15:19+0000\n"
672+"Last-Translator: Alexis de Lattre <alexis@via.ecp.fr>\n"
673+"Language-Team: \n"
674+"MIME-Version: 1.0\n"
675+"Content-Type: text/plain; charset=UTF-8\n"
676+"Content-Transfer-Encoding: 8bit\n"
677+"X-Launchpad-Export-Date: 2012-09-25 05:07+0000\n"
678+"X-Generator: Launchpad (build 16019)\n"
679+
680+#. module: account_analytic_required
681+#: field:account.account.type,analytic_policy:0
682+msgid "Policy for analytic account"
683+msgstr "Politique pour les comptes analytiques"
684+
685+#. module: account_analytic_required
686+#: help:account.account.type,analytic_policy:0
687+msgid ""
688+"Set the policy for analytic accounts : if you select 'Optional', the "
689+"accountant is free to put an analytic account on an account move line with "
690+"this type of account ; if you select 'Always', the accountant will get an "
691+"error message if there is no analytic account ; if you select 'Never', the "
692+"accountant will get an error message if an analytic account is present."
693+msgstr ""
694+"Configurez la politique pour les comptes analytiques : si vous sélectionnez "
695+"'Optionnel', le comptable est libre de saisir ou non un compte analytique "
696+"sur une ligne comptable avec ce type de compte de comptabilité générale ; si "
697+"vous sélectionnez 'Toujours', le comptable aura un message d'erreur si il "
698+"n'y a pas de compte analytique ; si vous sélectionnez 'Jamais', le comptable "
699+"aura un message d'erreur si un compte analytique est présent."
700+
701+#. module: account_analytic_required
702+#: selection:account.account.type,analytic_policy:0
703+msgid "Optional"
704+msgstr "Optionnel"
705+
706+#. module: account_analytic_required
707+#: model:ir.module.module,description:account_analytic_required.module_meta_information
708+msgid ""
709+"This module adds an option \"analytic policy\" on account types. You have "
710+"the choice between 3 policies : always, never and optional.\n"
711+"\n"
712+"For example, if you want to have an analytic account on all your expenses, "
713+"set the policy to \"always\" for the account type \"expense\" ; then, if you "
714+"try to save an account move line with an account of type \"expense\" without "
715+"analytic account, you will get an error message.\n"
716+"\n"
717+"Module developped by Alexis de Lattre <alexis.delattre@akretion.com> during "
718+"the Akretion-Camptocamp code sprint of June 2011.\n"
719+msgstr ""
720+"This module adds an option \"analytic policy\" on account types. You have "
721+"the choice between 3 policies : always, never and optional.\n"
722+"\n"
723+"For example, if you want to have an analytic account on all your expenses, "
724+"set the policy to \"always\" for the account type \"expense\" ; then, if you "
725+"try to save an account move line with an account of type \"expense\" without "
726+"analytic account, you will get an error message.\n"
727+"\n"
728+"Module developped by Alexis de Lattre <alexis.delattre@akretion.com> during "
729+"the Akretion-Camptocamp code sprint of June 2011.\n"
730+
731+#. module: account_analytic_required
732+#: constraint:account.move.line:0
733+msgid "You can not create move line on closed account."
734+msgstr "Impossible de créer une ligne d'écriture sur un compte clôturé"
735+
736+#. module: account_analytic_required
737+#: selection:account.account.type,analytic_policy:0
738+msgid "Always"
739+msgstr "Toujours"
740+
741+#. module: account_analytic_required
742+#: selection:account.account.type,analytic_policy:0
743+msgid "Never"
744+msgstr "Jamais"
745+
746+#. module: account_analytic_required
747+#: model:ir.module.module,shortdesc:account_analytic_required.module_meta_information
748+msgid "Account analytic required"
749+msgstr "Account analytic required"
750+
751+#. module: account_analytic_required
752+#: sql_constraint:account.move.line:0
753+msgid "Wrong credit or debit value in accounting entry !"
754+msgstr "Valeur erronée au crédit ou au débit de la pièce comptable !"
755+
756+#. module: account_analytic_required
757+#: constraint:account.move.line:0
758+msgid "You can not create move line on view account."
759+msgstr ""
760+"Vous ne pouvez pas créer de ligne d'écriture sur un compte de type \"Vue\"."
761+
762+#. module: account_analytic_required
763+#: model:ir.model,name:account_analytic_required.model_account_move_line
764+msgid "Journal Items"
765+msgstr "Écritures comptables"
766+
767+#. module: account_analytic_required
768+#: model:ir.model,name:account_analytic_required.model_account_account_type
769+msgid "Account Type"
770+msgstr "Type de compte"
771+
772+#. module: account_analytic_required
773+#: constraint:account.move.line:0
774+msgid "Company must be same for its related account and period."
775+msgstr "La société doit être la même pour les comptes et périodes liées."
776+
777+#. module: account_analytic_required
778+#: code:addons/account_analytic_required/account.py:53
779+#: code:addons/account_analytic_required/account.py:56
780+#, python-format
781+msgid "Error :"
782+msgstr "Erreur :"

Subscribers

People subscribed via source and target branches

to status/vote changes: