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

Proposed by Alexis de Lattre
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 Approve
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.
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

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
=== added directory 'account_analytic_required'
=== added file 'account_analytic_required/__init__.py'
--- account_analytic_required/__init__.py 1970-01-01 00:00:00 +0000
+++ account_analytic_required/__init__.py 2012-11-21 09:01:21 +0000
@@ -0,0 +1,24 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# Account analytic required module for OpenERP
5# Copyright (C) 2011 Akretion (http://www.akretion.com). All Rights Reserved
6# @author Alexis de Lattre <alexis.delattre@akretion.com>
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23
24import account
025
=== added file 'account_analytic_required/__openerp__.py'
--- account_analytic_required/__openerp__.py 1970-01-01 00:00:00 +0000
+++ account_analytic_required/__openerp__.py 2012-11-21 09:01:21 +0000
@@ -0,0 +1,44 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# Account analytic required module for OpenERP
5# Copyright (C) 2011 Akretion (http://www.akretion.com). All Rights Reserved
6# @author Alexis de Lattre <alexis.delattre@akretion.com>
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23
24{
25 'name': 'Account analytic required',
26 'version': '0.1',
27 'category': 'Generic Modules/Accounting',
28 'license': 'AGPL-3',
29 'description': """This module adds an option "analytic policy" on account types. You have the choice between 3 policies : always, never and optional.
30
31For 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.
32
33Module developped by Alexis de Lattre <alexis.delattre@akretion.com> during the Akretion-Camptocamp code sprint of June 2011.
34""",
35 'author': 'Akretion',
36 'website': 'http://www.akretion.com/',
37 'depends': ['account'],
38 'init_xml': [],
39 'update_xml': ['account_view.xml'],
40 'demo_xml': [],
41 'installable': True,
42 'active': False,
43}
44
045
=== added file 'account_analytic_required/account.py'
--- account_analytic_required/account.py 1970-01-01 00:00:00 +0000
+++ account_analytic_required/account.py 2012-11-21 09:01:21 +0000
@@ -0,0 +1,67 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# Account analytic required module for OpenERP
5# Copyright (C) 2011 Akretion (http://www.akretion.com). All Rights Reserved
6# @author Alexis de Lattre <alexis.delattre@akretion.com>
7# Developped during the Akretion-Camptocamp code sprint of June 2011
8#
9# This program is free software: you can redistribute it and/or modify
10# it under the terms of the GNU Affero General Public License as
11# published by the Free Software Foundation, either version 3 of the
12# License, or (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU Affero General Public License for more details.
18#
19# You should have received a copy of the GNU Affero General Public License
20# along with this program. If not, see <http://www.gnu.org/licenses/>.
21#
22##############################################################################
23
24from osv import fields, osv
25from tools.translate import _
26
27
28class account_account_type(osv.osv):
29 _inherit = "account.account.type"
30
31 _columns = {
32 'analytic_policy' : fields.selection([
33 ('optional', 'Optional'),
34 ('always', 'Always'),
35 ('never', 'Never')
36 ], '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."),
37 }
38
39 _defaults = {
40 'analytic_policy': lambda *a: 'optional',
41 }
42
43account_account_type()
44
45
46class account_move_line(osv.osv):
47 _inherit = "account.move.line"
48
49 def check_analytic_required(self, cr, uid, vals, context=None):
50 if vals.has_key('account_id'):
51 account = self.pool.get('account.account').browse(cr, uid, vals['account_id'], context=context)
52 if account.user_type.analytic_policy == 'always' and not vals.get('analytic_account_id', False):
53 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))))
54 elif account.user_type.analytic_policy == 'never' and vals.get('analytic_account_id', False):
55 cur_analytic_account = self.pool.get('account.analytic.account').read(cr, uid, vals['analytic_account_id'], ['name', 'code'], context=context)
56 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'])))
57 return True
58
59 def create(self, cr, uid, vals, context=None, check=True):
60 self.check_analytic_required(cr, uid, vals, context=context)
61 return super(account_move_line, self).create(cr, uid, vals, context=context, check=check)
62
63 def write(self, cr, uid, ids, vals, context=None, check=True, update_check=True):
64 self.check_analytic_required(cr, uid, vals, context=context)
65 return super(account_move_line, self).write(cr, uid, ids, vals, context=context, check=check, update_check=update_check)
66
67account_move_line()
068
=== added file 'account_analytic_required/account_view.xml'
--- account_analytic_required/account_view.xml 1970-01-01 00:00:00 +0000
+++ account_analytic_required/account_view.xml 2012-11-21 09:01:21 +0000
@@ -0,0 +1,24 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Account analytic required module for OpenERP
4 Copyright (C) 2011 Akretion (http://www.akretion.com). All Rights Reserved
5 @author Alexis de Lattre <alexis.delattre@akretion.com>
6 The licence is in the file __openerp__.py
7-->
8
9<openerp>
10<data>
11
12<record id="account_analytic_required_account_type_form" model="ir.ui.view">
13 <field name="name">account_analytic_required.account_type_form</field>
14 <field name="model">account.account.type</field>
15 <field name="inherit_id" ref="account.view_account_type_form" />
16 <field name="arch" type="xml">
17 <field name="code" position="after">
18 <field name="analytic_policy" />
19 </field>
20 </field>
21</record>
22
23</data>
24</openerp>
025
=== added directory 'account_analytic_required/i18n'
=== added file 'account_analytic_required/i18n/account_analytic_required.pot'
--- account_analytic_required/i18n/account_analytic_required.pot 1970-01-01 00:00:00 +0000
+++ account_analytic_required/i18n/account_analytic_required.pot 2012-11-21 09:01:21 +0000
@@ -0,0 +1,94 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_analytic_required
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.0.2\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2011-06-10 07:49+0000\n"
10"PO-Revision-Date: 2011-06-10 07:49+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: account_analytic_required
19#: field:account.account.type,analytic_policy:0
20msgid "Policy for analytic account"
21msgstr ""
22
23#. module: account_analytic_required
24#: help:account.account.type,analytic_policy:0
25msgid "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."
26msgstr ""
27
28#. module: account_analytic_required
29#: selection:account.account.type,analytic_policy:0
30msgid "Optional"
31msgstr ""
32
33#. module: account_analytic_required
34#: model:ir.module.module,description:account_analytic_required.module_meta_information
35msgid "This module adds an option \"analytic policy\" on account types. You have the choice between 3 policies : always, never and optional.\n"
36"\n"
37"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"
38"\n"
39"Module developped by Alexis de Lattre <alexis.delattre@akretion.com> during the Akretion-Camptocamp code sprint of June 2011.\n"
40""
41msgstr ""
42
43#. module: account_analytic_required
44#: constraint:account.move.line:0
45msgid "You can not create move line on closed account."
46msgstr ""
47
48#. module: account_analytic_required
49#: selection:account.account.type,analytic_policy:0
50msgid "Always"
51msgstr ""
52
53#. module: account_analytic_required
54#: selection:account.account.type,analytic_policy:0
55msgid "Never"
56msgstr ""
57
58#. module: account_analytic_required
59#: model:ir.module.module,shortdesc:account_analytic_required.module_meta_information
60msgid "Account analytic required"
61msgstr ""
62
63#. module: account_analytic_required
64#: sql_constraint:account.move.line:0
65msgid "Wrong credit or debit value in accounting entry !"
66msgstr ""
67
68#. module: account_analytic_required
69#: constraint:account.move.line:0
70msgid "You can not create move line on view account."
71msgstr ""
72
73#. module: account_analytic_required
74#: model:ir.model,name:account_analytic_required.model_account_move_line
75msgid "Journal Items"
76msgstr ""
77
78#. module: account_analytic_required
79#: model:ir.model,name:account_analytic_required.model_account_account_type
80msgid "Account Type"
81msgstr ""
82
83#. module: account_analytic_required
84#: constraint:account.move.line:0
85msgid "Company must be same for its related account and period."
86msgstr ""
87
88#. module: account_analytic_required
89#: code:addons/account_analytic_required/account.py:53
90#: code:addons/account_analytic_required/account.py:56
91#, python-format
92msgid "Error :"
93msgstr ""
94
095
=== added file 'account_analytic_required/i18n/ar.po'
--- account_analytic_required/i18n/ar.po 1970-01-01 00:00:00 +0000
+++ account_analytic_required/i18n/ar.po 2012-11-21 09:01:21 +0000
@@ -0,0 +1,120 @@
1# Arabic translation for openobject-addons
2# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
3# This file is distributed under the same license as the openobject-addons package.
4# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
5#
6msgid ""
7msgstr ""
8"Project-Id-Version: openobject-addons\n"
9"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
10"POT-Creation-Date: 2011-06-10 07:49+0000\n"
11"PO-Revision-Date: 2012-02-08 07:01+0000\n"
12"Last-Translator: husam <Unknown>\n"
13"Language-Team: Arabic <ar@li.org>\n"
14"MIME-Version: 1.0\n"
15"Content-Type: text/plain; charset=UTF-8\n"
16"Content-Transfer-Encoding: 8bit\n"
17"X-Launchpad-Export-Date: 2012-09-25 05:07+0000\n"
18"X-Generator: Launchpad (build 16019)\n"
19
20#. module: account_analytic_required
21#: field:account.account.type,analytic_policy:0
22msgid "Policy for analytic account"
23msgstr "سياسة للحسابات التحليلية"
24
25#. module: account_analytic_required
26#: help:account.account.type,analytic_policy:0
27msgid ""
28"Set the policy for analytic accounts : if you select 'Optional', the "
29"accountant is free to put an analytic account on an account move line with "
30"this type of account ; if you select 'Always', the accountant will get an "
31"error message if there is no analytic account ; if you select 'Never', the "
32"accountant will get an error message if an analytic account is present."
33msgstr ""
34"ضع سياسة للحسابات التحليلية: إذا قمت بتحديد \"الاختياري\"، فان المحاسب حر في "
35"وضع حساب تحليلي على حساب خط التحرك مع هذا النوع من الحساب، وإذا قمت بتحديد "
36"\"دائما\"، فان المحاسب سوف يحصل على رسالة خطأ إذا كان هناك لا يوجد حساب "
37"تحليلي، وإذا قمت بتحديد \"أبدا\"، فان المحاسب سوف يحصل على رسالة خطأ إذا كان "
38"هناك حساب تحليلي موجود"
39
40#. module: account_analytic_required
41#: selection:account.account.type,analytic_policy:0
42msgid "Optional"
43msgstr "إختياري"
44
45#. module: account_analytic_required
46#: model:ir.module.module,description:account_analytic_required.module_meta_information
47msgid ""
48"This module adds an option \"analytic policy\" on account types. You have "
49"the choice between 3 policies : always, never and optional.\n"
50"\n"
51"For example, if you want to have an analytic account on all your expenses, "
52"set the policy to \"always\" for the account type \"expense\" ; then, if you "
53"try to save an account move line with an account of type \"expense\" without "
54"analytic account, you will get an error message.\n"
55"\n"
56"Module developped by Alexis de Lattre <alexis.delattre@akretion.com> during "
57"the Akretion-Camptocamp code sprint of June 2011.\n"
58msgstr ""
59"هذه الوحدة تضيف خيار \"السياسة التحليلية\" على أنواع الحسابات. لديك خيار بين "
60"3 سياسات: دائما، أبدا، واختياري.\n"
61"\n"
62"على سبيل المثال، إذا كنت تريد أن يكون لديك حساب تحليلي عن جميع النفقات "
63"الخاصة بك، اختار النهج \"دائما\" من أجل نوع الحساب\"مصروف\"، ثم، إذا حاولت "
64"حفظ الحركة في حساب مع حساب \"مصروف\" من دون حساب تحليلي، وسوف تحصل على "
65"رسالة خطأ.\n"
66"\n"
67"طورت الوحدة بواسطة اتر أليكسيس دي alexis.delattre@akretion.com> Akretion-"
68"Camptocamp من يونيو 2011\n"
69
70#. module: account_analytic_required
71#: constraint:account.move.line:0
72msgid "You can not create move line on closed account."
73msgstr "لا يمكنك انشاء حركة على الحساب"
74
75#. module: account_analytic_required
76#: selection:account.account.type,analytic_policy:0
77msgid "Always"
78msgstr "دائماً"
79
80#. module: account_analytic_required
81#: selection:account.account.type,analytic_policy:0
82msgid "Never"
83msgstr "أبدًا"
84
85#. module: account_analytic_required
86#: model:ir.module.module,shortdesc:account_analytic_required.module_meta_information
87msgid "Account analytic required"
88msgstr "مطلوب حساب تحليلي"
89
90#. module: account_analytic_required
91#: sql_constraint:account.move.line:0
92msgid "Wrong credit or debit value in accounting entry !"
93msgstr "قيمة دائنة أو مدينة خاطئة في القيد المحاسبي !"
94
95#. module: account_analytic_required
96#: constraint:account.move.line:0
97msgid "You can not create move line on view account."
98msgstr "لا يمكنك عمل حركة على هذا الحساب"
99
100#. module: account_analytic_required
101#: model:ir.model,name:account_analytic_required.model_account_move_line
102msgid "Journal Items"
103msgstr "عناصر دفتر اليومية"
104
105#. module: account_analytic_required
106#: model:ir.model,name:account_analytic_required.model_account_account_type
107msgid "Account Type"
108msgstr "نوع الحساب"
109
110#. module: account_analytic_required
111#: constraint:account.move.line:0
112msgid "Company must be same for its related account and period."
113msgstr "يجب ان تكون الشركة نفس فترتها وحسابها المتعلق بها."
114
115#. module: account_analytic_required
116#: code:addons/account_analytic_required/account.py:53
117#: code:addons/account_analytic_required/account.py:56
118#, python-format
119msgid "Error :"
120msgstr "خطأ :"
0121
=== added file 'account_analytic_required/i18n/ca.po'
--- account_analytic_required/i18n/ca.po 1970-01-01 00:00:00 +0000
+++ account_analytic_required/i18n/ca.po 2012-11-21 09:01:21 +0000
@@ -0,0 +1,120 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_analytic_required
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.0.2\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2011-06-10 07:49+0000\n"
10"PO-Revision-Date: 2011-06-24 10:26+0000\n"
11"Last-Translator: jmartin (Zikzakmedia) <jmartin@zikzakmedia.com>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: 8bit\n"
16"X-Launchpad-Export-Date: 2012-09-25 05:07+0000\n"
17"X-Generator: Launchpad (build 16019)\n"
18
19#. module: account_analytic_required
20#: field:account.account.type,analytic_policy:0
21msgid "Policy for analytic account"
22msgstr "Política per als comptes analítics"
23
24#. module: account_analytic_required
25#: help:account.account.type,analytic_policy:0
26msgid ""
27"Set the policy for analytic accounts : if you select 'Optional', the "
28"accountant is free to put an analytic account on an account move line with "
29"this type of account ; if you select 'Always', the accountant will get an "
30"error message if there is no analytic account ; if you select 'Never', the "
31"accountant will get an error message if an analytic account is present."
32msgstr ""
33"Configura la política per als comptes analítics: Si seleccioneu 'Opcional', "
34"el comptable és lliure de posar un compte analític en un apunt comptable amb "
35"aquest tipus de compte; si seleccioneu 'Sempre', el comptable rebrà un "
36"missatge d'error si l'apunt no té compte analític; si seleccioneu 'Mai', el "
37"comptable rebrà un missatge d'error si l'apunt té un compte analític."
38
39#. module: account_analytic_required
40#: selection:account.account.type,analytic_policy:0
41msgid "Optional"
42msgstr "Opcional"
43
44#. module: account_analytic_required
45#: model:ir.module.module,description:account_analytic_required.module_meta_information
46msgid ""
47"This module adds an option \"analytic policy\" on account types. You have "
48"the choice between 3 policies : always, never and optional.\n"
49"\n"
50"For example, if you want to have an analytic account on all your expenses, "
51"set the policy to \"always\" for the account type \"expense\" ; then, if you "
52"try to save an account move line with an account of type \"expense\" without "
53"analytic account, you will get an error message.\n"
54"\n"
55"Module developped by Alexis de Lattre <alexis.delattre@akretion.com> during "
56"the Akretion-Camptocamp code sprint of June 2011.\n"
57msgstr ""
58"Aquest mòdul afegeix una opció \"política analítica\" als tipus comptables. "
59"Podeu escollir entre 3 polítiques: 'Sempre', 'Mai' i 'Opcional'.\n"
60"\n"
61"Per exemple, si voleu tenir un compte analític de totes les vostres "
62"despeses, seleccioneu la política \"Sempre\" per al tipus comptable "
63"\"Despesa\"; llavors, si intenteu desar un apunt comptable de tipus "
64"comptable \"Despesa\" sense compte analític, obtindreu un missatge d'error.\n"
65"\n"
66"Mòdul desenvolupat per Alexis de Lattre <alexis.delattre@akretion.com> "
67"durant la cursa de codi Akretion-Camptocamp de juny de 2011.\n"
68
69#. module: account_analytic_required
70#: constraint:account.move.line:0
71msgid "You can not create move line on closed account."
72msgstr "No podeu crear un apunt en un compte tancat."
73
74#. module: account_analytic_required
75#: selection:account.account.type,analytic_policy:0
76msgid "Always"
77msgstr "Sempre"
78
79#. module: account_analytic_required
80#: selection:account.account.type,analytic_policy:0
81msgid "Never"
82msgstr "Mai"
83
84#. module: account_analytic_required
85#: model:ir.module.module,shortdesc:account_analytic_required.module_meta_information
86msgid "Account analytic required"
87msgstr "El compte analític és requerit."
88
89#. module: account_analytic_required
90#: sql_constraint:account.move.line:0
91msgid "Wrong credit or debit value in accounting entry !"
92msgstr "Valor erroni al deure o a l'haver de l'assentament comptable!"
93
94#. module: account_analytic_required
95#: constraint:account.move.line:0
96msgid "You can not create move line on view account."
97msgstr "No podeu crear un apunt en un compte de tipus \"Vista\"."
98
99#. module: account_analytic_required
100#: model:ir.model,name:account_analytic_required.model_account_move_line
101msgid "Journal Items"
102msgstr "Apunts comptables"
103
104#. module: account_analytic_required
105#: model:ir.model,name:account_analytic_required.model_account_account_type
106msgid "Account Type"
107msgstr "Tipus de compte"
108
109#. module: account_analytic_required
110#: constraint:account.move.line:0
111msgid "Company must be same for its related account and period."
112msgstr ""
113"La companyia ha de ser la mateixa que la dels comptes i períodes relacionats."
114
115#. module: account_analytic_required
116#: code:addons/account_analytic_required/account.py:53
117#: code:addons/account_analytic_required/account.py:56
118#, python-format
119msgid "Error :"
120msgstr "Error:"
0121
=== added file 'account_analytic_required/i18n/es.po'
--- account_analytic_required/i18n/es.po 1970-01-01 00:00:00 +0000
+++ account_analytic_required/i18n/es.po 2012-11-21 09:01:21 +0000
@@ -0,0 +1,122 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_analytic_required
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.0.2\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2011-06-10 07:49+0000\n"
10"PO-Revision-Date: 2011-06-24 10:25+0000\n"
11"Last-Translator: jmartin (Zikzakmedia) <jmartin@zikzakmedia.com>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: 8bit\n"
16"X-Launchpad-Export-Date: 2012-09-25 05:07+0000\n"
17"X-Generator: Launchpad (build 16019)\n"
18
19#. module: account_analytic_required
20#: field:account.account.type,analytic_policy:0
21msgid "Policy for analytic account"
22msgstr "Política para las cuentas analíticas"
23
24#. module: account_analytic_required
25#: help:account.account.type,analytic_policy:0
26msgid ""
27"Set the policy for analytic accounts : if you select 'Optional', the "
28"accountant is free to put an analytic account on an account move line with "
29"this type of account ; if you select 'Always', the accountant will get an "
30"error message if there is no analytic account ; if you select 'Never', the "
31"accountant will get an error message if an analytic account is present."
32msgstr ""
33"Configura la política para las cuentas analíticas: Si selecciona 'Opcional', "
34"el contable es libre de poner una cuenta analítica en un apunte contable de "
35"este tipo de cuenta; si selecciona 'Siempre', el contable recibirá un "
36"mensaje de error si el apunte no tiene cuenta analítica; si selecciona "
37"'Nunca', el contable recibirá un mensaje de error si el apunte tiene una "
38"cuenta analítica."
39
40#. module: account_analytic_required
41#: selection:account.account.type,analytic_policy:0
42msgid "Optional"
43msgstr "Opcional"
44
45#. module: account_analytic_required
46#: model:ir.module.module,description:account_analytic_required.module_meta_information
47msgid ""
48"This module adds an option \"analytic policy\" on account types. You have "
49"the choice between 3 policies : always, never and optional.\n"
50"\n"
51"For example, if you want to have an analytic account on all your expenses, "
52"set the policy to \"always\" for the account type \"expense\" ; then, if you "
53"try to save an account move line with an account of type \"expense\" without "
54"analytic account, you will get an error message.\n"
55"\n"
56"Module developped by Alexis de Lattre <alexis.delattre@akretion.com> during "
57"the Akretion-Camptocamp code sprint of June 2011.\n"
58msgstr ""
59"Este módulo añade una opción \"política analítica\" a los tipos contables. "
60"Puede escoger entre 3 políticas: 'Siempre', 'Nunca' y 'Opcional'.\n"
61"\n"
62"Por ejemplo, si quiere tener una cuenta analítica de todos sus gastos, "
63"seleccione la política \"Siempre\" para el tipo contable \"Gasto\"; "
64"entonces, si intenta guardar un apunte contable de tipo contable \"Gasto\" "
65"sin cuenta analítica, obtendrá un mensaje de error.\n"
66"\n"
67"Módulo desarrollado por Alexis de Lattre <alexis.delattre@akretion.com> "
68"durante la carrera de código Akretion-Camptocamp de junio de 2011.\n"
69
70#. module: account_analytic_required
71#: constraint:account.move.line:0
72msgid "You can not create move line on closed account."
73msgstr "No puede crear un apunte en una cuenta cerrada."
74
75#. module: account_analytic_required
76#: selection:account.account.type,analytic_policy:0
77msgid "Always"
78msgstr "Siempre"
79
80#. module: account_analytic_required
81#: selection:account.account.type,analytic_policy:0
82msgid "Never"
83msgstr "Nunca"
84
85#. module: account_analytic_required
86#: model:ir.module.module,shortdesc:account_analytic_required.module_meta_information
87msgid "Account analytic required"
88msgstr "La cuenta analítica es requerida."
89
90#. module: account_analytic_required
91#: sql_constraint:account.move.line:0
92msgid "Wrong credit or debit value in accounting entry !"
93msgstr "¡Valor erróneo en el debe o en el haber del asiento contable!"
94
95#. module: account_analytic_required
96#: constraint:account.move.line:0
97msgid "You can not create move line on view account."
98msgstr "No puede crear un apunte en una cuenta de tipo \"Vista\"."
99
100#. module: account_analytic_required
101#: model:ir.model,name:account_analytic_required.model_account_move_line
102msgid "Journal Items"
103msgstr "Apuntes contables"
104
105#. module: account_analytic_required
106#: model:ir.model,name:account_analytic_required.model_account_account_type
107msgid "Account Type"
108msgstr "Tipo de cuenta"
109
110#. module: account_analytic_required
111#: constraint:account.move.line:0
112msgid "Company must be same for its related account and period."
113msgstr ""
114"La compañía debe ser la misma que la de las cuentas y los periodos "
115"relacionados."
116
117#. module: account_analytic_required
118#: code:addons/account_analytic_required/account.py:53
119#: code:addons/account_analytic_required/account.py:56
120#, python-format
121msgid "Error :"
122msgstr "Error:"
0123
=== added file 'account_analytic_required/i18n/fr.po'
--- account_analytic_required/i18n/fr.po 1970-01-01 00:00:00 +0000
+++ account_analytic_required/i18n/fr.po 2012-11-21 09:01:21 +0000
@@ -0,0 +1,121 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_analytic_required
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.0.2\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2011-06-10 07:49+0000\n"
10"PO-Revision-Date: 2011-06-14 15:19+0000\n"
11"Last-Translator: Alexis de Lattre <alexis@via.ecp.fr>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: 8bit\n"
16"X-Launchpad-Export-Date: 2012-09-25 05:07+0000\n"
17"X-Generator: Launchpad (build 16019)\n"
18
19#. module: account_analytic_required
20#: field:account.account.type,analytic_policy:0
21msgid "Policy for analytic account"
22msgstr "Politique pour les comptes analytiques"
23
24#. module: account_analytic_required
25#: help:account.account.type,analytic_policy:0
26msgid ""
27"Set the policy for analytic accounts : if you select 'Optional', the "
28"accountant is free to put an analytic account on an account move line with "
29"this type of account ; if you select 'Always', the accountant will get an "
30"error message if there is no analytic account ; if you select 'Never', the "
31"accountant will get an error message if an analytic account is present."
32msgstr ""
33"Configurez la politique pour les comptes analytiques : si vous sélectionnez "
34"'Optionnel', le comptable est libre de saisir ou non un compte analytique "
35"sur une ligne comptable avec ce type de compte de comptabilité générale ; si "
36"vous sélectionnez 'Toujours', le comptable aura un message d'erreur si il "
37"n'y a pas de compte analytique ; si vous sélectionnez 'Jamais', le comptable "
38"aura un message d'erreur si un compte analytique est présent."
39
40#. module: account_analytic_required
41#: selection:account.account.type,analytic_policy:0
42msgid "Optional"
43msgstr "Optionnel"
44
45#. module: account_analytic_required
46#: model:ir.module.module,description:account_analytic_required.module_meta_information
47msgid ""
48"This module adds an option \"analytic policy\" on account types. You have "
49"the choice between 3 policies : always, never and optional.\n"
50"\n"
51"For example, if you want to have an analytic account on all your expenses, "
52"set the policy to \"always\" for the account type \"expense\" ; then, if you "
53"try to save an account move line with an account of type \"expense\" without "
54"analytic account, you will get an error message.\n"
55"\n"
56"Module developped by Alexis de Lattre <alexis.delattre@akretion.com> during "
57"the Akretion-Camptocamp code sprint of June 2011.\n"
58msgstr ""
59"This module adds an option \"analytic policy\" on account types. You have "
60"the choice between 3 policies : always, never and optional.\n"
61"\n"
62"For example, if you want to have an analytic account on all your expenses, "
63"set the policy to \"always\" for the account type \"expense\" ; then, if you "
64"try to save an account move line with an account of type \"expense\" without "
65"analytic account, you will get an error message.\n"
66"\n"
67"Module developped by Alexis de Lattre <alexis.delattre@akretion.com> during "
68"the Akretion-Camptocamp code sprint of June 2011.\n"
69
70#. module: account_analytic_required
71#: constraint:account.move.line:0
72msgid "You can not create move line on closed account."
73msgstr "Impossible de créer une ligne d'écriture sur un compte clôturé"
74
75#. module: account_analytic_required
76#: selection:account.account.type,analytic_policy:0
77msgid "Always"
78msgstr "Toujours"
79
80#. module: account_analytic_required
81#: selection:account.account.type,analytic_policy:0
82msgid "Never"
83msgstr "Jamais"
84
85#. module: account_analytic_required
86#: model:ir.module.module,shortdesc:account_analytic_required.module_meta_information
87msgid "Account analytic required"
88msgstr "Account analytic required"
89
90#. module: account_analytic_required
91#: sql_constraint:account.move.line:0
92msgid "Wrong credit or debit value in accounting entry !"
93msgstr "Valeur erronée au crédit ou au débit de la pièce comptable !"
94
95#. module: account_analytic_required
96#: constraint:account.move.line:0
97msgid "You can not create move line on view account."
98msgstr ""
99"Vous ne pouvez pas créer de ligne d'écriture sur un compte de type \"Vue\"."
100
101#. module: account_analytic_required
102#: model:ir.model,name:account_analytic_required.model_account_move_line
103msgid "Journal Items"
104msgstr "Écritures comptables"
105
106#. module: account_analytic_required
107#: model:ir.model,name:account_analytic_required.model_account_account_type
108msgid "Account Type"
109msgstr "Type de compte"
110
111#. module: account_analytic_required
112#: constraint:account.move.line:0
113msgid "Company must be same for its related account and period."
114msgstr "La société doit être la même pour les comptes et périodes liées."
115
116#. module: account_analytic_required
117#: code:addons/account_analytic_required/account.py:53
118#: code:addons/account_analytic_required/account.py:56
119#, python-format
120msgid "Error :"
121msgstr "Erreur :"

Subscribers

People subscribed via source and target branches

to status/vote changes: