summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2008-11-04 22:12:38 +0200
committerP. Christeas <p_christ@hol.gr>2008-11-04 22:12:38 +0200
commit8220e0ad02c27bbcdae91a0a04aa7e0d1cf72cef (patch)
treead40bb98b0fb987e07a4a48647d60509ad107a6d
parent97e946c466d1dce6cb62c52ac627a2be0721cd63 (diff)
parent1f1556ffba922823a7771ac41c1d7f3fdbaf4a29 (diff)
Merge commit 'origin/master' into mdv-gpl3
Conflicts: bin/tools/convert.py bzr revid: p_christ@hol.gr-20081025224421-g367ati5b2eeplw6 bzr revid: p_christ@hol.gr-20081104201238-oy0vgsunt2jxgu2p
-rw-r--r--bin/PKG-INFO6
-rw-r--r--bin/__init__.py37
-rw-r--r--bin/addons/__init__.py49
-rw-r--r--bin/addons/base/__init__.py34
-rw-r--r--bin/addons/base/__terp__.py36
-rw-r--r--bin/addons/base/base_update.xml8
-rw-r--r--bin/addons/base/i18n/fr_FR.po1512
-rw-r--r--bin/addons/base/ir/__init__.py34
-rw-r--r--bin/addons/base/ir/ir.xml29
-rw-r--r--bin/addons/base/ir/ir_actions.py50
-rw-r--r--bin/addons/base/ir/ir_attachment.py107
-rw-r--r--bin/addons/base/ir/ir_board.py34
-rw-r--r--bin/addons/base/ir/ir_cron.py44
-rw-r--r--bin/addons/base/ir/ir_default.py37
-rw-r--r--bin/addons/base/ir/ir_exports.py34
-rw-r--r--bin/addons/base/ir/ir_fields_description.py34
-rw-r--r--bin/addons/base/ir/ir_model.py121
-rw-r--r--bin/addons/base/ir/ir_report_custom.py34
-rw-r--r--bin/addons/base/ir/ir_rule.py34
-rw-r--r--bin/addons/base/ir/ir_sequence.py34
-rw-r--r--bin/addons/base/ir/ir_translation.py36
-rw-r--r--bin/addons/base/ir/ir_ui_menu.py58
-rw-r--r--bin/addons/base/ir/ir_ui_view.py34
-rw-r--r--bin/addons/base/ir/ir_values.py45
-rw-r--r--bin/addons/base/ir/wizard/__init__.py34
-rw-r--r--bin/addons/base/ir/wizard/create_action.py44
-rw-r--r--bin/addons/base/ir/wizard/wizard_menu.py34
-rw-r--r--bin/addons/base/ir/workflow/__init__.py35
-rw-r--r--bin/addons/base/ir/workflow/print_instance.py34
-rw-r--r--bin/addons/base/ir/workflow/workflow.py42
-rw-r--r--bin/addons/base/ir/workflow/workflow_view.xml20
-rw-r--r--bin/addons/base/module/__init__.py34
-rw-r--r--bin/addons/base/module/module.py114
-rw-r--r--bin/addons/base/module/module_view.xml30
-rw-r--r--bin/addons/base/module/report/__init__.py34
-rw-r--r--bin/addons/base/module/report/ir_module_reference.rml4
-rw-r--r--bin/addons/base/module/report/ir_module_reference_print.py34
-rw-r--r--bin/addons/base/module/wizard/__init__.py34
-rw-r--r--bin/addons/base/module/wizard/add_new.py34
-rw-r--r--bin/addons/base/module/wizard/wizard_export_lang.py34
-rw-r--r--bin/addons/base/module/wizard/wizard_import_lang.py34
-rw-r--r--bin/addons/base/module/wizard/wizard_module_import.py34
-rw-r--r--bin/addons/base/module/wizard/wizard_module_lang_install.py36
-rw-r--r--bin/addons/base/module/wizard/wizard_module_upgrade.py53
-rw-r--r--bin/addons/base/module/wizard/wizard_update_module.py34
-rw-r--r--bin/addons/base/module/wizard/wizard_update_translations.py34
-rw-r--r--bin/addons/base/res/__init__.py34
-rw-r--r--bin/addons/base/res/bank.py40
-rw-r--r--bin/addons/base/res/country.py35
-rw-r--r--bin/addons/base/res/ir_property.py34
-rw-r--r--bin/addons/base/res/partner/__init__.py34
-rw-r--r--bin/addons/base/res/partner/crm.py34
-rw-r--r--bin/addons/base/res/partner/partner.py49
-rw-r--r--bin/addons/base/res/partner/partner_view.xml21
-rw-r--r--bin/addons/base/res/partner/report/__init__.py34
-rw-r--r--bin/addons/base/res/partner/wizard/__init__.py34
-rw-r--r--bin/addons/base/res/partner/wizard/wizard_clear_ids.py34
-rw-r--r--bin/addons/base/res/partner/wizard/wizard_ean_check.py34
-rw-r--r--bin/addons/base/res/partner/wizard/wizard_sms.py34
-rw-r--r--bin/addons/base/res/partner/wizard/wizard_spam.py36
-rw-r--r--bin/addons/base/res/res_company.py36
-rw-r--r--bin/addons/base/res/res_currency.py52
-rw-r--r--bin/addons/base/res/res_lang.py34
-rw-r--r--bin/addons/base/res/res_request.py34
-rw-r--r--bin/addons/base/res/res_security.xml10
-rw-r--r--bin/addons/base/res/res_user.py36
-rw-r--r--bin/addons/base/security/base_security.xml19
-rw-r--r--bin/addons/base/security/ir.model.access.csv80
-rwxr-xr-xbin/addons/module_graph.py34
-rw-r--r--bin/gpl.txt952
-rw-r--r--bin/ir/__init__.py35
-rw-r--r--bin/ir/ir.py35
-rw-r--r--bin/netsvc.py56
-rw-r--r--[-rwxr-xr-x]bin/openerp-server.py35
-rw-r--r--bin/osv/__init__.py35
-rw-r--r--bin/osv/expression.py24
-rw-r--r--bin/osv/fields.py48
-rw-r--r--bin/osv/orm.py164
-rw-r--r--bin/osv/osv.py39
-rw-r--r--bin/pooler.py35
-rw-r--r--bin/release.py39
-rw-r--r--bin/report/__init__.py35
-rw-r--r--bin/report/common.py34
-rw-r--r--bin/report/custom.py34
-rw-r--r--bin/report/int_to_text.py34
-rw-r--r--bin/report/interface.py34
-rw-r--r--bin/report/misc.py35
-rw-r--r--bin/report/print_fnc.py40
-rw-r--r--bin/report/print_xml.py34
-rw-r--r--bin/report/printscreen/__init__.py34
-rw-r--r--bin/report/printscreen/ps_form.py34
-rw-r--r--bin/report/printscreen/ps_list.py34
-rw-r--r--bin/report/render/__init__.py34
-rw-r--r--bin/report/render/render.py34
-rw-r--r--bin/report/render/rml.py34
-rw-r--r--bin/report/render/rml2html/__init__.py51
-rw-r--r--bin/report/render/rml2html/rml2html.py36
-rw-r--r--bin/report/render/rml2html/utils.py51
-rw-r--r--bin/report/render/rml2pdf/__init__.py40
-rw-r--r--bin/report/render/rml2pdf/color.py51
-rw-r--r--bin/report/render/rml2pdf/trml2pdf.py42
-rw-r--r--bin/report/render/rml2pdf/utils.py34
-rw-r--r--bin/report/render/simple.py34
-rw-r--r--bin/report/report_sxw.py34
-rw-r--r--bin/service/__init__.py35
-rw-r--r--bin/service/security.py35
-rw-r--r--bin/service/web_services.py35
-rw-r--r--bin/sql_db.py35
-rw-r--r--bin/ssl/SecureXMLRPCServer.py35
-rw-r--r--bin/ssl/__init__.py35
-rw-r--r--bin/tiny_socket.py35
-rw-r--r--bin/tools/__init__.py37
-rw-r--r--bin/tools/amount_to_text.py35
-rwxr-xr-xbin/tools/amount_to_text_en.py35
-rw-r--r--bin/tools/config.py43
-rw-r--r--bin/tools/convert.py76
-rw-r--r--bin/tools/graph.py35
-rw-r--r--bin/tools/import_email.py35
-rw-r--r--bin/tools/misc.py61
-rw-r--r--bin/tools/translate.py47
-rw-r--r--bin/tools/upgrade.py35
-rw-r--r--bin/wizard/__init__.py35
-rw-r--r--bin/workflow/__init__.py35
-rw-r--r--bin/workflow/common.py32
-rw-r--r--bin/workflow/instance.py35
-rw-r--r--bin/workflow/wkf_expr.py39
-rw-r--r--bin/workflow/wkf_logs.py35
-rw-r--r--bin/workflow/wkf_service.py35
-rw-r--r--bin/workflow/workitem.py35
-rw-r--r--doc/COPYING910
-rwxr-xr-xdoc/License.rtf470
-rw-r--r--doc/tests/check_profile_l10n_all.py34
-rw-r--r--openerp-server-installer.nsi391
-rw-r--r--pixmaps/openerp-header.bmpbin25818 -> 19038 bytes
-rw-r--r--pixmaps/openerp-header.pngbin0 -> 12843 bytes
-rw-r--r--pixmaps/openerp-icon.icobin0 -> 2238 bytes
-rw-r--r--pixmaps/openerp-intro.bmpbin154542 -> 154542 bytes
-rw-r--r--pixmaps/openerp-slogan.bmpbin0 -> 142054 bytes
-rw-r--r--pixmaps/openerp.icobin4286 -> 4286 bytes
-rw-r--r--pixmaps/openerp.pngbin0 -> 14108 bytes
-rw-r--r--[-rwxr-xr-x]setup.py42
-rw-r--r--win32/OpenERPServerService.py57
-rw-r--r--win32/setup.py49
143 files changed, 4759 insertions, 4636 deletions
diff --git a/bin/PKG-INFO b/bin/PKG-INFO
index c74326a1493..cbfada25140 100644
--- a/bin/PKG-INFO
+++ b/bin/PKG-INFO
@@ -1,14 +1,14 @@
Metadata-Version: 1.1
Name: OpenERP
-Version: 4.3.99
+Version: 5.0.0-alpha
Author: Tiny.be
Author-email: fp at tiny be
Maintainer: Tiny.be
Maintainer-email: fp at tiny be
-Home-page: http://tiny.be
+Home-page: http://openerp.com
Download-url: http://openerp.com/downloads.html
Summary: OpenERP is an Enterprise Resource Management written entirely in python.
-License: GPL
+License: GPL-3
Description: OpenERP is a complete ERP and CRM. The main features are accounting (analytic
and financial), stock management, sales and purchases management, tasks
automation, marketing campaigns, help desk, POS, etc. Technical features include
diff --git a/bin/__init__.py b/bin/__init__.py
index 664926ad2a9..bbe6752ce14 100644
--- a/bin/__init__.py
+++ b/bin/__init__.py
@@ -1,33 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-#
-###############################################################################
+##############################################################################
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py
index 01441910488..49a254758c8 100644
--- a/bin/addons/__init__.py
+++ b/bin/addons/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be)
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contact a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -142,6 +134,8 @@ def get_module_path(module):
if os.path.exists(opj(_ad, module)) or os.path.exists(opj(_ad, '%s.zip' % module)):
return opj(_ad, module)
+ logger.notifyChannel('init', netsvc.LOG_WARNING, 'addon:%s:module not found' % (module,))
+ return False
raise IOError, 'Module not found : %s' % module
def get_module_resource(module, *args):
@@ -152,7 +146,8 @@ def get_module_resource(module, *args):
@return: absolute path to the resource
"""
- return opj(get_module_path(module), *args)
+ a = get_module_path(module)
+ return a and opj(a, *args) or False
def get_modules():
"""Returns the list of module names
@@ -175,9 +170,12 @@ def create_graph(module_list, force=None):
module = module[:-4]
try:
mod_path = get_module_path(module)
+ if not mod_path:
+ continue
except IOError:
continue
terp_file = get_module_resource(module, '__terp__.py')
+ if not terp_file: continue
if os.path.isfile(terp_file) or zipfile.is_zipfile(mod_path):
try:
info = eval(tools.file_open(terp_file).read())
@@ -282,9 +280,10 @@ def load_module_graph(cr, graph, status=None, **kwargs):
# Update translations for all installed languages
modobj = pool.get('ir.module.module')
- modobj.update_translations(cr, 1, [mid], None)
-
- cr.commit()
+ if modobj:
+ modobj.update_translations(cr, 1, [mid], None)
+ cr.commit()
+
statusi+=1
cr.execute("""select model,name from ir_model where id not in (select model_id from ir_model_access)""")
diff --git a/bin/addons/base/__init__.py b/bin/addons/base/__init__.py
index daf086338b0..777f0f5a371 100644
--- a/bin/addons/base/__init__.py
+++ b/bin/addons/base/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/__terp__.py b/bin/addons/base/__terp__.py
index d90d56a3a72..f3497ebe010 100644
--- a/bin/addons/base/__terp__.py
+++ b/bin/addons/base/__terp__.py
@@ -1,32 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
-# Copyright (c) 2008 Camptocamp SA
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
{
"name" : "Base",
"version" : "1.0",
diff --git a/bin/addons/base/base_update.xml b/bin/addons/base/base_update.xml
index 94e37dfd8cb..a8b8e269919 100644
--- a/bin/addons/base/base_update.xml
+++ b/bin/addons/base/base_update.xml
@@ -78,8 +78,8 @@
<form string="Users">
<field name="password" password="True"/>
<label colspan="4" string="Please note that you will have to logout and relog if you change your password."/>
- <field name="context_lang"/>
- <field name="context_tz"/>
+ <field name="context_lang" completion="1"/>
+ <field name="context_tz" completion="1"/>
<newline/>
<field colspan="4" name="signature"/>
</form>
@@ -198,15 +198,17 @@
<field colspan="4" name="signature"/>
</page>
<page string="Groups">
+ <label string="Groups are used to defined access rights on each screen and menu." align="0.0" colspan="4"/>
<field colspan="4" nolabel="1" name="groups_id"/>
</page>
<page string="Roles">
+ <label string="Roles are used to defined available actions, provided by workflows." align="0.0" colspan="4"/>
<field colspan="4" nolabel="1" name="roles_id"/>
</page>
</notebook>
<label string="" colspan="2"/>
<group col="2" colspan="2">
- <button icon='gtk-cancel' special="cancel" name="action_next" type='object' string='Close'/>
+ <button icon='gtk-cancel' special="cancel" name="action_next" type='object' string='Skip'/>
<button name='action_new' icon='gtk-ok' type='object' string='Add User'/>
</group>
</form>
diff --git a/bin/addons/base/i18n/fr_FR.po b/bin/addons/base/i18n/fr_FR.po
index 36acda3d011..4b3419d31c7 100644
--- a/bin/addons/base/i18n/fr_FR.po
+++ b/bin/addons/base/i18n/fr_FR.po
@@ -4,16 +4,16 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:41:42+0000"
-"PO-Revision-Date: 2008-09-11 15:41:42+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
+"Project-Id-Version: OpenERP Server 4.3.99\n"
+"Report-Msgid-Bugs-To: support@openerp.com\n"
+"POT-Creation-Date: 2008-11-02 20:23:25+0000\n"
+"PO-Revision-Date: 2008-11-02 20:23:25+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
#. module: base
#: model:ir.actions.act_window,name:base.ir_cron_act
@@ -43,14 +43,9 @@ msgid "Unknown"
msgstr "Inconnu"
#. module: base
-#: field:ir.model.fields,relate:0
-msgid "Click and Relate"
-msgstr "Cliquer et relier"
-
-#. module: base
#: view:wizard.module.update_translations:0
msgid "This wizard will detect new terms in the application so that you can update them manually."
-msgstr ""
+msgstr "Cet assistant détectera les nouveaux termes "
#. module: base
#: field:workflow.activity,out_transitions:0
@@ -66,12 +61,12 @@ msgstr ""
#. module: base
#: model:ir.actions.act_window,name:base.action_res_users_my
msgid "Change My Preferences"
-msgstr ""
+msgstr "Changer mes préférences"
#. module: base
#: field:res.partner.function,name:0
msgid "Function name"
-msgstr "Nom"
+msgstr "Nom de la Fonction"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -93,13 +88,13 @@ msgstr "Message SMS"
#. module: base
#: field:ir.actions.server,otype:0
msgid "Create Model"
-msgstr ""
+msgstr "Créer un modèle"
#. module: base
#: model:ir.actions.act_window,name:base.res_partner_som-act
#: model:ir.ui.menu,name:base.menu_res_partner_som-act
msgid "States of mind"
-msgstr "Etat d'esprit"
+msgstr "État d'esprit"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -110,7 +105,7 @@ msgstr ""
#: view:res.groups:0
#: view:ir.model:0
msgid "Access Rules"
-msgstr ""
+msgstr "Règles d'accès"
#. module: base
#: field:ir.ui.view,arch:0
@@ -124,7 +119,7 @@ msgid "STOCK_MEDIA_FORWARD"
msgstr ""
#. module: base
-#: selection:ir.module.module.configuration.step,state:0
+#: selection:ir.actions.todo,state:0
msgid "Skipped"
msgstr ""
@@ -132,12 +127,12 @@ msgstr ""
#, python-format
#: code:addons/base/ir/ir_model.py:0
msgid "You can not create this kind of document! (%s)"
-msgstr ""
+msgstr "Vous ne pouvez pas créer ce type de document! (%s)"
#. module: base
#: wizard_field:module.lang.import,init,code:0
msgid "Code (eg:en__US)"
-msgstr "Code (ex:en__US)"
+msgstr "Code (ex:fr_FR)"
#. module: base
#: field:res.roles,parent_id:0
@@ -149,13 +144,14 @@ msgstr "Rôle Parent"
#: field:workflow.instance,wkf_id:0
#: view:workflow:0
msgid "Workflow"
-msgstr "Workflow"
+msgstr "Diagramme de flux"
#. module: base
#: field:ir.actions.report.custom,model:0
#: field:ir.actions.report.xml,model:0
#: field:ir.actions.server,model_id:0
#: field:ir.actions.act_window,res_model:0
+#: field:ir.actions.wizard,model:0
#: field:ir.cron,model:0
#: field:ir.default,field_tbl:0
#: field:ir.model.access,model_id:0
@@ -171,7 +167,7 @@ msgstr "Workflow"
#: field:workflow.triggers,model:0
#: view:ir.model:0
msgid "Object"
-msgstr ""
+msgstr "Objet"
#. module: base
#: view:wizard.module.lang.export:0
@@ -185,17 +181,12 @@ msgid "Categories of Modules"
msgstr "Catégories de modules"
#. module: base
-#: view:res.users:0
-msgid "Add New User"
-msgstr ""
-
-#. module: base
#: model:ir.model,name:base.model_ir_default
msgid "ir.default"
-msgstr "Défaut"
+msgstr ""
#. module: base
-#: selection:ir.module.module.configuration.step,state:0
+#: selection:ir.actions.todo,state:0
msgid "Not Started"
msgstr ""
@@ -217,12 +208,12 @@ msgstr ""
#. module: base
#: field:ir.model.config,password_check:0
msgid "confirmation"
-msgstr ""
+msgstr "confirmation"
#. module: base
#: view:wizard.module.lang.export:0
msgid "Export translation file"
-msgstr ""
+msgstr "Exporter le fichier de traduction"
#. module: base
#: field:res.partner.event.type,key:0
@@ -230,15 +221,19 @@ msgid "Key"
msgstr "Clé"
#. module: base
-#: field:ir.exports.line,export_id:0
-msgid "Exportation"
-msgstr "Exportation"
+#: model:ir.actions.act_window,name:base.action_res_roles_form
+#: field:res.users,roles_id:0
+#: model:ir.ui.menu,name:base.menu_action_res_roles_form
+#: view:res.roles:0
+#: view:res.users:0
+msgid "Roles"
+msgstr "Rôles"
#. module: base
#: model:ir.actions.act_window,name:base.action_country
#: model:ir.ui.menu,name:base.menu_country_partner
msgid "Countries"
-msgstr ""
+msgstr "Pays"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -246,6 +241,16 @@ msgid "STOCK_HELP"
msgstr ""
#. module: base
+#: selection:ir.report.custom.fields,operation:0
+msgid "Get Max"
+msgstr "Avoir le Max"
+
+#. module: base
+#: view:ir.module.module:0
+msgid "Created Views"
+msgstr ""
+
+#. module: base
#: selection:res.request,priority:0
msgid "Normal"
msgstr "Normale"
@@ -267,18 +272,17 @@ msgid "Import new language"
msgstr "Importer une nouvelle langue"
#. module: base
+#: wizard_field:server.action.create,step_1,report:0
+#: wizard_view:server.action.create,step_1:0
+msgid "Select Report"
+msgstr ""
+
+#. module: base
#: field:ir.report.custom.fields,fc1_condition:0
#: field:ir.report.custom.fields,fc2_condition:0
#: field:ir.report.custom.fields,fc3_condition:0
msgid "condition"
-msgstr "Condition"
-
-#. module: base
-#: model:ir.actions.act_window,name:base.action_attachment
-#: model:ir.ui.menu,name:base.menu_action_attachment
-#: view:ir.attachment:0
-msgid "Attachments"
-msgstr "Attachements"
+msgstr "condition"
#. module: base
#: selection:ir.report.custom,frequency:0
@@ -286,6 +290,11 @@ msgid "Yearly"
msgstr "Annuelle"
#. module: base
+#: field:ir.report.custom.fields,groupby:0
+msgid "Group by"
+msgstr "Grouper par"
+
+#. module: base
#: view:ir.actions.server:0
msgid "Field Mapping"
msgstr ""
@@ -299,7 +308,7 @@ msgstr "Suffixe"
#, python-format
#: code:osv/orm.py:0
msgid "The unlink method is not implemented on this object !"
-msgstr ""
+msgstr "La méthode de suppression n'est pas implémenté sur cette objet !"
#. module: base
#: model:ir.actions.report.xml,name:base.res_partner_address_report
@@ -309,12 +318,12 @@ msgstr "Étiquettes"
#. module: base
#: field:ir.actions.act_window,target:0
msgid "Target Window"
-msgstr ""
+msgstr "Fenêtre cible"
#. module: base
#: view:ir.rule:0
msgid "Simple domain setup"
-msgstr ""
+msgstr "Configuration simple du domaine"
#. module: base
#: wizard_field:res.partner.spam_send,init,from:0
@@ -330,11 +339,11 @@ msgstr "Tabulaire"
#: model:ir.actions.act_window,name:base.action_workflow_activity_form
#: model:ir.ui.menu,name:base.menu_workflow_activity
msgid "Activites"
-msgstr ""
+msgstr "Activités"
#. module: base
-#: field:ir.module.module.configuration.step,note:0
-msgid "Text"
+#: field:ir.actions.todo,start_on:0
+msgid "Start On"
msgstr ""
#. module: base
@@ -357,7 +366,7 @@ msgstr "Partenaire"
#: model:ir.ui.menu,name:base.menu_workflow_transition
#: view:workflow.activity:0
msgid "Transitions"
-msgstr ""
+msgstr "Transitions"
#. module: base
#: model:ir.model,name:base.model_ir_ui_view_custom
@@ -378,7 +387,7 @@ msgstr ""
#: model:ir.model,name:base.model_ir_actions_report_custom
#: selection:ir.ui.menu,action:0
msgid "ir.actions.report.custom"
-msgstr "Rapport personnalisés actions"
+msgstr "ir.actions.report.custom"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -388,12 +397,12 @@ msgstr ""
#. module: base
#: selection:res.partner.event,type:0
msgid "Prospect Contact"
-msgstr "Contact"
+msgstr "Contact du prospet"
#. module: base
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
-msgstr ""
+msgstr "XML non valide pour l'architecture de la vue"
#. module: base
#: field:ir.report.custom,sortby:0
@@ -406,10 +415,10 @@ msgstr "Trié par"
#: field:ir.actions.server,type:0
#: field:ir.report.custom,type:0
msgid "Report Type"
-msgstr "Type de rapport"
+msgstr "Type de Rapport"
#. module: base
-#: field:ir.module.module.configuration.step,state:0
+#: field:ir.actions.todo,state:0
#: field:ir.module.module.dependency,state:0
#: field:ir.module.module,state:0
#: field:ir.report.custom,state:0
@@ -421,7 +430,7 @@ msgstr "Type de rapport"
#: field:workflow.workitem,state:0
#: view:res.country.state:0
msgid "State"
-msgstr ""
+msgstr "État"
#. module: base
#: model:ir.actions.act_window,name:base.action_res_company_tree
@@ -445,7 +454,7 @@ msgstr ""
#: view:ir.model:0
#: view:res.partner:0
msgid "Notes"
-msgstr "Commentaires"
+msgstr "Notes"
#. module: base
#: model:ir.actions.act_window,name:base.action_translation
@@ -456,7 +465,7 @@ msgstr "Tous les termes"
#. module: base
#: view:res.partner:0
msgid "General"
-msgstr "Informations"
+msgstr "Générale"
#. module: base
#: field:ir.actions.wizard,name:0
@@ -480,12 +489,17 @@ msgstr "Formulaire"
#, python-format
#: code:osv/orm.py:0
msgid "Can not define a column %s. Reserved keyword !"
+msgstr "Impossible de définir la colonne %s. Mot clé réservé !"
+
+#. module: base
+#: help:ir.ui.menu,groups_id:0
+msgid "If you put groups, the visibility of this menu will be based on these groups. If this field is empty, Open ERP will compute visibility based on the related object's read access."
msgstr ""
#. module: base
#: field:workflow.transition,act_to:0
msgid "Destination Activity"
-msgstr "Activité destination"
+msgstr "Activité de Destination"
#. module: base
#: model:res.partner.category,name:base.res_partner_category_10
@@ -495,7 +509,7 @@ msgstr ""
#. module: base
#: view:ir.actions.server:0
msgid "Other Actions"
-msgstr ""
+msgstr "Autres actions"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -506,7 +520,7 @@ msgstr ""
#, python-format
#: code:osv/orm.py:0
msgid "The name_search method is not implemented on this object !"
-msgstr ""
+msgstr "La méthode 'name_search' n'est pas implémentée dans cet objet !"
#. module: base
#: selection:res.request,state:0
@@ -516,7 +530,7 @@ msgstr "En attente"
#. module: base
#: field:res.country,name:0
msgid "Country Name"
-msgstr "Nom de Pays"
+msgstr "Nom du pays"
#. module: base
#: field:ir.attachment,link:0
@@ -532,7 +546,7 @@ msgstr "Web :"
#, python-format
#: code:addons/base/module/wizard/wizard_export_lang.py:0
msgid "new"
-msgstr ""
+msgstr "nouveau"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -549,12 +563,12 @@ msgstr "Sur document multiple"
#. module: base
#: model:ir.model,name:base.model_workflow_triggers
msgid "workflow.triggers"
-msgstr "Déclencheurs de workflow"
+msgstr ""
#. module: base
#: model:ir.model,name:base.model_ir_ui_view
msgid "ir.ui.view"
-msgstr "Vue"
+msgstr ""
#. module: base
#: field:ir.report.custom.fields,report_id:0
@@ -575,14 +589,14 @@ msgstr "Taille Max."
#: selection:ir.module.module.dependency,state:0
#: selection:ir.module.module,state:0
msgid "To be upgraded"
-msgstr "A mettre à niveau"
+msgstr "À mettre à jour"
#. module: base
#: field:ir.module.category,child_ids:0
#: field:ir.module.category,parent_id:0
#: field:res.partner.category,parent_id:0
msgid "Parent Category"
-msgstr "Catégorie parent"
+msgstr "Catégorie parente"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -592,29 +606,29 @@ msgstr ""
#. module: base
#: field:res.partner.address,name:0
msgid "Contact Name"
-msgstr "Contact"
+msgstr "Nom du Contact"
#. module: base
#, python-format
#: code:addons/base/module/wizard/wizard_export_lang.py:0
msgid "Save this document to a %s file and edit it with a specific software or a text editor. The file encoding is UTF-8."
-msgstr ""
+msgstr "Sauvegardez ce document dans un fichier %s et éditez le avec un logiciel spécifique ou un éditeur de texte. L'encodage du fichier est UTF-8."
#. module: base
#: view:ir.module.module:0
msgid "Schedule Upgrade"
-msgstr ""
+msgstr "Planifier la mise à jour"
#. module: base
#: wizard_field:module.module.update,init,repositories:0
msgid "Repositories"
-msgstr "Répertoires"
+msgstr "Dépôts"
#. module: base
#, python-format
#: code:addons/base/ir/ir_model.py:0
msgid "Password mismatch !"
-msgstr ""
+msgstr "Le mot de passe ne correspond pas !"
#. module: base
#: selection:res.partner.address,type:0
@@ -626,7 +640,7 @@ msgstr "Contact"
#, python-format
#: code:addons/base/module/module.py:0
msgid "This url '%s' must provide an html file with links to zip modules"
-msgstr ""
+msgstr "Cette URL '%s' doit fournir un fichier html contenant les liens vers les modules zippés"
#. module: base
#: model:ir.ui.menu,name:base.next_id_15
@@ -648,9 +662,9 @@ msgstr "ir.ui.menu"
#. module: base
#, python-format
-#: code:osv/orm.py:0
-msgid "ConcurrencyException"
-msgstr ""
+#: code:addons/base/ir/ir_model.py:0
+msgid "\"%s\" contains too many dots. XML ids should not contain dots ! These are used to refer to other modules data, as in module.reference_id"
+msgstr "\"%s\" contiens trop de caractère 'point'. Les identifiants XML ne doivent pas contenir de points ! Ceux ci sont utilisés pour effectuer des références vers d'autres données de module, comme par exemple dans \"module.reference_id\""
#. module: base
#: field:ir.actions.act_window,view_id:0
@@ -672,22 +686,22 @@ msgstr "EAN13"
#: model:ir.ui.menu,name:base.menu_module_repository_tree
#: view:ir.module.repository:0
msgid "Repository list"
-msgstr ""
+msgstr "Liste des Dépôts"
#. module: base
#: help:ir.rule.group,rules:0
msgid "The rule is satisfied if at least one test is True"
-msgstr "Le règle est satisfaite si au moins un test est vrai"
+msgstr "La règle est satisfaite si au moins un test est Vrai"
#. module: base
#: field:res.company,rml_header1:0
msgid "Report Header"
-msgstr "Entête d'état"
+msgstr "En-tête de rapport"
#. module: base
#: view:ir.rule:0
msgid "If you don't force the domain, it will use the simple domain setup"
-msgstr ""
+msgstr "Si vous ne forcez pas le domaine, il utilisera la configuration du domaine simplifiée."
#. module: base
#: model:res.partner.title,name:base.res_partner_title_pvt_ltd
@@ -695,17 +709,12 @@ msgid "Corp."
msgstr ""
#. module: base
-#: model:res.partner.category,name:base.res_partner_category_16
-msgid "Telecom sector"
-msgstr ""
-
-#. module: base
#: field:ir.actions.act_window_close,type:0
#: field:ir.actions.actions,type:0
#: field:ir.actions.url,type:0
#: field:ir.actions.act_window,type:0
msgid "Action Type"
-msgstr ""
+msgstr "Type d'action"
#. module: base
#: help:ir.actions.act_window,limit:0
@@ -713,14 +722,14 @@ msgid "Default limit for the list view"
msgstr "Limite par défaut pour la vue liste"
#. module: base
-#: field:ir.model.data,date_update:0
-msgid "Update Date"
-msgstr "Date de mise à jour"
+#: model:ir.model,name:base.model_ir_server_object_lines
+msgid "ir.server.object.lines"
+msgstr ""
#. module: base
#: field:ir.actions.act_window,src_model:0
msgid "Source Object"
-msgstr ""
+msgstr "Objet Source"
#. module: base
#: field:res.partner.bank.type,field_ids:0
@@ -728,15 +737,16 @@ msgid "Type fields"
msgstr "Champs type"
#. module: base
-#: model:ir.ui.menu,name:base.menu_config_wizard_step_form
-#: view:ir.module.module.configuration.step:0
+#: model:ir.actions.act_window,name:base.act_ir_actions_todo_form
+#: model:ir.ui.menu,name:base.menu_ir_actions_todo_form
+#: view:ir.actions.todo:0
msgid "Config Wizard Steps"
-msgstr ""
+msgstr "Étapes de la configuration de l'assistant"
#. module: base
#: model:ir.model,name:base.model_ir_ui_view_sc
msgid "ir.ui.view_sc"
-msgstr "Raccourcis vue"
+msgstr ""
#. module: base
#: field:ir.model.access,group_id:0
@@ -747,18 +757,23 @@ msgstr "Groupe"
#. module: base
#: selection:ir.ui.menu,icon:0
msgid "STOCK_FLOPPY"
-msgstr "STOCK_FLOPPY"
+msgstr ""
+
+#. module: base
+#: field:res.users,signature:0
+msgid "Signature"
+msgstr "Signature"
#. module: base
#: field:ir.actions.server,sms:0
#: selection:ir.actions.server,state:0
msgid "SMS"
-msgstr ""
+msgstr "SMS"
#. module: base
#: field:ir.actions.server,state:0
msgid "Action State"
-msgstr ""
+msgstr "État des Actions"
#. module: base
#: field:ir.translation,name:0
@@ -781,41 +796,46 @@ msgstr "Modules non-installés"
#. module: base
#: help:res.partner.category,active:0
msgid "The active field allows you to hide the category, without removing it."
-msgstr ""
+msgstr "Le champ Actif permet de cacher la catégorie, sans l'effacer"
#. module: base
#: selection:wizard.module.lang.export,format:0
msgid "PO File"
-msgstr ""
+msgstr "Fichier PO"
#. module: base
#: model:ir.model,name:base.model_res_partner_event
msgid "res.partner.event"
-msgstr "Évènement partenaire"
+msgstr ""
#. module: base
-#: view:res.request:0
-#: view:ir.model:0
-msgid "Status"
-msgstr "Statut"
+#: wizard_field:server.action.create,init,type:0
+#: wizard_view:server.action.create,init:0
+msgid "Select Action Type"
+msgstr ""
#. module: base
#, python-format
#: code:addons/base/module/wizard/wizard_export_lang.py:0
msgid "Save this document to a .CSV file and open it with your favourite spreadsheet software. The file encoding is UTF-8. You have to translate the latest column before reimporting it."
-msgstr ""
+msgstr "Sauvegarder ce document dans un fichier .CSV et ouvrez le avec votre logiciel tableur favori. L'encodage de ce fichier devra être UTF-8. Vous devez traduire la dernière colonne avant de le réimporter."
#. module: base
#: model:ir.actions.act_window,name:base.action_currency_form
#: model:ir.ui.menu,name:base.menu_action_currency_form
#: view:res.currency:0
msgid "Currencies"
+msgstr "Devises"
+
+#. module: base
+#: selection:ir.actions.todo,type:0
+msgid "Configure"
msgstr ""
#. module: base
#: help:res.partner,lang:0
msgid "If the selected language is loaded in the system, all documents related to this partner will be printed in this language. If not, it will be english."
-msgstr ""
+msgstr "Si le langage sélectionné est chargé dans le système, tous les documents en relation avec ce partenaire seront imprimés dans ce langage. Sinon, ce sera en anglais."
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -823,29 +843,24 @@ msgid "STOCK_UNDERLINE"
msgstr ""
#. module: base
-#: field:ir.module.module.configuration.wizard,name:0
-msgid "Next Wizard"
-msgstr ""
+#: selection:ir.model,state:0
+msgid "Custom Object"
+msgstr "Objet Configurable"
#. module: base
#: selection:ir.model.fields,select_level:0
msgid "Always Searchable"
-msgstr ""
+msgstr "Toujours cherchable"
#. module: base
#: selection:ir.model.fields,state:0
msgid "Base Field"
-msgstr ""
+msgstr "Champ de base"
#. module: base
#: field:workflow.instance,uid:0
msgid "User ID"
-msgstr "ID utilisateur"
-
-#. module: base
-#: view:ir.module.module.configuration.wizard:0
-msgid "Next Configuration Step"
-msgstr ""
+msgstr "Identifiant utilisateur"
#. module: base
#: view:ir.rule:0
@@ -856,12 +871,12 @@ msgstr "Test"
#, python-format
#: code:addons/base/res/res_user.py:0
msgid "You can not remove the admin user as it is used internally for resources created by OpenERP (updates, module installation, ...)"
-msgstr ""
+msgstr "Vous ne pouvez pas supprimer l'utilisateur 'admin' car il est utilisé en interne pour les ressources créées par OpenERP (mises à jour, installation de module, ...)"
#. module: base
#: wizard_view:module.module.update,update:0
msgid "New modules"
-msgstr "Nouveau module"
+msgstr "Nouveaux modules"
#. module: base
#: field:ir.actions.report.xml,report_sxw_content:0
@@ -875,6 +890,11 @@ msgid "ID Ref."
msgstr "Réf. ID"
#. module: base
+#: help:res.partner.address,active:0
+msgid "Uncheck the active field to hide the contact."
+msgstr ""
+
+#. module: base
#: model:ir.ui.menu,name:base.next_id_10
msgid "Scheduler"
msgstr "Planificateur"
@@ -907,7 +927,7 @@ msgstr "Personnalisation"
#: field:ir.model.fields,required:0
#: field:res.partner.bank.type.field,required:0
msgid "Required"
-msgstr ""
+msgstr "Requis"
#. module: base
#: field:res.country,code:0
@@ -917,7 +937,7 @@ msgstr "Code du Pays"
#. module: base
#: field:res.request.history,name:0
msgid "Summary"
-msgstr "Résultat de l'action"
+msgstr "Sommaire"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -927,7 +947,7 @@ msgstr ""
#. module: base
#: model:ir.model,name:base.model_workflow_instance
msgid "workflow.instance"
-msgstr "Instance workflow"
+msgstr ""
#. module: base
#: field:res.partner.bank,state:0
@@ -939,23 +959,28 @@ msgstr "Type de banque"
#, python-format
#: code:osv/fields.py:0
msgid "undefined get method !"
-msgstr ""
+msgstr "méthode 'get' non définie !"
#. module: base
#: view:res.company:0
msgid "Header/Footer"
-msgstr ""
+msgstr "En-tête/Pied de page"
#. module: base
#, python-format
#: code:osv/orm.py:0
msgid "The read method is not implemented on this object !"
-msgstr ""
+msgstr "La méthode 'read' n'est pas implémentée dans cet objet !"
#. module: base
#: view:res.request.history:0
msgid "Request History"
-msgstr "Historique des requêtes"
+msgstr "historique des Requêtes"
+
+#. module: base
+#: view:res.users:0
+msgid "Roles are used to defined available actions, provided by workflows."
+msgstr ""
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -967,12 +992,12 @@ msgstr ""
#: model:ir.ui.menu,name:base.next_id_14
#: view:res.partner.event:0
msgid "Partner Events"
-msgstr "Évènement partenaire"
+msgstr "Évènements Partenaire"
#. module: base
-#: model:ir.model,name:base.model_workflow_transition
-msgid "workflow.transition"
-msgstr "Transition workflow"
+#: field:ir.actions.todo,note:0
+msgid "Text"
+msgstr ""
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -982,7 +1007,7 @@ msgstr ""
#. module: base
#: rml:ir.module.reference:0
msgid "Introspection report on objects"
-msgstr "Rapport sur les objets"
+msgstr "Rapport d'introspection sur les objets"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -992,28 +1017,28 @@ msgstr ""
#. module: base
#: selection:res.config.view,view:0
msgid "Extended Interface"
-msgstr ""
+msgstr "Interface étendue"
#. module: base
#: field:res.company,name:0
msgid "Company Name"
-msgstr "Nom société"
+msgstr "Nom de la société"
#. module: base
#: wizard_field:base.module.import,init,module_file:0
msgid "Module .ZIP file"
-msgstr "Fichier .zip du module"
+msgstr "Fichier .ZIP du module"
#. module: base
#: wizard_button:res.partner.sms_send,init,send:0
#: model:ir.actions.wizard,name:base.res_partner_send_sms_wizard
msgid "Send SMS"
-msgstr "envoyer SMS"
+msgstr "Envoyer un SMS"
#. module: base
#: field:ir.actions.report.custom,report_id:0
msgid "Report Ref."
-msgstr "Réf. Rapport"
+msgstr "Réf. du rapport"
#. module: base
#: model:ir.actions.act_window,name:base.action_partner_addess_tree
@@ -1022,15 +1047,16 @@ msgid "Partner contacts"
msgstr "Contacts partenaire"
#. module: base
-#: view:ir.report.custom.fields:0
-msgid "Report Fields"
-msgstr "Champs du rapport"
+#: field:workflow.transition,trigger_model:0
+msgid "Trigger Object"
+msgstr ""
#. module: base
#: help:res.country,code:0
msgid "The ISO country code in two chars.\n"
"You can use this field for quick search."
-msgstr "Le code ISO du pays sur deux caractères. Vous pouvez utiliser ce champ pour des recherches rapides."
+msgstr "Le code ISO du pays en deux caractères.\n"
+"Vous pouvez utiliser ce champ pour effectuer une recherche rapide."
#. module: base
#: selection:workflow.activity,join_mode:0
@@ -1041,12 +1067,12 @@ msgstr "Xor"
#. module: base
#: selection:ir.report.custom,state:0
msgid "Subscribed"
-msgstr "Souscrit"
+msgstr "Inscrit"
#. module: base
#: view:res.partner:0
msgid "Sales & Purchases"
-msgstr ""
+msgstr "Ventes & Achats"
#. module: base
#: model:ir.actions.act_window,name:base.ir_action_wizard
@@ -1060,7 +1086,7 @@ msgstr "Assistant"
#: wizard_view:module.lang.install,init:0
#: wizard_view:module.upgrade,next:0
msgid "System Upgrade"
-msgstr "Ajout/mise à jour d'une langue"
+msgstr "Mise à jour du Système"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -1070,7 +1096,7 @@ msgstr ""
#. module: base
#: field:res.partner.event,event_ical_id:0
msgid "iCal id"
-msgstr "iCal id"
+msgstr ""
#. module: base
#: wizard_field:module.lang.import,init,name:0
@@ -1086,12 +1112,13 @@ msgstr ""
#: field:ir.ui.menu,parent_id:0
#: field:wizard.ir.model.menu.create,menu_id:0
msgid "Parent Menu"
-msgstr "Menu parent"
+msgstr "Menu Parent"
#. module: base
-#: view:res.users:0
-msgid "Define a New User"
-msgstr ""
+#, python-format
+#: code:addons/base/ir/ir_model.py:0
+msgid "Custom fields must have a name that starts with 'x_' !"
+msgstr "Les champs personalisés doivent avoir un nom qui commence par 'x_' !"
#. module: base
#: field:res.partner.event,planned_cost:0
@@ -1102,37 +1129,33 @@ msgstr "Coût estimé"
#: field:res.partner.event.type,name:0
#: view:res.partner.event.type:0
msgid "Event Type"
-msgstr "Type événement"
+msgstr "Type d'évènement"
#. module: base
#: field:ir.ui.view,type:0
#: field:wizard.ir.model.menu.create.line,view_type:0
msgid "View Type"
-msgstr "Type de la vue"
+msgstr "Type de vue"
#. module: base
#: model:ir.model,name:base.model_ir_report_custom
msgid "ir.report.custom"
-msgstr "Rapport personnalisé"
+msgstr ""
#. module: base
-#: model:ir.actions.act_window,name:base.action_res_roles_form
-#: field:res.users,roles_id:0
-#: model:ir.ui.menu,name:base.menu_action_res_roles_form
-#: view:res.roles:0
-#: view:res.users:0
-msgid "Roles"
-msgstr "Rôles"
+#: field:ir.exports.line,export_id:0
+msgid "Exportation"
+msgstr "Exportation"
#. module: base
#: view:ir.model:0
msgid "Model Description"
-msgstr "Description du modèle"
+msgstr "Description du Modèle"
#. module: base
#: wizard_view:res.partner.sms_send,init:0
msgid "Bulk SMS send"
-msgstr "Envoi de SMS"
+msgstr "Envoi de SMS Par Lots"
#. module: base
#: selection:wizard.module.lang.export,state:0
@@ -1140,20 +1163,30 @@ msgid "get"
msgstr ""
#. module: base
+#: view:ir.report.custom.fields:0
+msgid "Report Fields"
+msgstr "Champs du rapport"
+
+#. module: base
#: model:ir.model,name:base.model_ir_values
msgid "ir.values"
-msgstr "Valeurs"
+msgstr ""
#. module: base
#: selection:ir.report.custom,type:0
msgid "Pie Chart"
-msgstr "Camembert"
+msgstr "Graphique en Camembert"
+
+#. module: base
+#: field:workflow.transition,trigger_expr_id:0
+msgid "Trigger Expression"
+msgstr ""
#. module: base
#, python-format
#: code:osv/orm.py:0
msgid "Wrong ID for the browse record, got %s, expected an integer."
-msgstr ""
+msgstr "Identifiant incorrect pour l'objet <browse record>, obtenu: %s, attendu: entier"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -1168,12 +1201,7 @@ msgstr ""
#. module: base
#: view:ir.sequence.type:0
msgid "Sequence Type"
-msgstr "Type de séquence"
-
-#. module: base
-#: view:res.users:0
-msgid "Skip & Continue"
-msgstr ""
+msgstr "Type de Séquence"
#. module: base
#: field:ir.report.custom.fields,field_child2:0
@@ -1194,7 +1222,7 @@ msgstr "Champs fils 0"
#: model:ir.actions.wizard,name:base.wizard_update
#: model:ir.ui.menu,name:base.menu_module_update
msgid "Update Modules List"
-msgstr ""
+msgstr "Mettre à jour la Liste des Modules"
#. module: base
#: field:ir.attachment,datas_fname:0
@@ -1204,7 +1232,7 @@ msgstr "Nom du fichier"
#. module: base
#: view:res.config.view:0
msgid "Configure simple view"
-msgstr ""
+msgstr "Configurer la vue simple"
#. module: base
#: field:ir.module.module,license:0
@@ -1214,7 +1242,7 @@ msgstr "Licence"
#. module: base
#: model:ir.model,name:base.model_ir_actions_actions
msgid "ir.actions.actions"
-msgstr "Actions"
+msgstr ""
#. module: base
#: field:ir.module.repository,url:0
@@ -1226,7 +1254,7 @@ msgstr "URL"
#: model:ir.ui.menu,name:base.menu_ir_sequence_actions
#: model:ir.ui.menu,name:base.next_id_6
msgid "Actions"
-msgstr "Actions "
+msgstr "Actions"
#. module: base
#: field:res.request,body:0
@@ -1248,7 +1276,7 @@ msgstr "Portrait"
#. module: base
#: field:ir.actions.server,srcmodel_id:0
msgid "Model"
-msgstr ""
+msgstr "Modèle"
#. module: base
#, python-format
@@ -1257,11 +1285,10 @@ msgid "You try to install a module that depends on the module: %s.\nBut this mod
msgstr ""
#. module: base
-#: selection:ir.actions.act_window.view,view_mode:0
-#: selection:ir.ui.view,type:0
-#: selection:wizard.ir.model.menu.create.line,view_type:0
-msgid "Calendar"
-msgstr "Calendrier"
+#: wizard_field:res.partner.spam_send,init,text:0
+#: field:ir.actions.server,message:0
+msgid "Message"
+msgstr "Message"
#. module: base
#: wizard_view:module.lang.install,start:0
@@ -1282,17 +1309,18 @@ msgstr "Vue"
#: wizard_field:module.upgrade,next,module_info:0
#: wizard_view:module.upgrade,next:0
msgid "Modules to update"
-msgstr ""
+msgstr "Modules à mettre à jour"
#. module: base
-#: model:ir.actions.act_window,name:base.action2
-msgid "Company Architecture"
-msgstr "Structure de l'entreprise"
+#: model:res.partner.title,name:base.res_partner_title_miss
+msgid "Miss"
+msgstr "Mademoiselle"
#. module: base
-#: view:ir.actions.act_window:0
-msgid "Open a Window"
-msgstr "Ouvrir une fenêtre"
+#: field:workflow.workitem,act_id:0
+#: view:workflow.activity:0
+msgid "Activity"
+msgstr "Activité"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -1302,7 +1330,7 @@ msgstr ""
#. module: base
#: field:ir.report.custom,print_orientation:0
msgid "Print orientation"
-msgstr "Orientation"
+msgstr "Orientation de l'impression"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -1312,12 +1340,12 @@ msgstr ""
#. module: base
#: field:ir.actions.report.xml,header:0
msgid "Add RML header"
-msgstr "Ajouter un titre RML"
+msgstr "Ajouter un en-tête RML"
#. module: base
#: field:ir.attachment,name:0
msgid "Attachment Name"
-msgstr "Nom de la pièces jointe"
+msgstr "Nom de la pièce jointe"
#. module: base
#: selection:ir.report.custom,print_orientation:0
@@ -1342,17 +1370,21 @@ msgstr "Séquences"
#, python-format
#: code:osv/orm.py:0
msgid "Unknown position in inherited view %s !"
+msgstr "Position inconnue dans la vue héritée %s !"
+
+#. module: base
+#: view:res.users:0
+msgid "Add User"
msgstr ""
#. module: base
#: field:res.request,trigger_date:0
msgid "Trigger Date"
-msgstr "Date déclenchement"
+msgstr "Date de déclenchement"
#. module: base
-#, python-format
-#: code:osv/orm.py:0
-msgid "Error occur when validation the fields %s: %s"
+#: model:ir.model,name:base.model_ir_actions_configuration_wizard
+msgid "ir.actions.configuration.wizard"
msgstr ""
#. module: base
@@ -1364,7 +1396,7 @@ msgstr "Compte banquaire"
#, python-format
#: code:addons/base/ir/ir_report_custom.py:0
msgid "Warning: using a relation field which uses an unknown object"
-msgstr ""
+msgstr "Avertissement: un champ relation utilise un objet inconnu"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -1376,7 +1408,7 @@ msgstr ""
#: field:res.partner.address,zip:0
#: field:res.partner.bank,zip:0
msgid "Zip"
-msgstr "Code postal"
+msgstr "Code Postal"
#. module: base
#: field:ir.module.module,author:0
@@ -1391,12 +1423,12 @@ msgstr ""
#. module: base
#: selection:wizard.module.lang.export,state:0
msgid "choose"
-msgstr ""
+msgstr "Choisir"
#. module: base
#: selection:ir.module.module.dependency,state:0
msgid "Uninstallable"
-msgstr "Installation impossible "
+msgstr "Non Installable"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -1407,18 +1439,18 @@ msgstr ""
#: selection:ir.actions.server,state:0
#: view:ir.actions.server:0
msgid "Trigger"
-msgstr ""
+msgstr "Déclencheur"
#. module: base
#: field:res.partner,supplier:0
#: model:res.partner.category,name:base.res_partner_category_8
msgid "Supplier"
-msgstr ""
+msgstr "Fournisseur"
#. module: base
#: field:ir.model.fields,translate:0
msgid "Translate"
-msgstr ""
+msgstr "Traduire"
#. module: base
#: field:res.request.history,body:0
@@ -1438,6 +1470,7 @@ msgstr ""
#. module: base
#: field:ir.actions.act_window,view_ids:0
#: field:ir.actions.act_window,views:0
+#: field:ir.module.module,views_by_module:0
#: field:wizard.ir.model.menu.create,view_ids:0
#: view:wizard.ir.model.menu.create:0
#: view:ir.actions.act_window:0
@@ -1463,7 +1496,7 @@ msgstr ""
#, python-format
#: code:addons/base/module/module.py:0
msgid "You try to remove a module that is installed or will be installed"
-msgstr ""
+msgstr "Vous essayez d'enlever un module qui est installé ou qui va être installé"
#. module: base
#: rml:ir.module.reference:0
@@ -1498,6 +1531,12 @@ msgid "STOCK_GOTO_FIRST"
msgstr ""
#. module: base
+#, python-format
+#: code:addons/base/module/module.py:0
+msgid "Can not create the module file:\n %s"
+msgstr ""
+
+#. module: base
#: model:ir.actions.act_window,name:base.action_workflow_form
#: model:ir.ui.menu,name:base.menu_workflow
#: model:ir.ui.menu,name:base.menu_workflow_root
@@ -1505,14 +1544,9 @@ msgid "Workflows"
msgstr ""
#. module: base
-#: field:workflow.transition,trigger_model:0
-msgid "Trigger Type"
-msgstr "Type d'action"
-
-#. module: base
#: field:ir.model.fields,model_id:0
msgid "Object id"
-msgstr ""
+msgstr "Identifiant de l'objet"
#. module: base
#: selection:ir.report.custom.fields,fc0_op:0
@@ -1526,12 +1560,17 @@ msgstr "<"
#: model:ir.actions.act_window,name:base.action_config_wizard_form
#: model:ir.ui.menu,name:base.menu_config_module
msgid "Configuration Wizard"
-msgstr ""
+msgstr "Assistant de configuration"
#. module: base
#: view:res.request.link:0
msgid "Request Link"
-msgstr "Lien vers requête"
+msgstr "Lien de la Requête"
+
+#. module: base
+#: field:wizard.module.lang.export,format:0
+msgid "File Format"
+msgstr "Format de fichier"
#. module: base
#: field:ir.module.module,url:0
@@ -1542,7 +1581,7 @@ msgstr "URL"
#: field:ir.model.fields,state:0
#: field:ir.model,state:0
msgid "Manualy Created"
-msgstr ""
+msgstr "Créé Manuellement"
#. module: base
#: field:ir.report.custom,print_format:0
@@ -1574,23 +1613,24 @@ msgstr ""
#. module: base
#: selection:ir.cron,interval_type:0
msgid "Work Days"
-msgstr ""
+msgstr "Jours de Travail"
#. module: base
#: model:ir.model,name:base.model_res_roles
msgid "res.roles"
-msgstr "Rôles"
+msgstr ""
#. module: base
#: help:ir.cron,priority:0
msgid "0=Very Urgent\n"
"10=Not urgent"
-msgstr "0=Très urgent 10=Non urgent"
+msgstr "0=Très Urgent\n"
+"10=Pas Urgent"
#. module: base
#: model:ir.model,name:base.model_ir_model_data
msgid "ir.model.data"
-msgstr "ir.model.data"
+msgstr ""
#. module: base
#: view:ir.ui.view:0
@@ -1601,24 +1641,23 @@ msgstr "Interface utilisateur - Vues"
#: view:res.groups:0
#: view:ir.model:0
msgid "Access Rights"
-msgstr ""
+msgstr "Droits d'accès"
#. module: base
#: help:ir.actions.report.xml,report_rml:0
msgid "The .rml path of the file or NULL if the content is in report_rml_content"
-msgstr "Le chemin .rmi du fichier ou NULL si le contenu est dans report_rmi_conent"
+msgstr "Le chemin vers le fichier .rml ou NULL si le contenu se trouve dans 'report_rml_content'"
#. module: base
-#, python-format
-#: code:addons/base/module/module.py:0
-msgid "Can not create the module file:\n %s"
+#: view:res.users:0
+msgid "Skip"
msgstr ""
#. module: base
#: model:ir.actions.act_window,name:base.act_menu_create
#: view:wizard.ir.model.menu.create:0
msgid "Create Menu"
-msgstr ""
+msgstr "Créer le menu"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -1628,24 +1667,13 @@ msgstr ""
#. module: base
#: view:res.partner.address:0
msgid "Partner Address"
-msgstr ""
-
-#. module: base
-#: view:res.groups:0
-msgid "Menus"
-msgstr ""
-
-#. module: base
-#, python-format
-#: code:addons/base/ir/ir_model.py:0
-msgid "Custom fields must have a name that starts with 'x_' !"
-msgstr ""
+msgstr "Adresse du Partenaire"
#. module: base
#, python-format
#: code:addons/base/ir/ir_model.py:0
msgid "You can not remove the model '%s' !"
-msgstr ""
+msgstr "Vous ne pouvez pas enlever le modèle '%s' !"
#. module: base
#: field:res.partner.category,name:0
@@ -1667,7 +1695,7 @@ msgstr "Sujet"
#, python-format
#: code:osv/orm.py:0
msgid "The write method is not implemented on this object !"
-msgstr ""
+msgstr "La méthode 'write' n'est pas implémentée dans cet objet !"
#. module: base
#: field:ir.rule.group,global:0
@@ -1678,7 +1706,7 @@ msgstr "Global"
#: field:res.request,act_from:0
#: field:res.request.history,act_from:0
msgid "From"
-msgstr "Requête de"
+msgstr "De"
#. module: base
#: selection:res.partner.event,partner_type:0
@@ -1686,15 +1714,14 @@ msgid "Retailer"
msgstr "Détaillant"
#. module: base
-#: field:ir.sequence,code:0
-#: field:ir.sequence.type,code:0
-msgid "Sequence Code"
-msgstr "Code numérotation"
+#: wizard_button:server.action.create,init,step_1:0
+msgid "Next"
+msgstr ""
#. module: base
#: model:ir.ui.menu,name:base.next_id_11
msgid "Configuration Wizards"
-msgstr ""
+msgstr "Assistants de Configuration"
#. module: base
#: field:res.request,ref_doc1:0
@@ -1704,7 +1731,7 @@ msgstr "Réf. Document 1"
#. module: base
#: selection:ir.model.fields,on_delete:0
msgid "Set NULL"
-msgstr ""
+msgstr "Mettre à NULL"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -1718,15 +1745,26 @@ msgid "State of Mind"
msgstr "État d'esprit"
#. module: base
+#: field:ir.actions.todo,type:0
#: field:ir.actions.report.xml,report_type:0
#: field:ir.server.object.lines,type:0
#: field:ir.translation,type:0
#: field:ir.values,key:0
#: view:res.partner:0
msgid "Type"
+msgstr "Type"
+
+#. module: base
+#: view:ir.module.module:0
+msgid "Defined Reports"
msgstr ""
#. module: base
+#: field:workflow.transition,act_from:0
+msgid "Source Activity"
+msgstr "Activité Source"
+
+#. module: base
#: selection:ir.ui.menu,icon:0
msgid "STOCK_FILE"
msgstr ""
@@ -1739,17 +1777,17 @@ msgstr ""
#. module: base
#: view:ir.rule.group:0
msgid "The rule is satisfied if all test are True (AND)"
-msgstr ""
+msgstr "La règle est satisfaite si tous les tests sont Vrai (ET)"
#. module: base
#: wizard_view:module.upgrade,next:0
msgid "Note that this operation my take a few minutes."
-msgstr ""
+msgstr "Notez que cette opération peut prendre quelques minutes."
#. module: base
#: selection:res.lang,direction:0
msgid "Left-to-right"
-msgstr "Gauche à droite"
+msgstr "de gauche à droite"
#. module: base
#: model:ir.ui.menu,name:base.menu_translation
@@ -1761,12 +1799,12 @@ msgstr "Traductions"
#: field:ir.actions.report.xml,report_rml_content:0
#: field:ir.actions.report.xml,report_rml_content_data:0
msgid "RML content"
-msgstr "Contenu RML"
+msgstr "Contenu du RML"
#. module: base
#: model:ir.model,name:base.model_ir_model_grid
msgid "Objects Security Grid"
-msgstr ""
+msgstr "Grille Sécurité des Objets"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -1779,9 +1817,14 @@ msgid "STOCK_SAVE_AS"
msgstr ""
#. module: base
+#: help:res.partner,supplier:0
+msgid "Check this box if the partner if a supplier. If it's not checked, purchase people will not see it when encoding a purchase order."
+msgstr ""
+
+#. module: base
#: selection:ir.model.fields,select_level:0
msgid "Not Searchable"
-msgstr ""
+msgstr "Non cherchable"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -1791,7 +1834,7 @@ msgstr ""
#. module: base
#: field:ir.sequence,padding:0
msgid "Number padding"
-msgstr "Remplissage nb"
+msgstr ""
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -1808,18 +1851,18 @@ msgstr ""
#, python-format
#: code:addons/base/ir/ir_model.py:0
msgid "Password empty !"
-msgstr ""
+msgstr "Mot de passe vide !"
#. module: base
#: field:res.company,rml_header:0
msgid "RML Header"
-msgstr ""
+msgstr "En-tête RML"
#. module: base
#: selection:ir.actions.server,state:0
#: selection:workflow.activity,kind:0
msgid "Dummy"
-msgstr ""
+msgstr "Factice"
#. module: base
#: selection:ir.report.custom.fields,operation:0
@@ -1830,28 +1873,23 @@ msgstr "Aucun"
#, python-format
#: code:addons/base/ir/ir_model.py:0
msgid "You can not write in this document! (%s)"
-msgstr ""
+msgstr "Vous ne pouvez pas écrire dans ce document ! (%s)"
#. module: base
#: model:ir.model,name:base.model_workflow
msgid "workflow"
-msgstr "Workflow"
+msgstr ""
#. module: base
#: wizard_field:res.partner.sms_send,init,app_id:0
msgid "API ID"
-msgstr "API ID"
+msgstr ""
#. module: base
#: model:ir.model,name:base.model_ir_module_category
#: view:ir.module.category:0
msgid "Module Category"
-msgstr "Catégorie de module"
-
-#. module: base
-#: view:res.users:0
-msgid "Add & Continue"
-msgstr ""
+msgstr "Catégorie du Module"
#. module: base
#: field:ir.rule,operand:0
@@ -1866,7 +1904,7 @@ msgstr "Scanner pour de nouveau module"
#. module: base
#: model:ir.model,name:base.model_ir_module_repository
msgid "Module Repository"
-msgstr "Dépôt de modules"
+msgstr "Dépot de Modules"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -1874,9 +1912,8 @@ msgid "STOCK_UNINDENT"
msgstr ""
#. module: base
-#, python-format
-#: code:addons/base/module/module.py:0
-msgid "The module you are trying to remove depends on installed modules :\n %s"
+#: selection:ir.actions.todo,start_on:0
+msgid "At Once"
msgstr ""
#. module: base
@@ -1887,7 +1924,7 @@ msgstr "Sécurité"
#. module: base
#: selection:ir.actions.server,state:0
msgid "Write Object"
-msgstr ""
+msgstr "Enregistrer l'Objet"
#. module: base
#: field:res.bank,street:0
@@ -1909,28 +1946,28 @@ msgstr "Dépôt de module"
#. module: base
#: field:res.users,action_id:0
msgid "Home Action"
-msgstr "Actions"
+msgstr ""
#. module: base
#: selection:res.request,priority:0
msgid "Low"
-msgstr "Basse"
+msgstr "Faible"
#. module: base
#, python-format
#: code:addons/base/module/module.py:0
msgid "Recursion error in modules dependencies !"
-msgstr ""
+msgstr "Erreur de Récursion dans les dépendances des modules !"
#. module: base
#: view:ir.rule:0
msgid "Manual domain setup"
-msgstr ""
+msgstr "Configuration manuelle du domaine"
#. module: base
#: field:ir.actions.report.xml,report_xsl:0
msgid "XSL path"
-msgstr "Fichier XSL"
+msgstr "Chemin XSL"
#. module: base
#: field:res.groups,model_access:0
@@ -1938,7 +1975,7 @@ msgstr "Fichier XSL"
#: view:ir.model.access:0
#: view:res.groups:0
msgid "Access Controls"
-msgstr "Menu contrôles"
+msgstr "Contrôle des accès"
#. module: base
#: model:ir.model,name:base.model_wizard_module_lang_export
@@ -1956,7 +1993,7 @@ msgstr "Installé"
#: model:ir.ui.menu,name:base.menu_partner_function_form
#: view:res.partner.function:0
msgid "Partner Functions"
-msgstr "Fonction du partenaire"
+msgstr "Fonctions du Partenaire"
#. module: base
#: model:ir.model,name:base.model_res_currency
@@ -1973,25 +2010,20 @@ msgid "Channel Name"
msgstr "Nom du canal"
#. module: base
-#: view:ir.module.module.configuration.wizard:0
+#: view:ir.actions.configuration.wizard:0
msgid "Continue"
msgstr ""
#. module: base
#: selection:res.config.view,view:0
msgid "Simplified Interface"
-msgstr ""
-
-#. module: base
-#: view:res.users:0
-msgid "Assign Groups to Define Access Rights"
-msgstr ""
+msgstr "Interface Simplifiée"
#. module: base
#: field:res.bank,street2:0
#: field:res.partner.address,street2:0
msgid "Street2"
-msgstr "Rue2"
+msgstr "Rue (suite)"
#. module: base
#: field:ir.report.custom.fields,alignment:0
@@ -2006,20 +2038,14 @@ msgstr ""
#. module: base
#: selection:ir.rule,operator:0
msgid ">="
-msgstr ""
+msgstr ">="
#. module: base
-#: wizard_view:list.vat.detail,go:0
-msgid "Notification"
+#: model:ir.model,name:base.model_ir_actions_todo
+msgid "ir.actions.todo"
msgstr ""
#. module: base
-#: field:workflow.workitem,act_id:0
-#: view:workflow.activity:0
-msgid "Activity"
-msgstr "Activité"
-
-#. module: base
#: model:ir.ui.menu,name:base.menu_administration
msgid "Administration"
msgstr "Administration"
@@ -2027,22 +2053,22 @@ msgstr "Administration"
#. module: base
#: field:ir.sequence,number_next:0
msgid "Next Number"
-msgstr "Prochain numéro"
+msgstr "Numéro Suivant"
#. module: base
#: view:wizard.module.lang.export:0
msgid "Get file"
-msgstr ""
+msgstr "Obtenir le Fichier"
#. module: base
#: wizard_view:module.module.update,init:0
msgid "This function will check for new modules in the 'addons' path and on module repositories:"
-msgstr "Cette fonction va chercher après de nouveau modules dans le répertoire 'addons' and dans les dépots de modules"
+msgstr "Cette fonction vérifiera si des nouveaux modules sont disponibles dans le chemin 'addons' et sur les dépôts de modules :"
#. module: base
#: selection:ir.rule,operator:0
msgid "child_of"
-msgstr ""
+msgstr "enfant de"
#. module: base
#: field:res.currency,rate_ids:0
@@ -2057,10 +2083,10 @@ msgstr ""
#. module: base
#, python-format
-#: code:addons/base/ir/ir_model.py:0
#: code:osv/orm.py:0
+#: code:addons/base/ir/ir_model.py:0
msgid "AccessError"
-msgstr ""
+msgstr "Erreur d'Accès"
#. module: base
#: view:res.request:0
@@ -2070,7 +2096,7 @@ msgstr "Répondre"
#. module: base
#: selection:ir.report.custom,type:0
msgid "Bar Chart"
-msgstr "Graphique en barre"
+msgstr "Graphique en Barres"
#. module: base
#: model:ir.model,name:base.model_ir_model_config
@@ -2081,12 +2107,12 @@ msgstr ""
#: field:ir.module.module,website:0
#: field:res.partner,website:0
msgid "Website"
-msgstr "Site Internet"
+msgstr "Site Web"
#. module: base
#: field:ir.model.fields,selection:0
msgid "Field Selection"
-msgstr ""
+msgstr "Sélection de champ"
#. module: base
#: field:ir.rule.group,rules:0
@@ -2103,13 +2129,7 @@ msgstr "Pas d'incrément."
#: field:ir.ui.menu,icon_pict:0
#: field:wizard.module.lang.export,state:0
msgid "unknown"
-msgstr "Inconnu"
-
-#. module: base
-#, python-format
-#: code:osv/orm.py:0
-msgid "The create method is not implemented on this object !"
-msgstr ""
+msgstr "inconnu"
#. module: base
#: field:ir.ui.view_sc,res_id:0
@@ -2124,7 +2144,7 @@ msgstr ""
#. module: base
#: selection:res.request,state:0
msgid "draft"
-msgstr "Brouillon"
+msgstr "brouillon"
#. module: base
#: field:res.currency.rate,name:0
@@ -2147,7 +2167,7 @@ msgstr "Données"
#. module: base
#: selection:ir.translation,type:0
msgid "RML"
-msgstr ""
+msgstr "RML"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -2158,7 +2178,7 @@ msgstr ""
#: model:ir.actions.act_window,name:base.action_partner_category
#: model:ir.ui.menu,name:base.menu_partner_category_main
msgid "Partners by Categories"
-msgstr ""
+msgstr "Partenaires par Catégorie"
#. module: base
#: wizard_field:module.lang.install,init,lang:0
@@ -2178,7 +2198,7 @@ msgstr "XSL"
#. module: base
#: field:ir.module.module,demo:0
msgid "Demo data"
-msgstr "Données démo"
+msgstr "Données Démo"
#. module: base
#: wizard_view:base.module.import,import:0
@@ -2187,11 +2207,6 @@ msgid "Module import"
msgstr "Importation du module"
#. module: base
-#: wizard_field:list.vat.detail,init,limit_amount:0
-msgid "Limit Amount"
-msgstr ""
-
-#. module: base
#: model:ir.actions.act_window,name:base.action_res_company_form
#: model:ir.ui.menu,name:base.menu_action_res_company_form
#: view:res.company:0
@@ -2202,12 +2217,12 @@ msgstr "Sociétés"
#: model:ir.actions.act_window,name:base.action_partner_supplier_form
#: model:ir.ui.menu,name:base.menu_partner_supplier_form
msgid "Suppliers Partners"
-msgstr ""
+msgstr "Partenaires Fournisseurs"
#. module: base
#: model:ir.model,name:base.model_ir_sequence_type
msgid "ir.sequence.type"
-msgstr "Type de séquence"
+msgstr ""
#. module: base
#: field:ir.actions.wizard,type:0
@@ -2217,7 +2232,7 @@ msgstr "Type d'action"
#. module: base
#: selection:wizard.module.lang.export,format:0
msgid "CSV File"
-msgstr ""
+msgstr "Fichier CSV"
#. module: base
#: field:res.company,parent_id:0
@@ -2232,7 +2247,7 @@ msgstr "Envoyer"
#. module: base
#: field:ir.module.category,module_nr:0
msgid "# of Modules"
-msgstr "Nombre de modules"
+msgstr "# de Modules"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -2247,17 +2262,12 @@ msgstr "Date initiale"
#. module: base
#: field:res.company,rml_header2:0
msgid "RML Internal Header"
-msgstr ""
-
-#. module: base
-#: model:ir.ui.menu,name:base.partner_wizard_vat_menu
-msgid "Listing of VAT Customers"
-msgstr ""
+msgstr "En-tête Interne du RML"
#. module: base
#: selection:ir.model,state:0
msgid "Base Object"
-msgstr ""
+msgstr "Objet de Base"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -2267,7 +2277,7 @@ msgstr ""
#. module: base
#: selection:ir.ui.menu,icon:0
msgid "STOCK_STRIKETHROUGH"
-msgstr "STOCK_STRIKETHROUGH"
+msgstr ""
#. module: base
#: selection:ir.report.custom.fields,fc0_op:0
@@ -2275,7 +2285,7 @@ msgstr "STOCK_STRIKETHROUGH"
#: selection:ir.report.custom.fields,fc2_op:0
#: selection:ir.report.custom.fields,fc3_op:0
msgid "(year)="
-msgstr "Année de"
+msgstr "(année)="
#. module: base
#: selection:ir.translation,type:0
@@ -2286,6 +2296,11 @@ msgstr "Année de"
#: field:res.partner.function,code:0
#: field:res.partner,ref:0
msgid "Code"
+msgstr "Code"
+
+#. module: base
+#: view:ir.module.module:0
+msgid "Features"
msgstr ""
#. module: base
@@ -2297,36 +2312,36 @@ msgstr ""
#, python-format
#: code:osv/fields.py:0
msgid "Not implemented get_memory method !"
-msgstr ""
+msgstr "Méthode non implémentée: 'get_memory' !"
#. module: base
#: field:ir.actions.server,code:0
#: selection:ir.actions.server,state:0
#: view:ir.actions.server:0
msgid "Python Code"
-msgstr ""
+msgstr "Code Python"
#. module: base
#, python-format
#: code:osv/orm.py:0
msgid "Bad query."
-msgstr ""
+msgstr "Requête incorrecte."
#. module: base
#: field:ir.model.fields,field_description:0
msgid "Field Label"
-msgstr ""
+msgstr "Étiquette du Champ"
#. module: base
#, python-format
#: code:osv/orm.py:0
msgid "You try to bypass an access rule (Document type: %s)."
-msgstr ""
+msgstr "Vous essayez d'outrepasser une règle d'accès (Type de Document: %s)"
#. module: base
#: field:ir.actions.url,url:0
msgid "Action Url"
-msgstr ""
+msgstr "URL de l'Action"
#. module: base
#: field:ir.report.custom,frequency:0
@@ -2351,10 +2366,9 @@ msgstr "Condition"
#: model:ir.actions.act_window,name:base.action_partner_customer_form
#: model:ir.ui.menu,name:base.menu_partner_customer_form
msgid "Customers Partners"
-msgstr ""
+msgstr "Partenaires Clients"
#. module: base
-#: wizard_button:list.vat.detail,init,end:0
#: wizard_button:res.partner.spam_send,init,end:0
#: wizard_button:res.partner.sms_send,init,end:0
#: wizard_button:base.module.import,init,end:0
@@ -2362,16 +2376,17 @@ msgstr ""
#: wizard_button:module.lang.install,init,end:0
#: wizard_button:module.module.update,init,end:0
#: wizard_button:module.upgrade,next,end:0
+#: selection:ir.actions.todo,state:0
#: view:wizard.ir.model.menu.create:0
#: view:wizard.module.lang.export:0
#: view:wizard.module.update_translations:0
msgid "Cancel"
-msgstr ""
+msgstr "Annuler"
#. module: base
-#: field:ir.model.access,perm_read:0
-msgid "Read Access"
-msgstr "Accès en lecture"
+#: model:ir.model,name:base.model_res_users
+msgid "res.users"
+msgstr ""
#. module: base
#: model:ir.ui.menu,name:base.menu_management
@@ -2381,7 +2396,7 @@ msgstr "Gestion des modules"
#. module: base
#: selection:ir.ui.menu,icon:0
msgid "terp-administration"
-msgstr ""
+msgstr "terp-administration"
#. module: base
#: field:ir.attachment,res_id:0
@@ -2391,7 +2406,7 @@ msgstr ""
#: field:workflow.instance,res_id:0
#: field:workflow.triggers,res_id:0
msgid "Resource ID"
-msgstr "ID ressource"
+msgstr "Id. de la Ressource"
#. module: base
#: field:ir.model,info:0
@@ -2416,7 +2431,7 @@ msgstr ""
#. module: base
#: field:ir.report.custom.fields,bgcolor:0
msgid "Background Color"
-msgstr "Couleur de fond"
+msgstr "Couleur d'arrière-plan"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -2426,10 +2441,10 @@ msgstr ""
#. module: base
#: field:ir.actions.report.xml,report_rml:0
msgid "RML path"
-msgstr "Chemin RML"
+msgstr "Chemin vers le RML"
#. module: base
-#: field:ir.module.module.configuration.wizard,item_id:0
+#: field:ir.actions.configuration.wizard,item_id:0
msgid "Next Configuration Wizard"
msgstr ""
@@ -2453,15 +2468,16 @@ msgstr "Le taux de la monnaie à la monnaie de taux 1"
#. module: base
#: selection:ir.actions.report.xml,report_type:0
msgid "raw"
-msgstr ""
+msgstr "brut"
#. module: base
#, python-format
#: code:addons/base/res/partner/partner.py:0
msgid "Partners: "
-msgstr ""
+msgstr "Partenaires : "
#. module: base
+#: selection:ir.actions.todo,type:0
#: selection:res.partner.address,type:0
msgid "Other"
msgstr "Autre"
@@ -2472,20 +2488,15 @@ msgid "Childs Field"
msgstr "Champs enfants"
#. module: base
-#: model:ir.model,name:base.model_ir_module_module_configuration_step
-msgid "ir.module.module.configuration.step"
-msgstr ""
-
-#. module: base
-#: model:ir.model,name:base.model_ir_module_module_configuration_wizard
-msgid "ir.module.module.configuration.wizard"
-msgstr ""
+#: field:res.roles,name:0
+msgid "Role Name"
+msgstr "Nom du rôle"
#. module: base
#, python-format
#: code:addons/base/res/res_user.py:0
msgid "Can not remove root user!"
-msgstr ""
+msgstr "Impossible d'effacer l'utilisateur 'root' !"
#. module: base
#: field:ir.module.module,installed_version:0
@@ -2501,14 +2512,14 @@ msgstr "Activités"
#. module: base
#: field:res.partner,user_id:0
msgid "Dedicated Salesman"
-msgstr ""
+msgstr "Vendeur dédié"
#. module: base
#: model:ir.actions.act_window,name:base.action_res_users
+#: field:ir.actions.todo,users_id:0
#: field:ir.default,uid:0
#: field:ir.rule.group,users:0
#: field:res.groups,users:0
-#: field:res.partner,responsible:0
#: field:res.roles,users:0
#: model:ir.ui.menu,name:base.menu_action_res_users
#: model:ir.ui.menu,name:base.menu_users
@@ -2521,7 +2532,7 @@ msgstr "Utilisateurs"
#: model:ir.actions.act_window,name:base.action_wizard_lang_export
#: model:ir.ui.menu,name:base.menu_wizard_lang_export
msgid "Export a Translation File"
-msgstr ""
+msgstr "Exporter un Fichier de Traduction"
#. module: base
#: model:ir.actions.act_window,name:base.ir_action_report_xml
@@ -2532,27 +2543,27 @@ msgstr "Rapport Xml"
#. module: base
#: help:res.partner,user_id:0
msgid "The internal user that is in charge of communicating with this partner if any."
-msgstr ""
+msgstr "L'utilisateur interne en charge de communiqué avec le partenaire éventuel."
#. module: base
#: selection:ir.translation,type:0
msgid "Wizard View"
-msgstr "Vue wizard"
+msgstr ""
#. module: base
#: view:ir.module.module:0
msgid "Cancel Upgrade"
-msgstr "Annuler la mise à jour"
+msgstr "Annuler la Mise à Jour"
#. module: base
#, python-format
#: code:osv/orm.py:0
msgid "The search method is not implemented on this object !"
-msgstr ""
+msgstr "La méthode 'search' n'est pas implémentée dans cet objet !"
#. module: base
-#: model:ir.model,name:base.model_wizard_ir_model_menu_create
-msgid "wizard.ir.model.menu.create"
+#: field:ir.actions.report.xml,attachment:0
+msgid "Save As Attachment Prefix"
msgstr ""
#. module: base
@@ -2573,13 +2584,13 @@ msgstr ""
#. module: base
#: model:ir.model,name:base.model_res_lang
msgid "res.lang"
-msgstr "Langue"
+msgstr ""
#. module: base
#, python-format
#: code:addons/base/ir/ir_report_custom.py:0
msgid "Pie charts need exactly two fields"
-msgstr ""
+msgstr "Les graphiques en camembert ont besoin d'exactement deux champs"
#. module: base
#: model:ir.model,name:base.model_res_bank
@@ -2596,15 +2607,15 @@ msgstr ""
#. module: base
#: selection:ir.actions.server,otype:0
msgid "Create in Same Model"
-msgstr ""
+msgstr "Créer dans le même modèle"
#. module: base
+#: field:ir.actions.todo,name:0
#: field:ir.actions.report.xml,name:0
#: field:ir.cron,name:0
#: field:ir.model.access,name:0
#: field:ir.model.fields,name:0
#: field:ir.module.category,name:0
-#: field:ir.module.module.configuration.step,name:0
#: field:ir.module.module.dependency,name:0
#: field:ir.module.module,name:0
#: field:ir.module.repository,name:0
@@ -2623,7 +2634,7 @@ msgstr ""
#: field:workflow.activity,name:0
#: field:workflow,name:0
msgid "Name"
-msgstr "Nom du rapport-XML"
+msgstr "Nom"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -2631,14 +2642,19 @@ msgid "STOCK_APPLY"
msgstr ""
#. module: base
+#: field:ir.module.module,reports_by_module:0
+msgid "Reports"
+msgstr ""
+
+#. module: base
#: field:workflow,on_create:0
msgid "On Create"
-msgstr "En création"
+msgstr "Lors de la création"
#. module: base
#: wizard_view:base.module.import,init:0
msgid "Please give your module .ZIP file to import."
-msgstr "Donnez le fichier .zip de votre module à importer"
+msgstr "Donnez le fichier .zip de votre module à importer."
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -2654,13 +2670,13 @@ msgstr ""
#, python-format
#: code:addons/base/module/wizard/wizard_module_import.py:0
msgid "Error !"
-msgstr ""
+msgstr "Erreur !"
#. module: base
#: wizard_field:res.partner.sms_send,init,user:0
#: field:res.users,login:0
msgid "Login"
-msgstr "Nom d'utilisateur"
+msgstr "Connexion"
#. module: base
#: selection:ir.module.module,license:0
@@ -2673,7 +2689,10 @@ msgid "Regexp to search module on the repository webpage:\n"
"- The first parenthesis must match the name of the module.\n"
"- The second parenthesis must match all the version number.\n"
"- The last parenthesis must match the extension of the module."
-msgstr "Regexp pour recherche un module sur la page web du dépots: - Les premières parenthèses doivent correspondres au nom du module. - Les secondes parenthèses doivent correspondres avec tous les numéros de version. - Les dernières parenthèses doivent correspondre à l'extention du module."
+msgstr "Expression Rationelle utilisée pour rechercher le module sur la page Web du dépôt:\n"
+"- la première parenthèse doit 'matcher' le nom du module;\n"
+"- la seconde parenthèse doit 'matcher' le numéro de version;\n"
+"- la dernière parenthèse doit 'matcher' l'extension du module;"
#. module: base
#: field:res.partner,vat:0
@@ -2681,30 +2700,30 @@ msgid "VAT"
msgstr "TVA"
#. module: base
-#: selection:ir.ui.menu,action:0
-msgid "ir.actions.act_url"
-msgstr ""
+#: help:wizard.module.lang.export,lang:0
+msgid "To export a new language, do not select a language."
+msgstr "Pour exporter une nouvelle langue, ne sélectionnez pas de langue."
#. module: base
#: model:ir.ui.menu,name:base.menu_translation_app
msgid "Application Terms"
-msgstr ""
+msgstr "Termes d'Application"
#. module: base
#: selection:ir.report.custom.fields,operation:0
msgid "Calculate Average"
-msgstr "Moyenne"
+msgstr "Calculer la Moyenne"
#. module: base
#: field:res.users,context_tz:0
msgid "Timezone"
-msgstr ""
+msgstr "Fuseau horaire"
#. module: base
#: model:ir.actions.act_window,name:base.action_model_grid_security
#: model:ir.ui.menu,name:base.menu_ir_access_grid
msgid "Access Controls Grid"
-msgstr ""
+msgstr "Grille des Contrôles d'Accès"
#. module: base
#: model:ir.model,name:base.model_ir_module_module
@@ -2723,7 +2742,7 @@ msgstr "Haute"
#: model:ir.actions.act_window,name:base.action_workflow_instance_form
#: model:ir.ui.menu,name:base.menu_workflow_instance
msgid "Instances"
-msgstr ""
+msgstr "Instances"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -2731,6 +2750,11 @@ msgid "STOCK_COPY"
msgstr ""
#. module: base
+#: selection:ir.actions.todo,start_on:0
+msgid "Auto"
+msgstr ""
+
+#. module: base
#: model:res.partner.category,name:base.res_partner_category_3
msgid "Starter Partner"
msgstr ""
@@ -2744,12 +2768,12 @@ msgstr ""
#. module: base
#: model:ir.model,name:base.model_res_request_link
msgid "res.request.link"
-msgstr "Lien"
+msgstr ""
#. module: base
#: wizard_button:module.module.update,init,update:0
msgid "Check new modules"
-msgstr "Vérifier les nouveaux modules"
+msgstr "Vérifier de nouveaux modules"
#. module: base
#: model:ir.model,name:base.model_ir_actions_act_window_view
@@ -2760,7 +2784,7 @@ msgstr ""
#, python-format
#: code:tools/translate.py:0
msgid "Bad file format"
-msgstr ""
+msgstr "Format de fichier incorrect"
#. module: base
#: help:res.bank,bic:0
@@ -2775,7 +2799,7 @@ msgstr ""
#. module: base
#: field:workflow.activity,action:0
msgid "Python Action"
-msgstr ""
+msgstr "Action Python"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -2793,21 +2817,21 @@ msgid "Record rules"
msgstr "Entrer des règles "
#. module: base
-#: field:ir.report.custom.fields,groupby:0
-msgid "Group by"
-msgstr "Grouper par"
+#: model:ir.model,name:base.model_workflow_transition
+msgid "workflow.transition"
+msgstr ""
#. module: base
#: field:ir.model.fields,readonly:0
#: field:res.partner.bank.type.field,readonly:0
msgid "Readonly"
-msgstr ""
+msgstr "Lecture seule"
#. module: base
#, python-format
#: code:addons/base/ir/ir_model.py:0
msgid "You can not remove the field '%s' !"
-msgstr ""
+msgstr "Vous ne pouvez pas effacer le champ '%s' !"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -2817,7 +2841,7 @@ msgstr ""
#. module: base
#: help:ir.actions.report.xml,header:0
msgid "Add or not the coporate RML header"
-msgstr "Ajoute ou non l'entête RML de l'entreprise"
+msgstr "Ajoute ou non l'entête RML de la société"
#. module: base
#: field:res.currency,accuracy:0
@@ -2828,7 +2852,7 @@ msgstr "Précision de calcul"
#: model:ir.model,name:base.model_ir_actions_wizard
#: selection:ir.ui.menu,action:0
msgid "ir.actions.wizard"
-msgstr "Assistant d'action"
+msgstr ""
#. module: base
#: field:res.partner.event,document:0
@@ -2836,14 +2860,9 @@ msgid "Document"
msgstr "Document"
#. module: base
-#: view:res.partner:0
-msgid "# of Contacts"
-msgstr ""
-
-#. module: base
#: field:res.partner.event,type:0
msgid "Type of Event"
-msgstr "Type d'événement"
+msgstr "Type d'Évènement"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -2854,7 +2873,7 @@ msgstr ""
#: model:ir.actions.act_window,name:base.ir_sequence_type
#: model:ir.ui.menu,name:base.menu_ir_sequence_type
msgid "Sequence Types"
-msgstr "Type de séquence"
+msgstr "Types de Séquence"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -2863,11 +2882,16 @@ msgstr ""
#. module: base
#, python-format
-#: code:addons/base/ir/ir_model.py:0
-msgid "\"%s\" contains too many dots. XML ids should not contain dots ! These are used to refer to other modules data, as in module.reference_id"
+#: code:osv/orm.py:0
+msgid "ConcurrencyException"
msgstr ""
#. module: base
+#: field:res.partner.bank,acc_number:0
+msgid "Account number"
+msgstr "Numéro de compte"
+
+#. module: base
#: model:ir.model,name:base.model_wizard_ir_model_menu_create_line
msgid "wizard.ir.model.menu.create.line"
msgstr ""
@@ -2875,18 +2899,18 @@ msgstr ""
#. module: base
#: selection:res.partner.event,type:0
msgid "Purchase Offer"
-msgstr "Offre d'achat"
+msgstr "Offre d'Achat"
#. module: base
#: selection:ir.module.module.dependency,state:0
#: selection:ir.module.module,state:0
msgid "To be installed"
-msgstr "A installer"
+msgstr "À installer"
#. module: base
#: view:wizard.module.update_translations:0
msgid "Update"
-msgstr ""
+msgstr "Mettre à jour"
#. module: base
#: view:ir.sequence:0
@@ -2897,7 +2921,7 @@ msgstr "Jour: %(day)s"
#, python-format
#: code:addons/base/ir/ir_model.py:0
msgid "You can not read this document! (%s)"
-msgstr ""
+msgstr "Vous ne pouvez pas lire ce document ! (%s)"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -2919,17 +2943,17 @@ msgstr ""
#. module: base
#: model:ir.actions.report.xml,name:base.ir_module_reference_print
msgid "Technical guide"
-msgstr "Guide technique"
+msgstr "Guide Technique"
#. module: base
#: field:ir.server.object.lines,col1:0
msgid "Destination"
-msgstr ""
+msgstr "Destination"
#. module: base
#: selection:res.request,state:0
msgid "closed"
-msgstr "Fermée"
+msgstr "fermée"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -2944,7 +2968,7 @@ msgstr "Exporter le nom"
#. module: base
#: help:ir.model.fields,on_delete:0
msgid "On delete property for many2one fields"
-msgstr ""
+msgstr "Propriété 'On delete' pour les champs many2one"
#. module: base
#: model:ir.model,name:base.model_ir_rule
@@ -2969,27 +2993,27 @@ msgstr "Valeur"
#. module: base
#: field:ir.default,field_name:0
msgid "Object field"
-msgstr ""
+msgstr "Champ Objet"
#. module: base
#: view:wizard.module.update_translations:0
msgid "Update Translations"
-msgstr ""
+msgstr "Mettre à jour les Traductions"
#. module: base
#: view:res.config.view:0
msgid "Set"
-msgstr ""
+msgstr "Définir"
#. module: base
#: field:ir.report.custom.fields,width:0
msgid "Fixed Width"
-msgstr "Largeur fixée"
+msgstr "Largeur fixe"
#. module: base
#: view:ir.actions.server:0
msgid "Other Actions Configuration"
-msgstr ""
+msgstr "Configuration des Autres Actions"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -3005,12 +3029,12 @@ msgstr "Minutes"
#: wizard_view:module.upgrade,start:0
#: wizard_view:module.upgrade,end:0
msgid "The modules have been upgraded / installed !"
-msgstr "Les modules ont été mis à niveau/installés"
+msgstr "Les modules ont été mis à jour / installés !"
#. module: base
#: field:ir.actions.act_window,domain:0
msgid "Domain Value"
-msgstr "Domaine"
+msgstr "Valeur du Domaine"
#. module: base
#: selection:ir.translation,type:0
@@ -3019,10 +3043,16 @@ msgid "Help"
msgstr "Aide"
#. module: base
+#, python-format
+#: code:addons/base/module/module.py:0
+msgid "Some installed modules depends on the module you plan to desinstall :\n %s"
+msgstr ""
+
+#. module: base
#: model:ir.actions.act_window,name:base.res_request_link-act
#: model:ir.ui.menu,name:base.menu_res_request_link_act
msgid "Accepted Links in Requests"
-msgstr ""
+msgstr "Liens Acceptés dans les Requêtes"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -3032,30 +3062,30 @@ msgstr ""
#. module: base
#: selection:ir.actions.server,otype:0
msgid "Create in Other Model"
-msgstr ""
+msgstr "Créer dans un Autre Modèle"
#. module: base
#: model:ir.actions.act_window,name:base.res_partner_canal-act
#: model:ir.model,name:base.model_res_partner_canal
#: model:ir.ui.menu,name:base.menu_res_partner_canal-act
msgid "Channels"
-msgstr ""
+msgstr "Canaux"
#. module: base
#: model:ir.actions.act_window,name:base.ir_access_act
#: model:ir.ui.menu,name:base.menu_ir_access_act
msgid "Access Controls List"
-msgstr ""
+msgstr "Liste des Contrôle d'Accès"
#. module: base
#: help:ir.rule.group,global:0
msgid "Make the rule global or it needs to be put on a group or user"
-msgstr "Fait la règle globale ou il est nécesssaire d'être placé dans un groupe ou un utilisateur"
+msgstr "Définissez la règle globale ou elle devra être associée à un groupe ou un utilisateur"
#. module: base
#: field:ir.actions.wizard,wiz_name:0
msgid "Wizard name"
-msgstr "Nom de l'assistant"
+msgstr "Nom de l'Assistant"
#. module: base
#: model:ir.actions.act_window,name:base.ir_action_report_custom
@@ -3066,12 +3096,12 @@ msgstr "Rapport personnalisé"
#. module: base
#: view:ir.module.module:0
msgid "Schedule for Installation"
-msgstr ""
+msgstr "Plannifier pour Installation"
#. module: base
#: selection:ir.model.fields,select_level:0
msgid "Advanced Search"
-msgstr ""
+msgstr "Recherche Avancée"
#. module: base
#: model:ir.actions.act_window,name:base.action_partner_form
@@ -3084,40 +3114,40 @@ msgstr "Partenaires"
#. module: base
#: rml:ir.module.reference:0
msgid "Directory:"
-msgstr "Répertoire:"
-
-#. module: base
-#: field:res.partner,credit_limit:0
-msgid "Credit Limit"
-msgstr "Limite de crédit"
+msgstr "Répertoire :"
#. module: base
#: field:ir.actions.server,trigger_name:0
msgid "Trigger Name"
+msgstr "Nom du déclencheur"
+
+#. module: base
+#: wizard_button:server.action.create,step_1,create:0
+msgid "Create"
msgstr ""
#. module: base
#, python-format
#: code:addons/base/res/res_user.py:0
msgid "The name of the group can not start with \"-\""
-msgstr ""
+msgstr "Le nom du groupe ne peut pas commencer par \"-\""
#. module: base
#: wizard_view:module.upgrade,start:0
#: wizard_view:module.upgrade,end:0
msgid "We suggest you to reload the menu tab (Ctrl+t Ctrl+r)."
-msgstr "Nous vous conseillons de recharger l'onglet menu (Ctrl+t Ctrl+r)."
+msgstr "Nous vous suggérons de recharger l'onglet menu (Ctrl+t ctrl+r)"
#. module: base
#: field:res.partner.title,shortcut:0
#: view:ir.ui.view_sc:0
msgid "Shortcut"
-msgstr "Abréviation"
+msgstr "Raccourci"
#. module: base
#: model:ir.model,name:base.model_ir_model_access
msgid "ir.model.access"
-msgstr "ir.model.access"
+msgstr ""
#. module: base
#: field:ir.cron,priority:0
@@ -3125,7 +3155,7 @@ msgstr "ir.model.access"
#: field:res.request.link,priority:0
#: field:res.request,priority:0
msgid "Priority"
-msgstr "Priorité (0=Très urgent)"
+msgstr "Priorité"
#. module: base
#: field:ir.translation,src:0
@@ -3133,34 +3163,40 @@ msgid "Source"
msgstr "Source"
#. module: base
-#: field:workflow.transition,act_from:0
-msgid "Source Activity"
-msgstr "Activité source"
+#: model:ir.actions.act_window,name:base.action_partner_title_contact
+#: model:ir.ui.menu,name:base.menu_partner_title_contact
+msgid "Contacts Titles"
+msgstr ""
+
+#. module: base
+#: help:res.partner.address,partner_id:0
+msgid "Keep empty for a private address, not related to partner."
+msgstr ""
#. module: base
#: selection:ir.translation,type:0
msgid "Wizard Button"
-msgstr "Bouton wizard"
+msgstr "Bouton Assistant"
#. module: base
#: view:ir.sequence:0
msgid "Legend (for prefix, suffix)"
-msgstr "Légende (pour préfixe, suffixe)"
+msgstr "Légende (pour le préfixe, suffixe)"
#. module: base
#: field:workflow.activity,flow_stop:0
msgid "Flow Stop"
-msgstr "Fin de flux"
+msgstr "Flux d'arrivée"
#. module: base
#: selection:ir.server.object.lines,type:0
msgid "Formula"
-msgstr ""
+msgstr "Formule"
#. module: base
#: view:res.company:0
msgid "Internal Header/Footer"
-msgstr ""
+msgstr "En-tête/Pied-de-page Interne"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -3180,13 +3216,13 @@ msgstr "Nom de la vue"
#. module: base
#: field:ir.ui.view_sc,resource:0
msgid "Resource Name"
-msgstr "Nom de la ressource"
+msgstr "Nom de la Ressource"
#. module: base
#, python-format
#: code:addons/base/module/wizard/wizard_export_lang.py:0
msgid "Save this document to a .tgz file. This archive containt UTF-8 %s files and may be uploaded to launchpad."
-msgstr ""
+msgstr "Sauvegardez ce document dans un fichier .tgz. Cette archive contiendra les fichiers %s encodé en UTF-8 et pourra être envoyée vers Launchpad."
#. module: base
#: field:res.partner.address,type:0
@@ -3197,12 +3233,12 @@ msgstr "Type d'adresse"
#: wizard_button:module.upgrade,start,config:0
#: wizard_button:module.upgrade,end,config:0
msgid "Start configuration"
-msgstr ""
+msgstr "Démarrer la Configuration"
#. module: base
#: field:ir.exports,export_fields:0
msgid "Export Id"
-msgstr "Exporter ID"
+msgstr "Id. de l'Export"
#. module: base
#: selection:ir.cron,interval_type:0
@@ -3212,17 +3248,17 @@ msgstr "Heures"
#. module: base
#: field:ir.translation,value:0
msgid "Translation Value"
-msgstr "Traduction"
+msgstr "Valeur de la Traduction"
#. module: base
#: field:ir.cron,interval_type:0
msgid "Interval Unit"
-msgstr "Unité d'intervalle"
+msgstr "Unité de l'intervale"
#. module: base
#: view:res.request:0
msgid "End of Request"
-msgstr "Clôturer la requête"
+msgstr "Fin de la Requête"
#. module: base
#: view:res.request:0
@@ -3233,12 +3269,12 @@ msgstr "Références"
#, python-format
#: code:osv/orm.py:0
msgid "This record was modified in the meanwhile"
-msgstr ""
+msgstr "Cet enregistrement a été modifié entre temps"
#. module: base
#: wizard_view:module.lang.install,init:0
msgid "Note that this operation may take a few minutes."
-msgstr "Cette opération peut prendre quelques minutes..."
+msgstr "Notez que cette opération peut prendre quelques minutes"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -3249,7 +3285,7 @@ msgstr ""
#: field:res.request,act_to:0
#: field:res.request.history,act_to:0
msgid "To"
-msgstr "Requête à"
+msgstr "Vers"
#. module: base
#: field:workflow.activity,kind:0
@@ -3260,17 +3296,17 @@ msgstr "Genre"
#, python-format
#: code:osv/orm.py:0
msgid "This method does not exist anymore"
-msgstr ""
+msgstr "Cette méthode n'existe plus"
#. module: base
#, python-format
#: code:addons/base/ir/ir_report_custom.py:0
msgid "Tree can only be used in tabular reports"
-msgstr ""
+msgstr "Les Arbres peuvent uniquement utilisés dans les rapports tabulaires"
#. module: base
-#: selection:ir.ui.menu,icon:0
-msgid "STOCK_DELETE"
+#: selection:ir.actions.todo,start_on:0
+msgid "Manual"
msgstr ""
#. module: base
@@ -3300,12 +3336,12 @@ msgstr ""
#, python-format
#: code:addons/base/ir/ir_report_custom.py:0
msgid "Bar charts need at least two fields"
-msgstr ""
+msgstr "Les graphiques en barres ont besoin d'au moins deux champs"
#. module: base
-#: model:ir.model,name:base.model_res_users
-msgid "res.users"
-msgstr "Utilisateurs"
+#: field:ir.model.access,perm_read:0
+msgid "Read Access"
+msgstr "Accès en lecture"
#. module: base
#: selection:ir.report.custom,type:0
@@ -3315,40 +3351,40 @@ msgstr "Traceur"
#. module: base
#: field:wizard.ir.model.menu.create,name:0
msgid "Menu Name"
-msgstr ""
+msgstr "Nom du menu"
#. module: base
#: selection:ir.model.fields,state:0
msgid "Custom Field"
-msgstr ""
+msgstr "Champ Personalisé"
#. module: base
-#: field:workflow.transition,role_id:0
-msgid "Role Required"
-msgstr "Rôle requis"
+#: field:ir.model.fields,relation_field:0
+msgid "Relation Field"
+msgstr ""
#. module: base
#, python-format
#: code:osv/fields.py:0
msgid "Not implemented search_memory method !"
-msgstr ""
+msgstr "Utilisation d'une méthode non implémentée: 'search_memory' !"
#. module: base
#: field:ir.report.custom.fields,fontcolor:0
msgid "Font color"
-msgstr "Couleur de police"
+msgstr "Couleur de la police"
#. module: base
#: model:ir.actions.act_window,name:base.action_server_action
#: model:ir.ui.menu,name:base.menu_server_action
#: view:ir.actions.server:0
msgid "Server Actions"
-msgstr ""
+msgstr "Actions du Serveur"
#. module: base
#: field:ir.model.fields,view_load:0
msgid "View Auto-Load"
-msgstr "Automatique"
+msgstr "Vue Automatique"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -3363,7 +3399,7 @@ msgstr ""
#. module: base
#: model:ir.model,name:base.model_res_request
msgid "res.request"
-msgstr "Requête"
+msgstr ""
#. module: base
#: field:res.groups,rule_groups:0
@@ -3373,10 +3409,16 @@ msgid "Rules"
msgstr "Règles"
#. module: base
+#: model:ir.actions.act_window,name:base.action_partner_title
+#: model:ir.ui.menu,name:base.menu_partner_title
+msgid "Titles"
+msgstr ""
+
+#. module: base
#: wizard_view:module.upgrade,start:0
#: wizard_view:module.upgrade,end:0
msgid "System upgrade done"
-msgstr "Mise à jour terminée"
+msgstr "Mise à jour du Système terminée"
#. module: base
#: field:ir.actions.act_window,view_type:0
@@ -3388,24 +3430,30 @@ msgstr "Type de vue"
#, python-format
#: code:osv/orm.py:0
msgid "The perm_read method is not implemented on this object !"
-msgstr ""
+msgstr "La méthode 'perm_read' n'est pas implémentée dans cet objet !"
#. module: base
#: selection:ir.actions.report.xml,report_type:0
msgid "pdf"
+msgstr "pdf"
+
+#. module: base
+#: field:ir.actions.todo,start_date:0
+msgid "Start Date"
msgstr ""
#. module: base
#: model:ir.actions.act_window,name:base.action_partner_address_form
#: model:ir.model,name:base.model_res_partner_address
+#: model:ir.ui.menu,name:base.menu_partner_address_form
#: view:res.partner.address:0
msgid "Partner Addresses"
-msgstr ""
+msgstr "Adresse du Partenaire"
#. module: base
#: field:ir.actions.report.xml,report_xml:0
msgid "XML path"
-msgstr "Fichier XML"
+msgstr "Chemin XML"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -3436,19 +3484,24 @@ msgstr "Autoriser l'accès au menu"
#. module: base
#: view:ir.module.module:0
msgid "Uninstall (beta)"
-msgstr "Désinstaller"
+msgstr "Désinstaller (beta)"
#. module: base
#: selection:ir.actions.url,target:0
#: selection:ir.actions.act_window,target:0
msgid "New Window"
+msgstr "Nouvelle fenêtre"
+
+#. module: base
+#: help:res.partner,customer:0
+msgid "Check this box if the partner if a customer."
msgstr ""
#. module: base
#, python-format
#: code:addons/base/ir/ir_report_custom.py:0
msgid "Second field should be figures"
-msgstr ""
+msgstr "Le second champ doit être les images"
#. module: base
#: selection:res.partner.event,partner_type:0
@@ -3458,30 +3511,31 @@ msgstr "Prospect"
#. module: base
#: field:ir.actions.actions,parent_id:0
msgid "Parent Action"
-msgstr ""
+msgstr "Action Parente"
#. module: base
#, python-format
#: code:addons/base/res/partner/partner.py:0
msgid "Couldn't generate the next id because some partners have an alphabetic id !"
-msgstr ""
+msgstr "Impossible de générer le prochain identifiant car certains partenaires ont un identifiant alphabétique !"
#. module: base
#: selection:ir.report.custom,state:0
msgid "Unsubscribed"
-msgstr "Non-souscrit"
+msgstr "Non Inscrit"
#. module: base
#: wizard_field:module.module.update,update,update:0
msgid "Number of modules updated"
-msgstr "Nombre de module mis à jours"
+msgstr "Nombre de modules mis à jour"
#. module: base
-#: view:ir.module.module.configuration.wizard:0
+#: view:ir.actions.configuration.wizard:0
msgid "Skip Step"
msgstr ""
#. module: base
+#: model:ir.actions.act_window,name:base.act_res_partner_event
#: field:res.partner.event,name:0
#: field:res.partner,events:0
msgid "Events"
@@ -3491,10 +3545,11 @@ msgstr "Évènements"
#: model:ir.actions.act_window,name:base.action_res_roles
#: model:ir.ui.menu,name:base.menu_action_res_roles
msgid "Roles Structure"
-msgstr "Structure des rôles"
+msgstr "Structure des Rôles"
#. module: base
#: model:ir.model,name:base.model_ir_actions_url
+#: selection:ir.ui.menu,action:0
msgid "ir.actions.url"
msgstr ""
@@ -3507,23 +3562,29 @@ msgstr ""
#: model:ir.actions.act_window,name:base.res_partner_event_type-act
#: model:ir.ui.menu,name:base.menu_res_partner_event_type-act
msgid "Active Partner Events"
+msgstr "Évènements Actifs des Partenaires"
+
+#. module: base
+#, python-format
+#: code:osv/orm.py:0
+msgid "Error occured while validating the field(s) %s: %s"
msgstr ""
#. module: base
-#: field:workflow.transition,trigger_expr_id:0
-msgid "Trigger Expr ID"
-msgstr "Expression"
+#: view:res.users:0
+msgid "Define New Users"
+msgstr ""
#. module: base
#: model:ir.actions.act_window,name:base.action_rule
#: model:ir.ui.menu,name:base.menu_action_rule
msgid "Record Rules"
-msgstr ""
+msgstr "Règles sur les Enregistrements"
#. module: base
#: field:res.config.view,view:0
msgid "View Mode"
-msgstr ""
+msgstr "Mode d'affichage"
#. module: base
#: wizard_field:module.module.update,update,add:0
@@ -3534,16 +3595,23 @@ msgstr "Nombre de modules ajoutés"
#: field:res.bank,phone:0
#: field:res.partner.address,phone:0
msgid "Phone"
-msgstr "Téléphone"
+msgstr "Numéro de téléphone"
#. module: base
#: help:ir.actions.wizard,multi:0
msgid "If set to true, the wizard will not be displayed on the right toolbar of a form views."
-msgstr "Si positionné à true, le wizard ne s'affichera pas sur la barre d'outils d'une vue formulaire."
+msgstr "Si Vrai, l'assistant ne sera pas affiché dans la barre d'outils à droite des vues formulaire"
+
+#. module: base
+#: field:workflow.transition,role_id:0
+msgid "Role Required"
+msgstr "Rôle Requis"
#. module: base
#: model:ir.actions.act_window,name:base.action_res_groups
+#: field:ir.actions.todo,groups_id:0
#: field:ir.actions.report.xml,groups_id:0
+#: field:ir.actions.act_window,groups_id:0
#: field:ir.actions.wizard,groups_id:0
#: field:ir.model.fields,groups:0
#: field:ir.rule.group,groups:0
@@ -3561,6 +3629,7 @@ msgid "STOCK_SPELL_CHECK"
msgstr ""
#. module: base
+#: field:ir.actions.todo,active:0
#: field:ir.cron,active:0
#: field:ir.module.repository,active:0
#: field:ir.sequence,active:0
@@ -3575,17 +3644,17 @@ msgstr ""
#: field:res.request,active:0
#: field:res.users,active:0
msgid "Active"
-msgstr "Active"
+msgstr "Actif"
#. module: base
-#: model:res.partner.title,name:base.res_partner_title_miss
-msgid "Miss"
-msgstr "Mademoiselle"
+#: view:ir.module.module:0
+msgid "Created Menus"
+msgstr ""
#. module: base
#: field:ir.ui.view.custom,ref_id:0
msgid "Orignal View"
-msgstr ""
+msgstr "Vue Originale"
#. module: base
#: selection:res.partner.event,type:0
@@ -3603,7 +3672,7 @@ msgstr ">"
#. module: base
#: field:workflow.triggers,workitem_id:0
msgid "Workitem"
-msgstr "Conditions"
+msgstr "Objet de Travail"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -3611,9 +3680,14 @@ msgid "STOCK_DIALOG_AUTHENTICATION"
msgstr ""
#. module: base
-#: field:ir.model.access,perm_unlink:0
-msgid "Delete Permission"
-msgstr "Droit a la suppression"
+#: view:ir.actions.act_window:0
+msgid "Open a Window"
+msgstr "Ouvrir une fenêtre"
+
+#. module: base
+#: selection:ir.cron,interval_type:0
+msgid "Months"
+msgstr "Mois"
#. module: base
#: field:workflow.activity,signal_send:0
@@ -3622,11 +3696,6 @@ msgstr "Signal (sous-flux.*)"
#. module: base
#: selection:ir.ui.menu,icon:0
-msgid "STOCK_ABOUT"
-msgstr ""
-
-#. module: base
-#: selection:ir.ui.menu,icon:0
msgid "STOCK_ZOOM_OUT"
msgstr ""
@@ -3634,12 +3703,12 @@ msgstr ""
#: selection:ir.module.module.dependency,state:0
#: selection:ir.module.module,state:0
msgid "To be removed"
-msgstr "A éliminer "
+msgstr "À désinstaller"
#. module: base
#: field:res.partner.category,child_ids:0
msgid "Childs Category"
-msgstr "Catégorie des fils"
+msgstr "Catégorie enfants"
#. module: base
#: field:ir.model.fields,model:0
@@ -3647,11 +3716,11 @@ msgstr "Catégorie des fils"
#: field:ir.model.grid,model:0
#: field:ir.model,name:0
msgid "Object Name"
-msgstr ""
+msgstr "Nom de l'objet"
#. module: base
+#: field:ir.actions.todo,action_id:0
#: field:ir.actions.act_window.view,act_window_id:0
-#: field:ir.module.module.configuration.step,action_id:0
#: field:ir.ui.menu,action:0
#: view:ir.actions.actions:0
msgid "Action"
@@ -3660,17 +3729,17 @@ msgstr "Action"
#. module: base
#: field:ir.rule,domain_force:0
msgid "Force Domain"
-msgstr ""
+msgstr "Forcer le Domaine"
#. module: base
#: view:ir.actions.server:0
msgid "Email Configuration"
-msgstr ""
+msgstr "Configuration de l'Email"
#. module: base
#: model:ir.model,name:base.model_ir_cron
msgid "ir.cron"
-msgstr "Tâche"
+msgstr ""
#. module: base
#: selection:workflow.activity,join_mode:0
@@ -3681,18 +3750,20 @@ msgstr "Et"
#. module: base
#: field:ir.model.fields,relation:0
msgid "Object Relation"
-msgstr ""
+msgstr "Relation Objet"
#. module: base
-#: wizard_field:list.vat.detail,init,mand_id:0
-msgid "MandataireId"
-msgstr ""
+#: model:ir.actions.act_window,name:base.action_attachment
+#: model:ir.ui.menu,name:base.menu_action_attachment
+#: view:ir.attachment:0
+msgid "Attachments"
+msgstr "Pièces jointes"
#. module: base
#: field:ir.rule,field_id:0
#: selection:ir.translation,type:0
msgid "Field"
-msgstr "Champs"
+msgstr "Champ"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -3718,7 +3789,7 @@ msgstr "Réf. Partenaire"
#. module: base
#: model:ir.model,name:base.model_ir_report_custom_fields
msgid "ir.report.custom.fields"
-msgstr "Champs personnalisés"
+msgstr ""
#. module: base
#: view:ir.module.module:0
@@ -3729,7 +3800,7 @@ msgstr "Annuler la désinstallation"
#: model:ir.model,name:base.model_ir_actions_act_window
#: selection:ir.ui.menu,action:0
msgid "ir.actions.act_window"
-msgstr "Fenêtre d'action"
+msgstr ""
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -3737,14 +3808,14 @@ msgid "terp-mrp"
msgstr ""
#. module: base
-#: selection:ir.module.module.configuration.step,state:0
+#: selection:ir.actions.todo,state:0
msgid "Done"
msgstr ""
#. module: base
#: field:ir.actions.server,trigger_obj_id:0
msgid "Trigger On"
-msgstr ""
+msgstr "Déclencheur sur"
#. module: base
#: selection:res.partner.address,type:0
@@ -3756,7 +3827,7 @@ msgstr "Facturation"
#: help:ir.actions.report.xml,multi:0
#: help:ir.actions.act_window.view,multi:0
msgid "If set to true, the action will not be displayed on the right toolbar of a form views."
-msgstr "Si positionné à true, l'action ne sera pas affichée sur la barre d'outils de droite d'une vue formulaire."
+msgstr "Si Vrai, l'action ne sera pas affichée dans la barre d'outils à droite des vues formulaire"
#. module: base
#: model:ir.ui.menu,name:base.next_id_4
@@ -3782,29 +3853,30 @@ msgstr "Accès en écriture"
#. module: base
#: view:wizard.module.lang.export:0
msgid "Export done"
-msgstr ""
+msgstr "Exportation effectuée"
#. module: base
#: field:ir.model.fields,size:0
msgid "Size"
-msgstr ""
+msgstr "Taille"
#. module: base
#: field:res.bank,city:0
#: field:res.partner.address,city:0
#: field:res.partner.bank,city:0
+#: field:res.partner,city:0
msgid "City"
msgstr "Ville"
#. module: base
#: field:res.company,child_ids:0
msgid "Childs Company"
-msgstr "Sociétés enfants"
+msgstr "Sociétés filles"
#. module: base
#: constraint:ir.model:0
msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
+msgstr "Le nom de l'objet doit commencer avec x_ et ne pas contenir de charactères spéciaux !"
#. module: base
#: rml:ir.module.reference:0
@@ -3812,14 +3884,14 @@ msgid "Module:"
msgstr "Module :"
#. module: base
-#: selection:ir.model,state:0
-msgid "Custom Object"
+#: field:ir.actions.configuration.wizard,name:0
+msgid "Next Wizard"
msgstr ""
#. module: base
#: selection:ir.rule,operator:0
msgid "<>"
-msgstr ""
+msgstr "<>"
#. module: base
#: model:ir.actions.act_window,name:base.action_menu_admin
@@ -3832,7 +3904,7 @@ msgstr "Menu"
#. module: base
#: selection:ir.rule,operator:0
msgid "<="
-msgstr ""
+msgstr "<="
#. module: base
#: view:wizard.module.lang.export:0
@@ -3842,22 +3914,18 @@ msgstr ""
#. module: base
#: field:workflow.triggers,instance_id:0
msgid "Destination Instance"
-msgstr "Instance"
+msgstr "Instance de Destination"
#. module: base
#: wizard_view:module.lang.install,start:0
msgid "The selected language has been successfully installed. You must change the preferences of the user and open a new menu to view changes."
-msgstr "La langue sélectionnée a été installée avec succès. Vous devez changer les préférences de l'utilisateur et ouvrir un nouveau menu pour voir les changements"
-
-#. module: base
-#: field:res.roles,name:0
-msgid "Role Name"
-msgstr "Nom"
+msgstr "Le langage sélectionné a été installé avec succès. Vous devez changer les préférences utilisateur et ouvrir un nouveau menu pour voir les changements."
#. module: base
-#: wizard_button:list.vat.detail,init,go:0
-msgid "Create XML"
-msgstr ""
+#: field:ir.module.module,menus_by_module:0
+#: view:res.groups:0
+msgid "Menus"
+msgstr "Menus"
#. module: base
#: selection:ir.report.custom.fields,fc0_op:0
@@ -3871,12 +3939,12 @@ msgstr "inclus dans"
#. module: base
#: field:ir.actions.url,target:0
msgid "Action Target"
-msgstr ""
+msgstr "Action Cible"
#. module: base
#: field:ir.report.custom,field_parent:0
msgid "Child Field"
-msgstr "Champs fils"
+msgstr "Champ Enfant"
#. module: base
#: view:wizard.module.lang.export:0
@@ -3906,18 +3974,19 @@ msgstr ""
#, python-format
#: code:addons/base/ir/ir_report_custom.py:0
msgid "Enter at least one field !"
-msgstr ""
+msgstr "Entrez au moins un champ !"
#. module: base
#: field:ir.actions.server,child_ids:0
#: selection:ir.actions.server,state:0
msgid "Others Actions"
-msgstr ""
+msgstr "Autres Actions"
#. module: base
-#: selection:ir.report.custom.fields,operation:0
-msgid "Get Max"
-msgstr "Valeur maximum"
+#: model:ir.actions.wizard,name:base.wizard_server_action_create
+#: view:ir.actions.server:0
+msgid "Create Action"
+msgstr ""
#. module: base
#: model:ir.model,name:base.model_workflow_workitem
@@ -3937,17 +4006,17 @@ msgstr "Installation impossible"
#. module: base
#: field:res.partner.event,probability:0
msgid "Probability (0.50)"
-msgstr "Probabilité"
+msgstr "Probabilité (0.50)"
#. module: base
#: field:res.partner.address,mobile:0
msgid "Mobile"
-msgstr "Portable"
+msgstr "Téléphone Portable"
#. module: base
#: selection:ir.actions.report.xml,report_type:0
msgid "html"
-msgstr ""
+msgstr "html"
#. module: base
#: field:ir.report.custom,repeat_header:0
@@ -3962,13 +4031,13 @@ msgstr "Adresse"
#. module: base
#: wizard_view:module.upgrade,next:0
msgid "Your system will be upgraded."
-msgstr ""
+msgstr "Votre système sera mis à jour."
#. module: base
#: model:ir.actions.act_window,name:base.action_config_user_form
#: view:res.users:0
msgid "Configure User"
-msgstr ""
+msgstr "Configurer l'Utilisateur"
#. module: base
#: rml:ir.module.reference:0
@@ -3991,8 +4060,8 @@ msgid "Child ids"
msgstr "Menu fils"
#. module: base
-#: field:wizard.module.lang.export,format:0
-msgid "File Format"
+#: field:ir.actions.todo,end_date:0
+msgid "End Date"
msgstr ""
#. module: base
@@ -4002,9 +4071,9 @@ msgid "Resource"
msgstr "Ressource"
#. module: base
-#: model:ir.model,name:base.model_ir_server_object_lines
-msgid "ir.server.object.lines"
-msgstr ""
+#: field:ir.model.data,date_update:0
+msgid "Update Date"
+msgstr "Date de mise à jour"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -4014,7 +4083,7 @@ msgstr ""
#. module: base
#: view:ir.actions.server:0
msgid "Python code"
-msgstr ""
+msgstr "Code Python"
#. module: base
#: view:ir.actions.report.xml:0
@@ -4057,12 +4126,12 @@ msgstr ""
#. module: base
#: field:workflow.transition,signal:0
msgid "Signal (button Name)"
-msgstr "Nom du bouton"
+msgstr "Signal (Nom du bouton)"
#. module: base
#: field:res.company,logo:0
msgid "Logo"
-msgstr ""
+msgstr "Logo"
#. module: base
#: model:ir.actions.act_window,name:base.action_res_bank_form
@@ -4070,7 +4139,7 @@ msgstr ""
#: model:ir.ui.menu,name:base.menu_action_res_bank_form
#: view:res.bank:0
msgid "Banks"
-msgstr ""
+msgstr "Banques"
#. module: base
#: field:ir.cron,numbercall:0
@@ -4085,13 +4154,7 @@ msgstr ""
#. module: base
#: view:ir.actions.server:0
msgid "Field Mappings"
-msgstr ""
-
-#. module: base
-#, python-format
-#: code:osv/orm.py:0
-msgid "The copy method is not implemented on this object !"
-msgstr ""
+msgstr "Associations du Champ"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -4102,7 +4165,7 @@ msgstr ""
#: view:ir.model.fields:0
#: view:ir.model:0
msgid "Security on Groups"
-msgstr ""
+msgstr "Sécurité sur les Groupes"
#. module: base
#: selection:ir.report.custom.fields,alignment:0
@@ -4113,12 +4176,12 @@ msgstr "Centré"
#, python-format
#: code:addons/base/module/wizard/wizard_module_import.py:0
msgid "Can not create the module file: %s !"
-msgstr ""
+msgstr "Impossible de créer le fichier du module : %s"
#. module: base
#: field:ir.server.object.lines,server_id:0
msgid "Object Mapping"
-msgstr ""
+msgstr "Association de l'Objet"
#. module: base
#: field:ir.module.module,published_version:0
@@ -4134,7 +4197,7 @@ msgstr "Rafraîchissement automatique"
#: model:ir.actions.act_window,name:base.action_country_state
#: model:ir.ui.menu,name:base.menu_country_state_partner
msgid "States"
-msgstr "Etats"
+msgstr "États"
#. module: base
#: field:res.currency.rate,rate:0
@@ -4144,12 +4207,12 @@ msgstr "Taux"
#. module: base
#: selection:res.lang,direction:0
msgid "Right-to-left"
-msgstr "Droite à gauche"
+msgstr "De droite à gauche"
#. module: base
#: view:ir.actions.server:0
msgid "Create / Write"
-msgstr ""
+msgstr "Création / Écriture"
#. module: base
#: model:ir.model,name:base.model_ir_exports_line
@@ -4157,9 +4220,9 @@ msgid "ir.exports.line"
msgstr ""
#. module: base
-#: wizard_view:list.vat.detail,init:0
-msgid "This wizard will create an XML file for Vat details and total invoiced amounts per partner."
-msgstr ""
+#: field:res.partner,credit_limit:0
+msgid "Credit Limit"
+msgstr "Limite de crédit"
#. module: base
#: field:ir.default,value:0
@@ -4180,7 +4243,7 @@ msgstr "État"
#: model:ir.actions.act_window,name:base.ir_property_form_all
#: model:ir.ui.menu,name:base.menu_ir_property_form_all
msgid "All Properties"
-msgstr ""
+msgstr "Toutes les propriétés"
#. module: base
#: selection:ir.report.custom.fields,alignment:0
@@ -4193,10 +4256,16 @@ msgid "Category"
msgstr "Catégorie"
#. module: base
+#: view:res.request:0
+#: view:ir.model:0
+msgid "Status"
+msgstr "Statut"
+
+#. module: base
#: model:ir.actions.act_window,name:base.ir_action_window
#: model:ir.ui.menu,name:base.menu_ir_action_window
msgid "Window Actions"
-msgstr "Actions Fenetres"
+msgstr "Actions sur les Fenêtres"
#. module: base
#: model:ir.model,name:base.model_ir_actions_act_window_close
@@ -4204,9 +4273,9 @@ msgid "ir.actions.act_window_close"
msgstr ""
#. module: base
-#: field:res.partner.bank,acc_number:0
-msgid "Account number"
-msgstr "Numéro de compte"
+#: selection:ir.actions.todo,type:0
+msgid "Service"
+msgstr ""
#. module: base
#: help:ir.actions.act_window,auto_refresh:0
@@ -4216,7 +4285,7 @@ msgstr "Ajouter un rafraichissemnt automatique sur la vue"
#. module: base
#: field:wizard.module.lang.export,name:0
msgid "Filename"
-msgstr ""
+msgstr "Fichier"
#. module: base
#: field:ir.model,access_ids:0
@@ -4247,7 +4316,7 @@ msgstr "Nom du groupe"
#: wizard_field:module.upgrade,next,module_download:0
#: wizard_view:module.upgrade,next:0
msgid "Modules to download"
-msgstr ""
+msgstr "Modules à télécharger"
#. module: base
#: field:res.bank,fax:0
@@ -4256,15 +4325,15 @@ msgid "Fax"
msgstr "Fax"
#. module: base
-#: model:ir.actions.act_window,name:base.action_workflow_workitem_form
-#: model:ir.ui.menu,name:base.menu_workflow_workitem
-msgid "Workitems"
+#: view:res.users:0
+msgid "Groups are used to defined access rights on each screen and menu."
msgstr ""
#. module: base
-#: help:wizard.module.lang.export,lang:0
-msgid "To export a new language, do not select a language."
-msgstr ""
+#: model:ir.actions.act_window,name:base.action_workflow_workitem_form
+#: model:ir.ui.menu,name:base.menu_workflow_workitem
+msgid "Workitems"
+msgstr "Objets de travail"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -4289,7 +4358,7 @@ msgstr "Société"
#. module: base
#: view:ir.actions.server:0
msgid "Access all the fields related to the current object easily just by defining name of the attribute, i.e. [[partner_id.name]] for Invoice Object"
-msgstr ""
+msgstr "Vous pouvez accéder à tous les champs associés à l'objet courant uniquement en définissant le nom de l'attribut, ex. [[partner_id.name]] pour l'Object Facture"
#. module: base
#: field:res.request,create_date:0
@@ -4299,17 +4368,17 @@ msgstr "Date de création"
#. module: base
#: view:ir.actions.server:0
msgid "Email / SMS"
-msgstr ""
+msgstr "Email / SMS"
#. module: base
#: field:res.bank,bic:0
msgid "BIC/Swift code"
-msgstr "BIC/Swift code"
+msgstr "Code BIC/Swift"
#. module: base
#: model:ir.model,name:base.model_ir_sequence
msgid "ir.sequence"
-msgstr "Séquence"
+msgstr ""
#. module: base
#: selection:ir.module.module.dependency,state:0
@@ -4329,38 +4398,32 @@ msgid "Icon"
msgstr "Icône"
#. module: base
-#: wizard_button:list.vat.detail,go,end:0
#: wizard_button:module.lang.import,init,finish:0
#: wizard_button:module.lang.install,start,end:0
#: wizard_button:module.module.update,update,open_window:0
msgid "Ok"
-msgstr ""
+msgstr "Ok"
#. module: base
#: field:ir.cron,doall:0
msgid "Repeat missed"
-msgstr "Recommencer tous les ratés"
-
-#. module: base
-#: model:ir.actions.wizard,name:base.partner_wizard_vat
-msgid "Enlist Vat Details"
-msgstr ""
+msgstr "Répeter les manqués"
#. module: base
#, python-format
#: code:osv/orm.py:0
msgid "Couldn't find tag '%s' in parent view !"
-msgstr ""
+msgstr "Impossible de trouver la balise '%s' dans la vue parente !"
#. module: base
#: field:ir.ui.view,inherit_id:0
msgid "Inherited View"
-msgstr "Formulaire hérité"
+msgstr "Vue Héritée"
#. module: base
#: model:ir.model,name:base.model_ir_translation
msgid "ir.translation"
-msgstr "Traduction"
+msgstr ""
#. module: base
#: field:ir.actions.act_window,limit:0
@@ -4374,7 +4437,7 @@ msgstr "Limite"
#: model:ir.ui.menu,name:base.next_id_12
#: view:res.request:0
msgid "Requests"
-msgstr ""
+msgstr "Requêtes"
#. module: base
#: selection:workflow.activity,split_mode:0
@@ -4420,11 +4483,11 @@ msgstr "Modules installés"
#, python-format
#: code:addons/base/res/partner/partner.py:0
msgid "Warning"
-msgstr ""
+msgstr "Avertissement"
#. module: base
-#: wizard_view:list.vat.detail,go:0
-msgid "XML File has been Created."
+#: selection:ir.ui.menu,icon:0
+msgid "STOCK_ABOUT"
msgstr ""
#. module: base
@@ -4446,7 +4509,7 @@ msgstr ""
#. module: base
#: selection:ir.actions.server,state:0
msgid "Client Action"
-msgstr ""
+msgstr "Action du Client"
#. module: base
#: selection:ir.report.custom.fields,alignment:0
@@ -4473,7 +4536,7 @@ msgstr "Version:"
#. module: base
#: view:ir.actions.server:0
msgid "Trigger Configuration"
-msgstr ""
+msgstr "Configuration du Déclencheur"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -4489,7 +4552,7 @@ msgstr "Pied de page état 1"
#, python-format
#: code:addons/base/ir/ir_model.py:0
msgid "You can not delete this document! (%s)"
-msgstr ""
+msgstr "Vous ne pouvez pas effacer ce document ! (%s)"
#. module: base
#: model:ir.actions.act_window,name:base.action_report_custom
@@ -4500,7 +4563,7 @@ msgstr "Rapport personnalisé"
#. module: base
#: selection:ir.actions.server,state:0
msgid "Email"
-msgstr ""
+msgstr "Email"
#. module: base
#: model:ir.actions.act_window,name:base.action_wizard_update_translations
@@ -4517,7 +4580,7 @@ msgstr "Accès en création"
#: model:ir.actions.act_window,name:base.action_partner_other_form
#: model:ir.ui.menu,name:base.menu_partner_other_form
msgid "Others Partners"
-msgstr ""
+msgstr "Autres Partenaires"
#. module: base
#: field:ir.model.data,noupdate:0
@@ -4531,29 +4594,25 @@ msgstr "Imprimé:"
#. module: base
#, python-format
-#: code:osv/fields.py:0
-msgid "Not implemented set_memory method !"
+#: code:addons/base/module/module.py:0
+msgid "Can not upgrade module '%s'. It is not installed."
msgstr ""
#. module: base
-#: wizard_field:list.vat.detail,go,file_save:0
-msgid "Save File"
-msgstr ""
+#, python-format
+#: code:osv/fields.py:0
+msgid "Not implemented set_memory method !"
+msgstr "Méthode pas implémentée: 'set_memory' !"
#. module: base
#: selection:ir.actions.act_window,target:0
msgid "Current Window"
-msgstr ""
+msgstr "Fenêtre courante"
#. module: base
#: view:res.partner.category:0
msgid "Partner category"
-msgstr ""
-
-#. module: base
-#: wizard_view:list.vat.detail,init:0
-msgid "Select Fiscal Year"
-msgstr ""
+msgstr "Catégorie de Partenaire"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -4586,7 +4645,6 @@ msgstr "Configuration"
#. module: base
#: field:ir.model.fields,ttype:0
-#: view:ir.model.fields:0
#: view:ir.model:0
msgid "Field Type"
msgstr "Type de fichier"
@@ -4595,7 +4653,7 @@ msgstr "Type de fichier"
#: field:ir.model.fields,complete_name:0
#: field:ir.ui.menu,complete_name:0
msgid "Complete Name"
-msgstr ""
+msgstr "Nom Complet"
#. module: base
#: field:res.country.state,code:0
@@ -4605,7 +4663,7 @@ msgstr "Code de l'état"
#. module: base
#: field:ir.model.fields,on_delete:0
msgid "On delete"
-msgstr ""
+msgstr "On delete"
#. module: base
#: view:ir.report.custom:0
@@ -4630,24 +4688,26 @@ msgstr "Quotidien"
#. module: base
#: selection:ir.model.fields,on_delete:0
msgid "Cascade"
-msgstr ""
+msgstr "Cascade"
#. module: base
#, python-format
#: code:addons/base/ir/ir_report_custom.py:0
msgid "Field %d should be a figure"
-msgstr ""
+msgstr "Le Champ %d doit être une image"
#. module: base
-#: field:res.users,signature:0
-msgid "Signature"
-msgstr "Signature"
+#: selection:ir.actions.act_window.view,view_mode:0
+#: selection:ir.ui.view,type:0
+#: selection:wizard.ir.model.menu.create.line,view_type:0
+msgid "Gantt"
+msgstr ""
#. module: base
#, python-format
#: code:osv/fields.py:0
msgid "Not Implemented"
-msgstr ""
+msgstr "Pas Implémenté"
#. module: base
#: model:res.partner.category,name:base.res_partner_category_5
@@ -4655,11 +4715,6 @@ msgid "Gold Partner"
msgstr ""
#. module: base
-#: model:res.partner.category,name:base.res_partner_category_15
-msgid "IT sector"
-msgstr ""
-
-#. module: base
#: view:ir.property:0
msgid "Property"
msgstr "Propriété"
@@ -4671,8 +4726,8 @@ msgid "Bank Account Type"
msgstr "Type de compte bancaire"
#. module: base
-#: wizard_field:list.vat.detail,init,test_xml:0
-msgid "Test XML file"
+#: view:ir.actions.configuration.wizard:0
+msgid "Next Configuration Step"
msgstr ""
#. module: base
@@ -4683,19 +4738,19 @@ msgstr ""
#. module: base
#: field:res.groups,comment:0
msgid "Comment"
-msgstr ""
+msgstr "Commentaire"
#. module: base
#: field:ir.model.fields,domain:0
#: field:ir.rule,domain:0
#: field:res.partner.title,domain:0
msgid "Domain"
-msgstr ""
+msgstr "Domaine"
#. module: base
#: view:res.config.view:0
msgid "Choose the simplified interface if you are testing OpenERP for the first time. Less used options or fields are automatically hidden. You will be able to change this, later, through the Administration menu."
-msgstr ""
+msgstr "Choisissez l'interface simplifiée si vous testez OpenERP pour la première fois. Les options et les champs les moins utilisés seront automatiquement cachés. Vous pourrez changer cela plus tard, via le menu Administration."
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -4720,6 +4775,11 @@ msgstr "Nom de l'état"
#. module: base
#: view:res.company:0
msgid "Your Logo - Use a size of about 450x150 pixels."
+msgstr "Votre Logo - Utilisez une taille de 450x150 pixels."
+
+#. module: base
+#: selection:ir.ui.menu,icon:0
+msgid "STOCK_DELETE"
msgstr ""
#. module: base
@@ -4733,10 +4793,11 @@ msgid "a5"
msgstr "A5"
#. module: base
-#: wizard_field:res.partner.spam_send,init,text:0
-#: field:ir.actions.server,message:0
-msgid "Message"
-msgstr "Message"
+#: selection:ir.actions.act_window.view,view_mode:0
+#: selection:ir.ui.view,type:0
+#: selection:wizard.ir.model.menu.create.line,view_type:0
+msgid "Calendar"
+msgstr "Calendrier"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -4747,7 +4808,7 @@ msgstr ""
#: model:ir.model,name:base.model_ir_actions_report_xml
#: selection:ir.ui.menu,action:0
msgid "ir.actions.report.xml"
-msgstr "Rapport XML actions"
+msgstr ""
#. module: base
#: view:wizard.module.lang.export:0
@@ -4763,7 +4824,7 @@ msgstr "Veuillez noter que vous devrez vous déconnecter et reconnecter si vous
#: field:res.partner,address:0
#: view:res.partner.address:0
msgid "Contacts"
-msgstr "Adresse"
+msgstr "Contacts"
#. module: base
#: selection:ir.actions.act_window.view,view_mode:0
@@ -4783,11 +4844,6 @@ msgid "ir.actions.server"
msgstr ""
#. module: base
-#: model:res.partner.category,name:base.res_partner_category_17
-msgid "HR sector"
-msgstr ""
-
-#. module: base
#: wizard_button:module.lang.install,init,start:0
msgid "Start installation"
msgstr "Lancer l'installation"
@@ -4806,13 +4862,13 @@ msgstr "Dépendances entre les modules"
#, python-format
#: code:osv/orm.py:0
msgid "The name_get method is not implemented on this object !"
-msgstr ""
+msgstr "La méthode 'name_get' n'est pas implémentée sur cet objet !"
#. module: base
#: model:ir.actions.wizard,name:base.wizard_upgrade
#: model:ir.ui.menu,name:base.menu_wizard_upgrade
msgid "Apply Scheduled Upgrades"
-msgstr ""
+msgstr "Appliquer les mises à jour planifiées"
#. module: base
#: selection:ir.ui.menu,icon:0
@@ -4827,7 +4883,7 @@ msgstr ""
#. module: base
#: view:res.config.view:0
msgid "Choose Your Mode"
-msgstr ""
+msgstr "Choisissez Votre Mode"
#. module: base
#: view:ir.actions.report.custom:0
@@ -4838,11 +4894,11 @@ msgstr "Rapport personnalisé"
#: field:workflow.activity,action_id:0
#: view:ir.actions.server:0
msgid "Server Action"
-msgstr ""
+msgstr "Actions Serveur"
#. module: base
-#: wizard_field:list.vat.detail,go,msg:0
-msgid "File created"
+#: selection:ir.module.module,license:0
+msgid "GPL-3"
msgstr ""
#. module: base
@@ -4857,10 +4913,10 @@ msgstr "Année: %(year)s"
#: field:ir.actions.url,name:0
#: field:ir.actions.act_window,name:0
msgid "Action Name"
-msgstr ""
+msgstr "Nom de l'Action"
#. module: base
-#: field:ir.module.module.configuration.wizard,progress:0
+#: field:ir.actions.configuration.wizard,progress:0
msgid "Configuration Progress"
msgstr ""
@@ -4893,7 +4949,7 @@ msgstr "Localisations"
#. module: base
#: selection:ir.report.custom.fields,operation:0
msgid "Calculate Count"
-msgstr "Compte"
+msgstr ""
#. module: base
#: field:ir.module.module,dependencies_id:0
@@ -4930,11 +4986,17 @@ msgstr "Date d'envoi"
#: model:ir.actions.wizard,name:base.wizard_lang_import
#: model:ir.ui.menu,name:base.menu_wizard_lang_import
msgid "Import a Translation File"
+msgstr "Importer un Fichier de Traduction"
+
+#. module: base
+#, python-format
+#: code:addons/base/ir/ir_actions.py:0
+msgid "Please specify the Partner Email address !"
msgstr ""
#. module: base
-#: model:ir.actions.act_window,name:base.action_partner_title
-#: model:ir.ui.menu,name:base.menu_partner_title
+#: model:ir.actions.act_window,name:base.action_partner_title_partner
+#: model:ir.ui.menu,name:base.menu_partner_title_partner
#: view:res.partner.title:0
msgid "Partners Titles"
msgstr "Titres des partenaires"
@@ -4943,7 +5005,7 @@ msgstr "Titres des partenaires"
#: model:ir.actions.act_window,name:base.action_translation_untrans
#: model:ir.ui.menu,name:base.menu_action_translation_untrans
msgid "Untranslated terms"
-msgstr ""
+msgstr "Termes non traduits"
#. module: base
#: view:ir.actions.act_window:0
@@ -4951,14 +5013,14 @@ msgid "Open Window"
msgstr "Ouvrir la fenêtre"
#. module: base
-#: field:ir.actions.report.xml,attachment:0
-msgid "Save As Attachment Prefix"
+#: model:ir.model,name:base.model_wizard_ir_model_menu_create
+msgid "wizard.ir.model.menu.create"
msgstr ""
#. module: base
#: view:workflow.transition:0
msgid "Transition"
-msgstr "Évènement"
+msgstr "Transition"
#. module: base
#: wizard_view:module.lang.import,init:0
@@ -4983,16 +5045,13 @@ msgstr "Menu Accès"
#. module: base
#: model:ir.model,name:base.model_res_partner_som
msgid "res.partner.som"
-msgstr "État d'esprit"
+msgstr ""
#. module: base
#, python-format
-#: code:addons/base/ir/ir_model.py:0
-#: code:addons/base/res/res_user.py:0
-#: code:addons/base/res/res_currency.py:0
-#: code:addons/base/module/module.py:0
-msgid "Error"
-msgstr ""
+#: code:osv/orm.py:0
+msgid "The create method is not implemented on this object !"
+msgstr "La méthode 'create' n'est pas implémentée dans cet objet !"
#. module: base
#: model:ir.actions.act_window,name:base.action_partner_category_form
@@ -5008,6 +5067,12 @@ msgid "workflow.activity"
msgstr "Activité workflow"
#. module: base
+#: field:ir.sequence,code:0
+#: field:ir.sequence.type,code:0
+msgid "Sequence Code"
+msgstr "Code numérotation"
+
+#. module: base
#: selection:res.request,state:0
msgid "active"
msgstr "Active"
@@ -5025,7 +5090,7 @@ msgstr "Champ wizard"
#. module: base
#: view:ir.model:0
msgid "Create a Menu"
-msgstr ""
+msgstr "Créer un Menu"
#. module: base
#: view:ir.cron:0
@@ -5035,7 +5100,7 @@ msgstr "Action à déclencher"
#. module: base
#: field:ir.model.fields,select_level:0
msgid "Searchable"
-msgstr ""
+msgstr "Cherchable"
#. module: base
#: view:res.partner.event:0
@@ -5055,7 +5120,7 @@ msgstr "Comptes banquaires"
#. module: base
#: selection:wizard.module.lang.export,format:0
msgid "TGZ Archive"
-msgstr ""
+msgstr "Archive TGZ"
#. module: base
#: model:ir.model,name:base.model_res_partner_title
@@ -5066,7 +5131,7 @@ msgstr "Titre du partenaire"
#: view:res.company:0
#: view:res.partner:0
msgid "General Information"
-msgstr ""
+msgstr "Information Générale"
#. module: base
#: field:ir.sequence,prefix:0
@@ -5087,10 +5152,12 @@ msgstr "Société"
#: field:ir.actions.server,fields_lines:0
#: view:ir.actions.server:0
msgid "Fields Mapping"
-msgstr ""
+msgstr "Association des Champs"
#. module: base
#: wizard_button:base.module.import,import,open_window:0
+#: wizard_button:server.action.create,step_1,end:0
+#: wizard_button:server.action.create,init,end:0
#: wizard_button:module.upgrade,start,end:0
#: wizard_button:module.upgrade,end,end:0
#: view:wizard.module.lang.export:0
@@ -5109,11 +5176,6 @@ msgid "res.request.history"
msgstr "History"
#. module: base
-#: constraint:res.partner:0
-msgid "The VAT doesn't seem to be correct."
-msgstr ""
-
-#. module: base
#: model:res.partner.title,name:base.res_partner_title_sir
msgid "Sir"
msgstr "Monsieur"
@@ -5126,12 +5188,12 @@ msgstr "Taux de conversion"
#. module: base
#: model:ir.actions.act_window,name:base.action_config_simple_view_form
msgid "Configure Simple View"
-msgstr ""
+msgstr "Configurer la Vue Simple"
#. module: base
#: wizard_button:module.upgrade,next,start:0
msgid "Start Upgrade"
-msgstr ""
+msgstr "Commencer la Mise à Jour"
#. module: base
#: model:res.partner.category,name:base.res_partner_category_13
@@ -5169,12 +5231,12 @@ msgstr ""
#. module: base
#: selection:ir.actions.report.xml,report_type:0
msgid "sxw"
-msgstr ""
+msgstr "sxw"
#. module: base
#: selection:ir.actions.url,target:0
msgid "This Window"
-msgstr ""
+msgstr "Cette Fenêtre"
#. module: base
#: field:res.payterm,name:0
@@ -5191,7 +5253,7 @@ msgstr "Fonction"
#. module: base
#: constraint:res.company:0
msgid "Error! You can not create recursive companies."
-msgstr ""
+msgstr "Erreur ! Vous ne pouvez pas créer de sociétés récursivement."
#. module: base
#: model:ir.model,name:base.model_res_config_view
@@ -5213,12 +5275,12 @@ msgstr "Description"
#, python-format
#: code:addons/base/ir/ir_report_custom.py:0
msgid "Invalid operation"
-msgstr ""
+msgstr "Opération non valide"
#. module: base
#: model:ir.ui.menu,name:base.menu_translation_export
msgid "Import / Export"
-msgstr ""
+msgstr "Import / Export"
#. module: base
#: field:res.partner.bank,owner_name:0
@@ -5242,6 +5304,16 @@ msgid "Delivery"
msgstr "Livraison"
#. module: base
+#, python-format
+#: code:addons/base/ir/ir_actions.py:0
+#: code:addons/base/ir/ir_model.py:0
+#: code:addons/base/res/res_currency.py:0
+#: code:addons/base/res/res_user.py:0
+#: code:addons/base/module/module.py:0
+msgid "Error"
+msgstr "Erreur"
+
+#. module: base
#: model:ir.model,name:base.model_ir_attachment
msgid "ir.attachment"
msgstr "Pièce jointe"
@@ -5250,7 +5322,7 @@ msgstr "Pièce jointe"
#, python-format
#: code:osv/orm.py:0
msgid "The value \"%s\" for the field \"%s\" is not in the selection"
-msgstr ""
+msgstr "La valeur \"%s\" pour le champ \"%s\" ne se trouve pas dans la sélection"
#. module: base
#: field:ir.actions.report.xml,auto:0
@@ -5277,30 +5349,30 @@ msgstr "Rôle"
#. module: base
#: view:wizard.module.lang.export:0
msgid "Export language"
-msgstr ""
+msgstr "Exporter la langue"
#. module: base
#: field:res.partner,customer:0
#: selection:res.partner.event,partner_type:0
#: model:res.partner.category,name:base.res_partner_category_0
msgid "Customer"
-msgstr ""
+msgstr "Client"
#. module: base
#: view:ir.rule.group:0
msgid "Multiple rules on same objects are joined using operator OR"
-msgstr ""
+msgstr "Des règles multiples sur les mêmes objets peuvent être joins en utilisant l'opérateur OR"
#. module: base
-#: selection:ir.cron,interval_type:0
-msgid "Months"
-msgstr "Mois"
+#: field:ir.model.access,perm_unlink:0
+msgid "Delete Permission"
+msgstr "Droit de supprimer"
#. module: base
#: field:ir.actions.report.custom,name:0
#: field:ir.report.custom,name:0
msgid "Report Name"
-msgstr "Nom de rapport"
+msgstr "Nom du rapport"
#. module: base
#: view:workflow.instance:0
@@ -5324,6 +5396,7 @@ msgstr "Mailing de masse"
#: field:res.country.state,country_id:0
#: field:res.partner.address,country_id:0
#: field:res.partner.bank,country_id:0
+#: field:res.partner,country:0
#: view:res.country:0
msgid "Country"
msgstr "Pays"
@@ -5349,19 +5422,14 @@ msgid "Unsubscribe Report"
msgstr "Désactiver état"
#. module: base
-#: wizard_field:list.vat.detail,init,fyear:0
-msgid "Fiscal Year"
-msgstr ""
-
-#. module: base
#: constraint:res.partner.category:0
msgid "Error ! You can not create recursive categories."
-msgstr ""
+msgstr "Erreur ! Vous ne pouvez pas créer de catégories récursivement."
#. module: base
#: selection:ir.actions.server,state:0
msgid "Create Object"
-msgstr ""
+msgstr "Créer l'Objet"
#. module: base
#: selection:ir.report.custom,print_format:0
@@ -5406,14 +5474,15 @@ msgid "Month: %(month)s"
msgstr "Mois: %(month)s"
#. module: base
-#: model:ir.ui.menu,name:base.menu_partner_address_form
-msgid "Addresses"
-msgstr ""
+#, python-format
+#: code:osv/orm.py:0
+msgid "The copy method is not implemented on this object !"
+msgstr "La méthode 'copy' n'est pas implémentée dans cet objet !"
#. module: base
+#: field:ir.actions.todo,sequence:0
#: field:ir.actions.server,sequence:0
#: field:ir.actions.act_window.view,sequence:0
-#: field:ir.module.module.configuration.step,sequence:0
#: field:ir.module.repository,sequence:0
#: field:ir.report.custom.fields,sequence:0
#: field:ir.ui.menu,sequence:0
@@ -5421,6 +5490,11 @@ msgstr ""
#: field:res.partner.bank,sequence:0
#: field:wizard.ir.model.menu.create.line,sequence:0
msgid "Sequence"
+msgstr "Séquence"
+
+#. module: base
+#: help:res.partner.address,type:0
+msgid "Used to select automatically the right address according to the context in sales and purchases documents."
msgstr ""
#. module: base
@@ -5463,7 +5537,7 @@ msgstr "Annuler l'installation"
#, python-format
#: code:osv/orm.py:0
msgid "Please check that all your lines have %d columns."
-msgstr ""
+msgstr "Vérifiez que toutes vos lignes ont %d colonnes."
#. module: base
#: wizard_view:module.lang.import,init:0
diff --git a/bin/addons/base/ir/__init__.py b/bin/addons/base/ir/__init__.py
index 37e285d3f20..3f1ccfeb463 100644
--- a/bin/addons/base/ir/__init__.py
+++ b/bin/addons/base/ir/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/ir/ir.xml b/bin/addons/base/ir/ir.xml
index 116f1998b12..635d7415137 100644
--- a/bin/addons/base/ir/ir.xml
+++ b/bin/addons/base/ir/ir.xml
@@ -281,6 +281,7 @@
</tree>
</field>
<field colspan="4" name="domain"/>
+ <field colspan="4" name="context"/>
<field name="limit"/>
<field name="auto_refresh"/>
<newline/>
@@ -648,11 +649,14 @@
<group colspan="2" col="2">
<separator string="Field Type" colspan="2"/>
<field name="ttype" select="2"/>
- <field name="relation" select="2"/>
- <field name="selection"/>
- <field name="size"/>
+ <field name="relation" select="2" attrs="{'required': [('ttype','in',['many2one','one2many','many2many'])],
+ 'readonly': [('ttype','not in', ['many2one','one2many','many2many'])]}"/>
+ <field name="relation_field" attrs="{'required': [('ttype','=','one2many')],
+ 'readonly': [('ttype','!=','one2many')]}"/>
+ <field name="selection" attrs="{'required': [('ttype','=','selection')], 'readonly': [('ttype','!=','selection')]}"/>
+ <field name="size" attrs="{'required': [('ttype','=','char')], 'readonly': [('ttype','!=','char')]}"/>
<field name="state"/>
- <field name="domain"/>
+ <field name="domain" attrs="{'readonly': [('relation','=','')]}"/>
</group>
<group colspan="2" col="2">
@@ -661,8 +665,7 @@
<field name="readonly" select="2"/>
<field name="select_level"/>
<field name="translate"/>
- <field name="relate"/>
- <field name="on_delete"/>
+ <field name="on_delete" attrs="{'readonly': [('ttype','!=','many2one')]}"/>
</group>
<separator string="Security on Groups" colspan="4"/>
<field name="groups" colspan="4" nolabel="1"/>
@@ -725,11 +728,14 @@
<page string="Properties">
<group colspan="2" col="2">
<field name="ttype" select="2"/>
- <field name="relation" select="2"/>
- <field name="selection"/>
- <field name="size"/>
+ <field name="relation" select="2" attrs="{'required': [('ttype','in', ['many2one','one2many','many2many'])],
+ 'readonly': [('ttype','not in', ['many2one','one2many','many2many'])]}"/>
+ <field name="relation_field" attrs="{'required': [('ttype','=','one2many')],
+ 'readonly': [('ttype','!=','one2many')]}"/>
+ <field name="selection" attrs="{'required': [('ttype','=','selection')], 'readonly': [('ttype','!=','selection')]}"/>
+ <field name="size" attrs="{'required': [('ttype','=','char')], 'readonly': [('ttype','!=','char')]}"/>
<field name="state"/>
- <field name="domain"/>
+ <field name="domain" attrs="{'readonly': [('relation','=','')]}"/>
</group>
<group colspan="2" col="2">
@@ -737,8 +743,7 @@
<field name="readonly" select="2"/>
<field name="select_level"/>
<field name="translate"/>
- <field name="relate"/>
- <field name="on_delete"/>
+ <field name="on_delete" attrs="{'readonly': [('ttype','!=','many2one')]}"/>
</group>
</page>
<page string="Security on Groups" colspan="4">
diff --git a/bin/addons/base/ir/ir_actions.py b/bin/addons/base/ir/ir_actions.py
index 2e3d683c27a..7a479344e18 100644
--- a/bin/addons/base/ir/ir_actions.py
+++ b/bin/addons/base/ir/ir_actions.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -185,7 +177,7 @@ class act_window(osv.osv):
if 'calendar' not in modes:
mobj = self.pool.get(act.res_model)
- if mobj._date_name in mobj._columns:
+ if hasattr(mobj, '_date_name') and mobj._date_name in mobj._columns:
res[act.id].append((False, 'calendar'))
return res
@@ -298,13 +290,12 @@ def model_get(self, cr, uid, context={}):
class ir_model_fields(osv.osv):
_inherit = 'ir.model.fields'
- _rec_name = 'complete_name'
+ _rec_name = 'field_description'
_columns = {
'complete_name': fields.char('Complete Name', required=True, size=64, select=1),
}
def name_search(self, cr, uid, name, args=None, operator='ilike', context=None, limit=80):
-
def get_fields(cr, uid, field, rel):
result = []
mobj = self.pool.get('ir.model')
@@ -501,9 +492,11 @@ class actions_server(osv.osv):
if action.state == 'email':
user = config['email_from']
subject = action.name
-
- address = self.get_field_value(cr, uid, str(action.message), action, context)
- body = self.merge_message(cr, uid, action, context)
+ address = self.get_field_value(cr, uid, action, context)
+ if not address:
+ raise osv.except_osv(_('Error'), _("Please specify the Partner Email address !"))
+
+ body = self.merge_message(cr, uid, str(action.message), action, context)
if tools.email_send_attach(user, address, subject, body, debug=False) == True:
logger.notifyChannel('email', netsvc.LOG_INFO, 'Email successfully send to : %s' % (address))
@@ -522,7 +515,7 @@ class actions_server(osv.osv):
# for the sms gateway user / password
api_id = ''
text = action.sms
- to = self.get_field_value(cr, uid, str(action.message), action, context)
+ to = self.get_field_value(cr, uid, action, context)
#TODO: Apply message mearge with the field
if tools.sms_send(user, password, api_id, text, to) == True:
logger.notifyChannel('sms', netsvc.LOG_INFO, 'SMS successfully send to : %s' % (action.address))
@@ -543,6 +536,7 @@ class actions_server(osv.osv):
exec code in localdict
if 'action' in localdict:
return localdict['action']
+
if action.state == 'object_write':
res = {}
for exp in action.fields_lines:
diff --git a/bin/addons/base/ir/ir_attachment.py b/bin/addons/base/ir/ir_attachment.py
index acf3fc3d575..e9b23ff3fa3 100644
--- a/bin/addons/base/ir/ir_attachment.py
+++ b/bin/addons/base/ir/ir_attachment.py
@@ -1,36 +1,101 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from osv import fields,osv
+from osv.orm import except_orm
+import tools
class ir_attachment(osv.osv):
+
+ def check(self, cr, uid, ids, mode):
+ if not ids:
+ return
+ ima = self.pool.get('ir.model.access')
+ if isinstance(ids, (int, long)):
+ ids = [ids]
+ objs = self.browse(cr, uid, ids) or []
+ for o in objs:
+ if o and o.res_model:
+ ima.check(cr, uid, o.res_model, mode)
+
+ check = tools.cache()(check)
+
+ def search(self, cr, uid, args, offset=0, limit=None, order=None,
+ context=None, count=False):
+ ids = super(ir_attachment, self).search(cr, uid, args, offset=offset,
+ limit=limit, order=order,
+ context=context, count=False)
+ if not ids:
+ if count:
+ return 0
+ return []
+ models = super(ir_attachment,self).read(cr, uid, ids, ['id', 'res_model'])
+ cache = {}
+ ima = self.pool.get('ir.model.access')
+ for m in models:
+ if m['res_model'] in cache:
+ if not cache[m['res_model']]:
+ ids.remove(m['id'])
+ continue
+ cache[m['res_model']] = ima.check(cr, uid, m['res_model'], 'read',
+ raise_exception=False)
+
+ if count:
+ return len(ids)
+ return ids
+
+ def read(self, cr, uid, ids, *args, **kwargs):
+ self.check(cr, uid, ids, 'read')
+ return super(ir_attachment, self).read(cr, uid, ids, *args, **kwargs)
+
+ def write(self, cr, uid, ids, *args, **kwargs):
+ self.check(cr, uid, ids, 'write')
+ return super(ir_attachment, self).write(cr, uid, ids, *args, **kwargs)
+
+ def copy(self, cr, uid, id, *args, **kwargs):
+ self.check(cr, uid, [id], 'write')
+ return super(ir_attachment, self).copy(cr, uid, id, *args, **kwargs)
+
+ def unlink(self, cr, uid, ids, *args, **kwargs):
+ self.check(cr, uid, ids, 'unlink')
+ return super(ir_attachment, self).unlink(cr, uid, ids, *args, **kwargs)
+
+ def create(self, cr, uid, values, *args, **kwargs):
+ if 'res_model' in values and values['res_model'] != '':
+ self.pool.get('ir.model.access').check(cr, uid, values['res_model'], 'create')
+ return super(ir_attachment, self).create(cr, uid, values, *args, **kwargs)
+
+ def clear_cache(self):
+ self.check()
+
+ def __init__(self, *args, **kwargs):
+ r = super(ir_attachment, self).__init__(*args, **kwargs)
+ self.pool.get('ir.model.access').register_cache_clearing_method(self._name, 'clear_cache')
+ return r
+
+ def __del__(self):
+ self.pool.get('ir.model.access').unregister_cache_clearing_method(self._name, 'clear_cache')
+ return super(ir_attachment, self).__del__()
+
_name = 'ir.attachment'
_columns = {
'name': fields.char('Attachment Name',size=64, required=True),
diff --git a/bin/addons/base/ir/ir_board.py b/bin/addons/base/ir/ir_board.py
index b948626fac5..e2172681c9d 100644
--- a/bin/addons/base/ir/ir_board.py
+++ b/bin/addons/base/ir/ir_board.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/ir/ir_cron.py b/bin/addons/base/ir/ir_cron.py
index 6b7208fe140..31ad86612ad 100644
--- a/bin/addons/base/ir/ir_cron.py
+++ b/bin/addons/base/ir/ir_cron.py
@@ -1,42 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
-#
-# SPEC: Execute "model.function(*eval(args))" periodically
-# date : date to execute the job or NULL if directly
-# delete_after: delete the ir.cron entry after execution
-# interval_* : period
-# max_repeat : number of execution or NULL if endlessly
-#
-# TODO:
-# Error treatment: exception, request, ... -> send request to uid
-#
from mx import DateTime
import time
diff --git a/bin/addons/base/ir/ir_default.py b/bin/addons/base/ir/ir_default.py
index 669210e54ac..2ef16e1b5de 100644
--- a/bin/addons/base/ir/ir_default.py
+++ b/bin/addons/base/ir/ir_default.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -54,6 +46,3 @@ class ir_default(osv.osv):
}
ir_default()
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/bin/addons/base/ir/ir_exports.py b/bin/addons/base/ir/ir_exports.py
index 3e3de615158..bb7d60f0961 100644
--- a/bin/addons/base/ir/ir_exports.py
+++ b/bin/addons/base/ir/ir_exports.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/ir/ir_fields_description.py b/bin/addons/base/ir/ir_fields_description.py
index 21f923c8227..cc45703a6fb 100644
--- a/bin/addons/base/ir/ir_fields_description.py
+++ b/bin/addons/base/ir/ir_fields_description.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/ir/ir_model.py b/bin/addons/base/ir/ir_model.py
index 1fe8b61a1f1..d2b868f8e11 100644
--- a/bin/addons/base/ir/ir_model.py
+++ b/bin/addons/base/ir/ir_model.py
@@ -1,30 +1,22 @@
+# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
-# Copyright (c) 2008 Camptocamp SA
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -72,7 +64,7 @@ class ir_model(osv.osv):
def unlink(self, cr, user, ids, context=None):
for model in self.browse(cr, user, ids, context):
if model.state <> 'manual':
- raise except_orm(_('Error'), _("You can not remove the model '%s' !") %(field.name,))
+ raise except_orm(_('Error'), _("You can not remove the model '%s' !") %(model.name,))
res = super(ir_model, self).unlink(cr, user, ids, context)
pooler.restart_pool(cr.dbname)
return res
@@ -162,8 +154,8 @@ class ir_model_grid(osv.osv):
'model_id':model_id,
'group_id':group_id
}) ]
- vals = dict(map(lambda x: ('perm_'+x, x[0] in (vals[val] or '')), perms_rel))
- acc_obj.write(cr, uid, rules, vals, context=context)
+ vals2 = dict(map(lambda x: ('perm_'+x, x[0] in (vals[val] or '')), perms_rel))
+ acc_obj.write(cr, uid, rules, vals2, context=context)
return True
def fields_get(self, cr, uid, fields=None, context=None, read_access=True):
@@ -182,8 +174,8 @@ class ir_model_grid(osv.osv):
cols = ['model', 'name']
xml = '''<?xml version="1.0"?>
<%s editable="bottom">
- <field name="name" select="1" readonly="1"/>
- <field name="model" select="1" readonly="1"/>
+ <field name="name" select="1" readonly="1" required="1"/>
+ <field name="model" select="1" readonly="1" required="1"/>
<field name="group_0"/>
''' % (view_type,)
for group in groups_br:
@@ -201,10 +193,9 @@ class ir_model_fields(osv.osv):
'name': fields.char('Name', required=True, size=64, select=1),
'model': fields.char('Object Name', size=64, required=True),
'relation': fields.char('Object Relation', size=64),
+ 'relation_field': fields.char('Relation Field', size=64),
'model_id': fields.many2one('ir.model', 'Object id', required=True, select=True, ondelete='cascade'),
'field_description': fields.char('Field Label', required=True, size=256),
- 'relate': fields.boolean('Click and Relate'),
-
'ttype': fields.selection(_get_fields_type, 'Field Type',size=64, required=True),
'selection': fields.char('Field Selection',size=128),
'required': fields.boolean('Required'),
@@ -212,15 +203,14 @@ class ir_model_fields(osv.osv):
'select_level': fields.selection([('0','Not Searchable'),('1','Always Searchable'),('2','Advanced Search')],'Searchable', required=True),
'translate': fields.boolean('Translate'),
'size': fields.integer('Size'),
- 'state': fields.selection([('manual','Custom Field'),('base','Base Field')],'Manualy Created'),
+ 'state': fields.selection([('manual','Custom Field'),('base','Base Field')],'Manualy Created', required=True, readonly=True),
'on_delete': fields.selection([('cascade','Cascade'),('set null','Set NULL')], 'On delete', help='On delete property for many2one fields'),
'domain': fields.char('Domain', size=256),
-
'groups': fields.many2many('res.groups', 'ir_model_fields_group_rel', 'field_id', 'group_id', 'Groups'),
'view_load': fields.boolean('View Auto-Load'),
}
+ _rec_name='field_description'
_defaults = {
- 'relate': lambda *a: 0,
'view_load': lambda *a: 0,
'selection': lambda *a: "[]",
'domain': lambda *a: "[]",
@@ -278,13 +268,43 @@ class ir_model_access(osv.osv):
cr.execute("select 1 from res_groups_users_rel where uid=%d and gid in(select res_id from ir_model_data where module=%s and name=%s)", (uid, grouparr[0], grouparr[1],))
return bool(cr.fetchone())
- def check_groups_by_id(self, cr, uid, group_id):
- cr.execute("select 1 from res_groups_users_rel where uid=%i and gid=%i", (uid, group_id,))
- return bool(cr.fetchone())
+ def check_group(self, cr, uid, model, mode, group_ids):
+ """ Check if a specific group has the access mode to the specified model"""
+ assert mode in ['read','write','create','unlink'], 'Invalid access mode'
+
+ if isinstance(model, browse_record):
+ assert model._table_name == 'ir.model', 'Invalid model object'
+ model_name = model.name
+ else:
+ model_name = model
+
+ if isinstance(group_ids, (int, long)):
+ group_ids = [group_ids]
+ for group_id in group_ids:
+ cr.execute("SELECT perm_" + mode + " "
+ " FROM ir_model_access a "
+ " JOIN ir_model m ON (m.id = a.model_id) "
+ " WHERE m.model = %s AND a.group_id = %d", (model_name, group_id)
+ )
+ r = cr.fetchone()
+ if r is None:
+ cr.execute("SELECT perm_" + mode + " "
+ " FROM ir_model_access a "
+ " JOIN ir_model m ON (m.id = a.model_id) "
+ " WHERE m.model = %s AND a.group_id IS NULL", (model_name, )
+ )
+ r = cr.fetchone()
+
+ access = bool(r and r[0])
+ if access:
+ return True
+ # pass no groups -> no access
+ return False
def check(self, cr, uid, model, mode='read', raise_exception=True):
- # Users root have all access (Todo: exclude xml-rpc requests)
if uid==1:
+ # User root have all accesses
+ # TODO: exclude xml-rpc requests
return True
assert mode in ['read','write','create','unlink'], 'Invalid access mode'
@@ -329,27 +349,42 @@ class ir_model_access(osv.osv):
check = tools.cache()(check)
+ __cache_clearing_methods = []
+
+ def register_cache_clearing_method(self, model, method):
+ self.__cache_clearing_methods.append((model, method))
+
+ def unregister_cache_clearing_method(self, model, method):
+ try:
+ i = self.__cache_clearing_methods.index((model, method))
+ del self.__cache_clearing_methods[i]
+ except ValueError:
+ pass
+
+ def call_cache_clearing_methods(self):
+ for model, method in self.__cache_clearing_methods:
+ getattr(self.pool.get(model), method)()
+
#
# Check rights on actions
#
def write(self, cr, uid, *args, **argv):
- self.pool.get('ir.ui.menu').clear_cache()
+ self.call_cache_clearing_methods()
res = super(ir_model_access, self).write(cr, uid, *args, **argv)
- self.check()
+ self.check() # clear the cache of check function
return res
+
def create(self, cr, uid, *args, **argv):
res = super(ir_model_access, self).create(cr, uid, *args, **argv)
self.check()
return res
+
def unlink(self, cr, uid, *args, **argv):
- self.pool.get('ir.ui.menu').clear_cache()
+ self.call_cache_clearing_methods()
res = super(ir_model_access, self).unlink(cr, uid, *args, **argv)
self.check()
return res
- def read(self, cr, uid, *args, **argv):
- res = super(ir_model_access, self).read(cr, uid, *args, **argv)
- self.check()
- return res
+
ir_model_access()
class ir_model_data(osv.osv):
diff --git a/bin/addons/base/ir/ir_report_custom.py b/bin/addons/base/ir/ir_report_custom.py
index 3a7ca1dd07e..64fbeca83ef 100644
--- a/bin/addons/base/ir/ir_report_custom.py
+++ b/bin/addons/base/ir/ir_report_custom.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/ir/ir_rule.py b/bin/addons/base/ir/ir_rule.py
index fb00523c725..ef9e90c6b64 100644
--- a/bin/addons/base/ir/ir_rule.py
+++ b/bin/addons/base/ir/ir_rule.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/ir/ir_sequence.py b/bin/addons/base/ir/ir_sequence.py
index ed524d7654e..9a1fb16c2d7 100644
--- a/bin/addons/base/ir/ir_sequence.py
+++ b/bin/addons/base/ir/ir_sequence.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/ir/ir_translation.py b/bin/addons/base/ir/ir_translation.py
index b0c15f5e319..dac4a550e45 100644
--- a/bin/addons/base/ir/ir_translation.py
+++ b/bin/addons/base/ir/ir_translation.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -160,7 +152,7 @@ class ir_translation(osv.osv, Cacheable):
def unlink(self, cursor, user, ids, context=None):
self.clear()
- return super(ir_translation, self).unlink(cusor, user, ids,
+ return super(ir_translation, self).unlink(cursor, user, ids,
context=context)
def create(self, cursor, user, vals, context=None):
diff --git a/bin/addons/base/ir/ir_ui_menu.py b/bin/addons/base/ir/ir_ui_menu.py
index f787db2e5d2..e44c5f6b65c 100644
--- a/bin/addons/base/ir/ir_ui_menu.py
+++ b/bin/addons/base/ir/ir_ui_menu.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -61,7 +53,13 @@ class ir_ui_menu(osv.osv):
def __init__(self, *args, **kwargs):
self._cache = {}
- return super(ir_ui_menu, self).__init__(*args, **kwargs)
+ r = super(ir_ui_menu, self).__init__(*args, **kwargs)
+ self.pool.get('ir.model.access').register_cache_clearing_method(self._name, 'clear_cache')
+ return r
+
+ def __del__(self):
+ self.pool.get('ir.model.access').unregister_cache_clearing_method(self._name, 'clear_cache')
+ return super(ir_ui_menu, self).__del__()
def clear_cache(self):
# radical but this doesn't frequently happen
@@ -81,7 +79,7 @@ class ir_ui_menu(osv.osv):
return []
modelaccess = self.pool.get('ir.model.access')
- user_groups = set(self.pool.get('res.users').read(cr, 1, uid)['groups_id'])
+ user_groups = set(self.pool.get('res.users').read(cr, 1, uid, ['groups_id'])['groups_id'])
result = []
for menu in self.browse(cr, uid, ids):
# this key works because user access rights are all based on user's groups (cfr ir_model_access.check)
@@ -97,8 +95,11 @@ class ir_ui_menu(osv.osv):
restrict_to_groups = [g.id for g in menu.groups_id]
if not user_groups.intersection(restrict_to_groups):
continue
+ result.append(menu.id)
+ self._cache[key] = True
+ continue
- if menu.action: # FIXME elif ?
+ if menu.action:
# we check if the user has access to the action of the menu
m, oid = menu.action.split(',', 1)
data = self.pool.get(m).browse(cr, 1, int(oid))
@@ -121,8 +122,8 @@ class ir_ui_menu(osv.osv):
# not displayed if there is no children
continue
- self._cache[key] = True
result.append(menu.id)
+ self._cache[key] = True
if count:
return len(result)
@@ -228,7 +229,8 @@ class ir_ui_menu(osv.osv):
'child_id' : fields.one2many('ir.ui.menu', 'parent_id','Child ids'),
'parent_id': fields.many2one('ir.ui.menu', 'Parent Menu', select=True),
'groups_id': many2many_unique('res.groups', 'ir_ui_menu_group_rel',
- 'menu_id', 'gid', 'Groups'),
+ 'menu_id', 'gid', 'Groups', help="If you put groups, the visibility of this menu will be based on these groups. "\
+ "If this field is empty, Open ERP will compute visibility based on the related object's read access."),
'complete_name': fields.function(_get_full_name, method=True,
string='Complete Name', type='char', size=128),
'icon': fields.selection(tools.icons, 'Icon', size=64),
@@ -240,8 +242,8 @@ class ir_ui_menu(osv.osv):
('ir.actions.report.xml', 'ir.actions.report.xml'),
('ir.actions.act_window', 'ir.actions.act_window'),
('ir.actions.wizard', 'ir.actions.wizard'),
- ('ir.actions.url', 'ir.actions.act_url'),
- ]),
+ ('ir.actions.url', 'ir.actions.url'),
+ ]),
}
_defaults = {
'icon' : lambda *a: 'STOCK_OPEN',
diff --git a/bin/addons/base/ir/ir_ui_view.py b/bin/addons/base/ir/ir_ui_view.py
index e3e7e639f02..f34999e059e 100644
--- a/bin/addons/base/ir/ir_ui_view.py
+++ b/bin/addons/base/ir/ir_ui_view.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/ir/ir_values.py b/bin/addons/base/ir/ir_values.py
index 0c6d13a0036..778befae389 100644
--- a/bin/addons/base/ir/ir_values.py
+++ b/bin/addons/base/ir/ir_values.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -206,12 +198,9 @@ class ir_values(osv.osv):
keys.append(x[1])
if x[3]:
model,id = x[2].split(',')
- try:
- id = int(id)
- datas = self.pool.get(model).read(cr, uid, [id], False, context)
- except:
- return False
- if not len(datas):
+ id = int(id)
+ datas = self.pool.get(model).read(cr, uid, id, False, context)
+ if not datas:
#ir_del(cr, uid, x[0])
return False
def clean(x):
@@ -221,7 +210,7 @@ class ir_values(osv.osv):
if key in x:
del x[key]
return x
- datas = clean(datas[0])
+ datas = clean(datas)
else:
datas = pickle.loads(x[2])
if meta:
diff --git a/bin/addons/base/ir/wizard/__init__.py b/bin/addons/base/ir/wizard/__init__.py
index c3b8f4f51e8..479e06d9735 100644
--- a/bin/addons/base/ir/wizard/__init__.py
+++ b/bin/addons/base/ir/wizard/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import wizard_menu
diff --git a/bin/addons/base/ir/wizard/create_action.py b/bin/addons/base/ir/wizard/create_action.py
index 804fda2a1ea..21274698203 100644
--- a/bin/addons/base/ir/wizard/create_action.py
+++ b/bin/addons/base/ir/wizard/create_action.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -38,7 +30,7 @@ action_type = '''<?xml version="1.0"?>
</form>'''
action_type_fields = {
- 'type': {'string':"Start date",'type':'selection','required':True ,'selection':[('ir.actions.report.xml','Open Report')]},
+ 'type': {'string':"Select Action Type",'type':'selection','required':True ,'selection':[('ir.actions.report.xml','Open Report')]},
}
report_action = '''<?xml version="1.0"?>
@@ -60,13 +52,7 @@ class create_action(wizard.interface):
rpt = reports.browse(cr, uid, form['report'])
- action = """
-action = {
- 'type': 'ir.actions.report.xml',
- 'model':'%s',
- 'report_name': '%s',
- 'ids': context['active_ids'],
-}""" % (rpt.model, rpt.report_name)
+ action = """action = {"type": "ir.actions.report.xml","model":"%s","report_name": "%s","ids": context["active_ids"]}""" % (rpt.model, rpt.report_name)
obj = pool.get('ir.actions.server')
obj.write(cr, uid, data['ids'], {'code':action})
diff --git a/bin/addons/base/ir/wizard/wizard_menu.py b/bin/addons/base/ir/wizard/wizard_menu.py
index 9030a6c7164..8f361d9e99b 100644
--- a/bin/addons/base/ir/wizard/wizard_menu.py
+++ b/bin/addons/base/ir/wizard/wizard_menu.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/ir/workflow/__init__.py b/bin/addons/base/ir/workflow/__init__.py
index 961ccd9b039..a45dfc49615 100644
--- a/bin/addons/base/ir/workflow/__init__.py
+++ b/bin/addons/base/ir/workflow/__init__.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import workflow
import print_instance
diff --git a/bin/addons/base/ir/workflow/print_instance.py b/bin/addons/base/ir/workflow/print_instance.py
index 350366c9544..8d40bbeac47 100644
--- a/bin/addons/base/ir/workflow/print_instance.py
+++ b/bin/addons/base/ir/workflow/print_instance.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/ir/workflow/workflow.py b/bin/addons/base/ir/workflow/workflow.py
index 35b594812d7..52e51ceddef 100644
--- a/bin/addons/base/ir/workflow/workflow.py
+++ b/bin/addons/base/ir/workflow/workflow.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -132,10 +124,10 @@ class wkf_transition(osv.osv):
_table = "wkf_transition"
_name = "workflow.transition"
_log_access = False
- _rec_name = 'signal' #TODO: pas top mais bon...
+ _rec_name = 'signal'
_columns = {
- 'trigger_model': fields.char('Trigger Type', size=128),
- 'trigger_expr_id': fields.char('Trigger Expr ID', size=128),
+ 'trigger_model': fields.char('Trigger Object', size=128),
+ 'trigger_expr_id': fields.char('Trigger Expression', size=128),
'signal': fields.char('Signal (button Name)', size=64),
'role_id': fields.many2one('res.roles', 'Role Required'),
'condition': fields.char('Condition', required=True, size=128),
@@ -153,7 +145,7 @@ class wkf_instance(osv.osv):
_rec_name = 'res_type'
_log_access = False
_columns = {
- 'wkf_id': fields.many2one('workflow', 'Workflow', ondelete='restrict', select=True),
+ 'wkf_id': fields.many2one('workflow', 'Workflow', ondelete='cascade', select=True),
'uid': fields.integer('User ID'),
'res_id': fields.integer('Resource ID', select=True),
'res_type': fields.char('Resource Object', size=64, select=True),
diff --git a/bin/addons/base/ir/workflow/workflow_view.xml b/bin/addons/base/ir/workflow/workflow_view.xml
index ac1d3d4957b..20f1cf1685b 100644
--- a/bin/addons/base/ir/workflow/workflow_view.xml
+++ b/bin/addons/base/ir/workflow/workflow_view.xml
@@ -43,13 +43,13 @@
<field name="view_id" ref="view_workflow_tree"/>
</record>
<menuitem action="action_workflow_form" id="menu_workflow" parent="base.menu_workflow_root"/>
-
+
<!--
- ================================
- Activities
- ================================
- -->
-
+ ================================
+ Activities
+ ================================
+ -->
+
<record id="view_workflow_activity_form" model="ir.ui.view">
<field name="name">workflow.activity.form</field>
<field name="model">workflow.activity</field>
@@ -59,9 +59,9 @@
<field colspan="4" name="name" select="1"/>
<field name="wkf_id" select="1"/>
<field name="kind" select="1"/>
- <field name="action" select="1"/>
- <field name="action_id" select="1"/>
- <field name="subflow_id"/>
+ <field name="action_id" select="1" colspan="4"/>
+ <field name="action" select="1" colspan="4" attrs="{'readonly':[('kind','=','dummy')]}"/>
+ <field name="subflow_id" attrs="{'readonly':[('kind','&lt;&gt;','subflow')]}"/>
<field name="signal_send"/>
<newline/>
<field name="flow_start"/>
@@ -77,9 +77,7 @@
<field name="condition"/>
<field name="trigger_model"/>
<field name="trigger_expr_id"/>
-
</tree>
-
</field>
<separator colspan="4" string="Incoming transitions"/>
<field colspan="4" name="in_transitions" nolabel="1">
diff --git a/bin/addons/base/module/__init__.py b/bin/addons/base/module/__init__.py
index 08c2fb5917f..2e1a825c35e 100644
--- a/bin/addons/base/module/__init__.py
+++ b/bin/addons/base/module/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py
index 836a6a3ed7d..579231724b2 100644
--- a/bin/addons/base/module/module.py
+++ b/bin/addons/base/module/module.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -219,6 +211,51 @@ class module(osv.osv):
res[m.id] = ''
return res
+ def _get_menus(self, cr, uid, ids, field_name=None, arg=None, context={}):
+ res = {}
+ model_data_obj = self.pool.get('ir.model.data')
+ menu_obj = self.pool.get('ir.ui.menu')
+ for m in self.browse(cr, uid, ids):
+ if m.state == 'installed':
+ menu_txt = ''
+ menus_id = model_data_obj.search(cr,uid,[('module','=',m.name),('model','=','ir.ui.menu')])
+ for data_id in model_data_obj.browse(cr,uid,menus_id):
+ menu_txt += menu_obj.browse(cr,uid,data_id.res_id).complete_name + '\n'
+ res[m.id] = menu_txt
+ else:
+ res[m.id] = ''
+ return res
+
+ def _get_reports(self, cr, uid, ids, field_name=None, arg=None, context={}):
+ res = {}
+ model_data_obj = self.pool.get('ir.model.data')
+ report_obj = self.pool.get('ir.actions.report.xml')
+ for m in self.browse(cr, uid, ids):
+ if m.state == 'installed':
+ report_txt = ''
+ report_id = model_data_obj.search(cr,uid,[('module','=',m.name),('model','=','ir.actions.report.xml')])
+ for data_id in model_data_obj.browse(cr,uid,report_id):
+ report_txt += report_obj.browse(cr,uid,data_id.res_id).name + '\n'
+ res[m.id] = report_txt
+ else:
+ res[m.id] = ''
+ return res
+
+ def _get_views(self, cr, uid, ids, field_name=None, arg=None, context={}):
+ res = {}
+ model_data_obj = self.pool.get('ir.model.data')
+ view_obj = self.pool.get('ir.ui.view')
+ for m in self.browse(cr, uid, ids, context=context):
+ if m.state == 'installed':
+ view_txt = ''
+ view_id = model_data_obj.search(cr,uid,[('module','=',m.name),('model','=','ir.ui.view')])
+ for data_id in model_data_obj.browse(cr,uid,view_id):
+ view_txt += view_obj.browse(cr,uid,data_id.res_id).name + '\n'
+ res[m.id] = view_txt
+ else:
+ res[m.id] = ''
+ return res
+
_columns = {
'name': fields.char("Name", size=128, readonly=True, required=True),
'category_id': fields.many2one('ir.module.category', 'Category', readonly=True),
@@ -242,9 +279,16 @@ class module(osv.osv):
('to install','To be installed')
], string='State', readonly=True),
'demo': fields.boolean('Demo data'),
- 'license': fields.selection([('GPL-2', 'GPL-2'),('GPL-3', 'GPL-3'),
- ('Other proprietary', 'Other proprietary')], string='License',
- readonly=True),
+ 'license': fields.selection([
+ ('GPL-2', 'GPL-2'),
+ ('GPL-2 or any later version', 'GPL-2 or later version'),
+ ('GPL-3', 'GPL-3'),
+ ('GPL-3 or any later version', 'GPL-3 or later version'),
+ ('Other proprietary', 'Other proprietary')
+ ], string='License', readonly=True),
+ 'menus_by_module': fields.function(_get_menus, method=True, string='Menus', type='text'),
+ 'reports_by_module': fields.function(_get_reports, method=True, string='Reports', type='text'),
+ 'views_by_module': fields.function(_get_views, method=True, string='Views', type='text'),
}
_defaults = {
@@ -310,7 +354,7 @@ class module(osv.osv):
m.state not in ('uninstalled','uninstallable','to remove')''', (module.name,))
res = cr.fetchall()
if res:
- raise orm.except_orm(_('Error'), _('The module you are trying to remove depends on installed modules :\n %s') % '\n'.join(map(lambda x: '\t%s: %s' % (x[0], x[1]), res)))
+ raise orm.except_orm(_('Error'), _('Some installed modules depends on the module you plan to desinstall :\n %s') % '\n'.join(map(lambda x: '\t%s: %s' % (x[0], x[1]), res)))
self.write(cr, uid, ids, {'state': 'to remove'})
return True
@@ -380,7 +424,7 @@ class module(osv.osv):
continue
terp_file = addons.get_module_resource(name, '__terp__.py')
mod_path = addons.get_module_path(name)
- if os.path.isdir(mod_path) or os.path.islink(mod_path) or zipfile.is_zipfile(mod_path):
+ if mod_path and (os.path.isdir(mod_path) or os.path.islink(mod_path) or zipfile.is_zipfile(mod_path)):
terp = self.get_module_info(mod_name)
if not terp or not terp.get('installable', True):
continue
@@ -528,10 +572,12 @@ class module(osv.osv):
self.write(cr, uid, [id], {'category_id': p_id})
def action_install(self,cr,uid,ids,context=None):
- self.write(cr , uid, ids ,{'state' : 'to install'})
- self.download(cr, uid, ids, context=context)
- for id in ids:
- cr.execute("select m.id as id from ir_module_module_dependency d inner join ir_module_module m on (m.name=d.name) where d.module_id=%d and m.state='uninstalled'",(id,))
+ for module in self.browse(cr, uid, ids, context):
+ if module.state <> 'uninstalled':
+ continue
+ self.write(cr , uid, [module.id] ,{'state' : 'to install'})
+ self.download(cr, uid, [module.id], context=context)
+ cr.execute("select m.id as id from ir_module_module_dependency d inner join ir_module_module m on (m.name=d.name) where d.module_id=%d and m.state='uninstalled'",(module.id,))
dep_ids = map(lambda x:x[0],cr.fetchall())
if len(dep_ids):
self.action_install(cr,uid,dep_ids,context=context)
@@ -541,9 +587,9 @@ class module(osv.osv):
if not filter_lang:
pool = pooler.get_pool(cr.dbname)
- lang_obj=pool.get('res.lang')
- lang_ids=lang_obj.search(cr, uid, [('translatable', '=', True)])
- filter_lang= [lang.code for lang in lang_obj.browse(cr, uid, lang_ids)]
+ lang_obj = pool.get('res.lang')
+ lang_ids = lang_obj.search(cr, uid, [('translatable', '=', True)])
+ filter_lang = [lang.code for lang in lang_obj.browse(cr, uid, lang_ids)]
elif not isinstance(filter_lang, (list, tuple)):
filter_lang = [filter_lang]
@@ -554,7 +600,7 @@ class module(osv.osv):
for lang in filter_lang:
f = os.path.join(tools.config['addons_path'], mod.name, 'i18n', lang + '.po')
if os.path.exists(f):
- logger.notifyChannel("init", netsvc.LOG_INFO, 'addons %s: loading translation file for language %s' % (mod.name, lang))
+ logger.notifyChannel("init", netsvc.LOG_INFO, 'addon %s: loading translation file for language %s' % (mod.name, lang))
tools.trans_load(cr.dbname, f, lang, verbose=False)
module()
diff --git a/bin/addons/base/module/module_view.xml b/bin/addons/base/module/module_view.xml
index dfec0514bd7..0373a729d74 100644
--- a/bin/addons/base/module/module_view.xml
+++ b/bin/addons/base/module/module_view.xml
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
-
+
<!-- Modules Categories -->
-
+
<record id="view_module_category_form" model="ir.ui.view">
<field name="name">ir.module.category.form</field>
<field name="model">ir.module.category</field>
@@ -16,7 +16,7 @@
</form>
</field>
</record>
-
+
<record id="view_module_category_tree" model="ir.ui.view">
<field name="name">ir.module.category.tree</field>
<field name="model">ir.module.category</field>
@@ -36,9 +36,9 @@
<field name="domain">[('parent_id','=',False)]</field>
</record>
<menuitem action="action_module_category_tree" id="menu_action_module_category_tree" parent="base.menu_management"/>
-
+
<!-- Click on a category -->
-
+
<record id="action_module_open_categ" model="ir.actions.act_window">
<field name="name">Modules</field>
<field name="res_model">ir.module.module</field>
@@ -53,10 +53,10 @@
<field eval="'ir.actions.act_window,%d'%action_module_open_categ" name="value"/>
<field eval="True" name="object"/>
</record>
-
-
+
+
<!-- Modules -->
-
+
<record id="module_form" model="ir.ui.view">
<field name="name">ir.module.module.form</field>
<field name="model">ir.module.module</field>
@@ -95,6 +95,14 @@
</tree>
</field>
</page>
+ <page string="Features" attrs="{'invisible':[('state','!=','installed')]}">
+ <separator string="Created Menus" colspan="4"/>
+ <field colspan="4" name="menus_by_module" nolabel="1"/>
+ <separator string="Created Views" colspan="2"/>
+ <separator string="Defined Reports" colspan="2"/>
+ <field colspan="2" name="views_by_module" nolabel="1"/>
+ <field colspan="2" name="reports_by_module" nolabel="1"/>
+ </page>
</notebook>
</form>
</field>
@@ -123,7 +131,7 @@
<field name="domain"/>
</record>
<menuitem action="open_module_tree" id="menu_module_tree" parent="base.menu_management"/>
-
+
<record id="open_module_tree_install" model="ir.actions.act_window">
<field name="name">Installed modules</field>
<field name="res_model">ir.module.module</field>
@@ -148,7 +156,7 @@
<field name="domain">[('state','in', ['to upgrade', 'to remove', 'to install'])]</field>
</record>
<menuitem action="open_module_tree_upgrade" id="menu_module_tree_upgrade" parent="base.menu_module_tree"/>
-
+
<record id="repository_form" model="ir.ui.view">
<field name="name">ir.module.repository.form</field>
<field name="model">ir.module.repository</field>
@@ -183,7 +191,7 @@
<field name="view_mode">tree,form</field>
<field name="context">{'active_test': False}</field>
</record>
- <menuitem action="open_repository_tree" id="menu_module_repository_tree" parent="base.menu_management"/>
+ <menuitem action="open_repository_tree" id="menu_module_repository_tree" parent="base.menu_management"/>
</data>
</openerp>
diff --git a/bin/addons/base/module/report/__init__.py b/bin/addons/base/module/report/__init__.py
index 1617a75382f..e2e7dbdf7dd 100644
--- a/bin/addons/base/module/report/__init__.py
+++ b/bin/addons/base/module/report/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/module/report/ir_module_reference.rml b/bin/addons/base/module/report/ir_module_reference.rml
index e4ab73dfabb..156abdba246 100644
--- a/bin/addons/base/module/report/ir_module_reference.rml
+++ b/bin/addons/base/module/report/ir_module_reference.rml
@@ -112,7 +112,7 @@
<blockTable colWidths="276.0,234.0" repeatRows="1" style="Tableau2">
<tr>
<td>
- <para style="Standard">Name: [[ module.shortdesc]]</para>
+ <pre style="Standard">Name: [[ objdoc(module.shortdesc) ]]</pre>
</td>
<td>
<para style="Standard">Version: [[module.latest_version]]</para>
@@ -127,7 +127,7 @@
</td>
</tr>
</blockTable>
- <para style="P6">[[ module.description ]]</para>
+ <pre style="P6">[[ module.description ]]</pre>
<section>
<para style="Standard">[[ repeatIn(findobj(module.name) ,'object') ]]</para>
<blockTable colWidths="510.0" repeatRows="1" style="Tableau3">
diff --git a/bin/addons/base/module/report/ir_module_reference_print.py b/bin/addons/base/module/report/ir_module_reference_print.py
index 83a42826bd9..b5c3468a0b3 100644
--- a/bin/addons/base/module/report/ir_module_reference_print.py
+++ b/bin/addons/base/module/report/ir_module_reference_print.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/module/wizard/__init__.py b/bin/addons/base/module/wizard/__init__.py
index 9319cbcc660..c46811e5eeb 100644
--- a/bin/addons/base/module/wizard/__init__.py
+++ b/bin/addons/base/module/wizard/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/module/wizard/add_new.py b/bin/addons/base/module/wizard/add_new.py
index 7be53d22cf6..d117ceacff2 100644
--- a/bin/addons/base/module/wizard/add_new.py
+++ b/bin/addons/base/module/wizard/add_new.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be)
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contact a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/module/wizard/wizard_export_lang.py b/bin/addons/base/module/wizard/wizard_export_lang.py
index abd82cdef68..2e9751e55e5 100644
--- a/bin/addons/base/module/wizard/wizard_export_lang.py
+++ b/bin/addons/base/module/wizard/wizard_export_lang.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/module/wizard/wizard_import_lang.py b/bin/addons/base/module/wizard/wizard_import_lang.py
index f8a41dedafc..27e5eff26d8 100644
--- a/bin/addons/base/module/wizard/wizard_import_lang.py
+++ b/bin/addons/base/module/wizard/wizard_import_lang.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/module/wizard/wizard_module_import.py b/bin/addons/base/module/wizard/wizard_module_import.py
index c79c2b05980..9471ea651b3 100644
--- a/bin/addons/base/module/wizard/wizard_module_import.py
+++ b/bin/addons/base/module/wizard/wizard_module_import.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/module/wizard/wizard_module_lang_install.py b/bin/addons/base/module/wizard/wizard_module_lang_install.py
index 2ebe243b705..a3c4d6bdb99 100644
--- a/bin/addons/base/module/wizard/wizard_module_lang_install.py
+++ b/bin/addons/base/module/wizard/wizard_module_lang_install.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -47,7 +39,7 @@ view_form = """<?xml version="1.0"?>
<group colspan="2" col="4">
<separator string="System Upgrade" colspan="4"/>
<label align="0.0" string="Choose a language to install:" colspan="4"/>
- <field name="lang" colspan="4"/>
+ <field name="lang" colspan="4" required="1"/>
<label align="0.0" string="Note that this operation may take a few minutes." colspan="4"/>
</group>
</form>"""
diff --git a/bin/addons/base/module/wizard/wizard_module_upgrade.py b/bin/addons/base/module/wizard/wizard_module_upgrade.py
index 15a0195b151..64db951bdf3 100644
--- a/bin/addons/base/module/wizard/wizard_module_upgrade.py
+++ b/bin/addons/base/module/wizard/wizard_module_upgrade.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -87,26 +79,19 @@ class wizard_info_get(wizard.interface):
db, pool = pooler.get_db_and_pool(cr.dbname)
cr = db.cursor()
mod_obj = pool.get('ir.module.module')
- ids = mod_obj.search(cr, uid, [
- ('state', 'in', ['to upgrade', 'to remove', 'to install'])])
- unmet_packages=[]
+ ids = mod_obj.search(cr, uid, [('state', 'in', ['to upgrade', 'to remove', 'to install'])])
+ unmet_packages = []
mod_dep_obj = pool.get('ir.module.module.dependency')
- for mod in mod_obj.browse(cr,uid,ids):
- depends_mod_ids=mod_dep_obj.search(cr,uid,[('module_id','=',mod.id)])
- for dep_mod in mod_dep_obj.browse(cr,uid,depends_mod_ids):
+ for mod in mod_obj.browse(cr, uid, ids):
+ depends_mod_ids = mod_dep_obj.search(cr, uid, [('module_id', '=', mod.id)])
+ for dep_mod in mod_dep_obj.browse(cr, uid, depends_mod_ids):
if dep_mod.state in ('unknown','uninstalled'):
unmet_packages.append(dep_mod.name)
if len(unmet_packages):
- raise wizard.except_wizard('Unmet dependency !','Following modules are uninstalled or unknown. \n\n'+'\n'.join(unmet_packages))
+ raise wizard.except_wizard('Unmet dependency !', 'Following modules are uninstalled or unknown. \n\n'+'\n'.join(unmet_packages))
mod_obj.download(cr, uid, ids, context=context)
cr.commit()
db, pool = pooler.restart_pool(cr.dbname, update_module=True)
-
- # Update translations for all installed languages
- cr = db.cursor()
- modobj = pool.get('ir.module.module')
- mids = modobj.search(cr, uid, [('state', '=', 'installed')])
- modobj.update_translations(cr, uid, mids, None)
return {}
def _config(self, cr, uid, data, context=None):
diff --git a/bin/addons/base/module/wizard/wizard_update_module.py b/bin/addons/base/module/wizard/wizard_update_module.py
index 961a2db9663..1193d833d4f 100644
--- a/bin/addons/base/module/wizard/wizard_update_module.py
+++ b/bin/addons/base/module/wizard/wizard_update_module.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/module/wizard/wizard_update_translations.py b/bin/addons/base/module/wizard/wizard_update_translations.py
index 980eadc5d8a..83571e2e63d 100644
--- a/bin/addons/base/module/wizard/wizard_update_translations.py
+++ b/bin/addons/base/module/wizard/wizard_update_translations.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/res/__init__.py b/bin/addons/base/res/__init__.py
index 9d1e7dffcb2..e2cfad9cb32 100644
--- a/bin/addons/base/res/__init__.py
+++ b/bin/addons/base/res/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/res/bank.py b/bin/addons/base/res/bank.py
index aa44e9ec32c..390c1949772 100644
--- a/bin/addons/base/res/bank.py
+++ b/bin/addons/base/res/bank.py
@@ -1,31 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -55,6 +46,11 @@ class Bank(osv.osv):
_defaults = {
'active': lambda *a: 1,
}
+ def name_get(self, cr, uid, ids, context=None):
+ result = []
+ for bank in self.browse(cr, uid, ids, context):
+ result.append((bank.id, (bank.bic and (bank.bic + ' - ') or '') + bank.name))
+ return result
Bank()
diff --git a/bin/addons/base/res/country.py b/bin/addons/base/res/country.py
index a77c5025477..7e560aafed3 100644
--- a/bin/addons/base/res/country.py
+++ b/bin/addons/base/res/country.py
@@ -1,31 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/res/ir_property.py b/bin/addons/base/res/ir_property.py
index bea7c9cba15..52700dbd942 100644
--- a/bin/addons/base/res/ir_property.py
+++ b/bin/addons/base/res/ir_property.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/res/partner/__init__.py b/bin/addons/base/res/partner/__init__.py
index f8b82909563..5ca2e49e845 100644
--- a/bin/addons/base/res/partner/__init__.py
+++ b/bin/addons/base/res/partner/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/res/partner/crm.py b/bin/addons/base/res/partner/crm.py
index d3fdf8bc9ae..265ad9594fb 100644
--- a/bin/addons/base/res/partner/crm.py
+++ b/bin/addons/base/res/partner/crm.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/res/partner/partner.py b/bin/addons/base/res/partner/partner.py
index b419f35c941..f5a7bf5a3bb 100644
--- a/bin/addons/base/res/partner/partner.py
+++ b/bin/addons/base/res/partner/partner.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -140,7 +132,6 @@ class res_partner(osv.osv):
'ref': fields.char('Code', size=64),
'lang': fields.selection(_lang_get, 'Language', size=5, help="If the selected language is loaded in the system, all documents related to this partner will be printed in this language. If not, it will be english."),
'user_id': fields.many2one('res.users', 'Dedicated Salesman', help='The internal user that is in charge of communicating with this partner if any.'),
- 'responsible': fields.many2one('res.users', 'Users'),
'vat': fields.char('VAT',size=32 ,help="Value Added Tax number"),
'bank_ids': fields.one2many('res.partner.bank', 'partner_id', 'Banks'),
'website': fields.char('Website',size=64),
@@ -247,18 +238,6 @@ class res_partner(osv.osv):
result[a] = adr.get(a, default_address)
return result
- def property_get(self, cr, uid, ids,property_pref=[]):
- select = ids
- if isinstance(ids, (int, long)):
- select = [ids]
- result=self.read(cr,uid,select,property_pref)
- for res in result:
- for prt in property_pref:
- res[prt] = res[prt] and res[prt][0] or False
- if isinstance(ids, (int, long)):
- return result[0]
- return result
-
def gen_next_ref(self, cr, uid, ids):
if len(ids) != 1:
return True
@@ -290,7 +269,7 @@ class res_partner_address(osv.osv):
_name = 'res.partner.address'
_order = 'id'
_columns = {
- 'partner_id': fields.many2one('res.partner', 'Partner', ondelete='cascade', select=True),
+ 'partner_id': fields.many2one('res.partner', 'Partner', ondelete='cascade', select=True, help="Keep empty for a private address, not related to partner."),
'type': fields.selection( [ ('default','Default'),('invoice','Invoice'), ('delivery','Delivery'), ('contact','Contact'), ('other','Other') ],'Address Type', help="Used to select automatically the right address according to the context in sales and purchases documents."),
'function': fields.many2one('res.partner.function', 'Function'),
'title': fields.selection(_contact_title_get, 'Title', size=32),
diff --git a/bin/addons/base/res/partner/partner_view.xml b/bin/addons/base/res/partner/partner_view.xml
index a4948f3915b..20415833f67 100644
--- a/bin/addons/base/res/partner/partner_view.xml
+++ b/bin/addons/base/res/partner/partner_view.xml
@@ -3,7 +3,8 @@
<data>
<menuitem icon="terp-partner" id="menu_base_partner" name="Partners" sequence="0"/>
- <menuitem id="menu_base_config" name="Configuration" parent="menu_base_partner" sequence="1"/>
+ <menuitem id="menu_base_config" name="Configuration" parent="menu_base_partner" sequence="1"
+ groups="group_system"/>
<!--
================================
@@ -208,8 +209,8 @@
<field name="name"/>
<field name="title"/>
<field name="ref"/>
- <field name="city"/>
- <field name="country"/>
+ <field name="city" select="2"/>
+ <field name="country" select="2"/>
<field name="lang"/>
</tree>
</field>
@@ -227,8 +228,6 @@
<field domain="[('domain', '=', 'partner')]" name="title"/>
<field name="lang" select="2"/>
<field name="supplier" select="2"/>
- <field name="city" select="2" invisible="1"/>
- <field name="country" select="2" invisible="1"/>
</group>
<notebook colspan="4">
<page string="General">
@@ -338,7 +337,10 @@
<field name="view_type">form</field>
<field name="view_mode">form,tree</field>
</record>
- <menuitem action="action_partner_customer_form_new" id="menu_partner_customer_form_new" parent="menu_partner_form"/>
+ <menuitem
+ action="action_partner_customer_form_new"
+ sequence="50"
+ id="menu_partner_customer_form_new" parent="menu_partner_form"/>
<record id="view_payterm_form" model="ir.ui.view">
<field name="name">res.payterm</field>
@@ -503,7 +505,7 @@
<field name="view_id" ref="view_partner_category_tree"/>
<field name="domain">[('parent_id','=',False)]</field>
</record>
- <menuitem action="action_partner_category" id="menu_partner_category_main" parent="base.menu_base_partner" sequence="1"/>
+ <menuitem action="action_partner_category" id="menu_partner_category_main" parent="base.menu_partner_form" sequence="1"/>
<record id="action_partner_by_category" model="ir.actions.act_window">
<field name="name" eval="False"/>
@@ -529,5 +531,10 @@
</record>
<menuitem action="action_partner_category_form" id="menu_partner_category_form" parent="base.menu_base_config"/>
+ <act_window domain="[('partner_id', '=', active_id)]"
+ id="act_res_partner_event" name="Events"
+ res_model="res.partner.event"
+ src_model="res.partner"/>
+
</data>
</openerp>
diff --git a/bin/addons/base/res/partner/report/__init__.py b/bin/addons/base/res/partner/report/__init__.py
index 6dc12900577..d24c71bcfec 100644
--- a/bin/addons/base/res/partner/report/__init__.py
+++ b/bin/addons/base/res/partner/report/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/res/partner/wizard/__init__.py b/bin/addons/base/res/partner/wizard/__init__.py
index a6509c6e658..7beb03df9c0 100644
--- a/bin/addons/base/res/partner/wizard/__init__.py
+++ b/bin/addons/base/res/partner/wizard/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/res/partner/wizard/wizard_clear_ids.py b/bin/addons/base/res/partner/wizard/wizard_clear_ids.py
index dffcebc7def..6d3a3623f2a 100644
--- a/bin/addons/base/res/partner/wizard/wizard_clear_ids.py
+++ b/bin/addons/base/res/partner/wizard/wizard_clear_ids.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/res/partner/wizard/wizard_ean_check.py b/bin/addons/base/res/partner/wizard/wizard_ean_check.py
index ef2a42b0ed3..2b7111909f0 100644
--- a/bin/addons/base/res/partner/wizard/wizard_ean_check.py
+++ b/bin/addons/base/res/partner/wizard/wizard_ean_check.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/res/partner/wizard/wizard_sms.py b/bin/addons/base/res/partner/wizard/wizard_sms.py
index 069dfd99177..6a5bebb2741 100644
--- a/bin/addons/base/res/partner/wizard/wizard_sms.py
+++ b/bin/addons/base/res/partner/wizard/wizard_sms.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/res/partner/wizard/wizard_spam.py b/bin/addons/base/res/partner/wizard/wizard_spam.py
index ef47f04e42b..030283bbe44 100644
--- a/bin/addons/base/res/partner/wizard/wizard_spam.py
+++ b/bin/addons/base/res/partner/wizard/wizard_spam.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -58,7 +50,7 @@ def _mass_mail_send(self, cr, uid, data, context):
to = '%s <%s>' % (name, adr.email)
#TODO: add some tests to check for invalid email addresses
#CHECKME: maybe we should use res.partner/email_send
- tools.email_send(data['form']['from'], [to], data['form']['subject'], data['form']['text'])
+ tools.email_send(data['form']['from'], [to], data['form']['subject'], data['form']['text'],subtype='html')
nbr += 1
pooler.get_pool(cr.dbname).get('res.partner.event').create(cr, uid,
{'name': 'Email sent through mass mailing',
diff --git a/bin/addons/base/res/res_company.py b/bin/addons/base/res/res_company.py
index f7e6f94c342..faddf9c1407 100644
--- a/bin/addons/base/res/res_company.py
+++ b/bin/addons/base/res/res_company.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -126,7 +118,7 @@ class res_company(osv.osv):
<setFont name="Helvetica" size="8"/>
<drawRightString x="19.7cm" y="28.3cm"><pageNumber/> / </drawRightString>
<drawString x="19.8cm" y="28.3cm"><pageCount/></drawString>
- <stroke color="#aaaaaa"/>
+ <stroke color="#000000"/>
<lines>1.3cm 28.1cm 20cm 28.1cm</lines>
</pageGraphics>
</pageTemplate>
diff --git a/bin/addons/base/res/res_currency.py b/bin/addons/base/res/res_currency.py
index 55de9ecc380..b3849c0e352 100644
--- a/bin/addons/base/res/res_currency.py
+++ b/bin/addons/base/res/res_currency.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import time
@@ -45,6 +37,7 @@ class res_currency(osv.osv):
date=context['date']
else:
date=time.strftime('%Y-%m-%d')
+ date= date or time.strftime('%Y-%m-%d')
for id in ids:
cr.execute("SELECT currency_id, rate FROM res_currency_rate WHERE currency_id = %d AND name <= '%s' ORDER BY name desc LIMIT 1" % (id, date))
if cr.rowcount:
@@ -79,7 +72,7 @@ class res_currency(osv.osv):
def is_zero(self, cr, uid, currency, amount):
return abs(self.round(cr, uid, currency, amount)) < currency.rounding
- def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context={}):
+ def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context={}, account=None, account_invert=False):
if not from_currency_id:
from_currency_id = to_currency_id
xc=self.browse(cr, uid, [from_currency_id,to_currency_id], context=context)
@@ -94,6 +87,16 @@ class res_currency(osv.osv):
raise osv.except_osv(_('Error'), _('No rate found \n' \
'for the currency: %s \n' \
'at the date: %s') % (code, date))
+ rate = to_currency.rate/from_currency.rate
+ if account and (account.currency_mode=='average') and account.currency_id:
+ q = self.pool.get('account.move.line')._query_get(cr, uid, context=context)
+ cr.execute('select sum(debit-credit),sum(amount_currency) from account_move_line l ' \
+ 'where l.currency_id=%d and l.account_id=%d and '+q, (account.currency_id.id,account.id,))
+ tot1,tot2 = cr.fetchone()
+ if tot2 and not account_invert:
+ rate = float(tot1)/float(tot2)
+ elif tot1 and account_invert:
+ rate = float(tot2)/float(tot1)
if to_currency_id==from_currency_id:
if round:
return self.round(cr, uid, to_currency, from_amount)
@@ -101,9 +104,10 @@ class res_currency(osv.osv):
return from_amount
else:
if round:
- return self.round(cr, uid, to_currency, from_amount * to_currency.rate/from_currency.rate)
+ return self.round(cr, uid, to_currency, from_amount * rate)
else:
- return (from_amount * to_currency.rate/from_currency.rate)
+ return (from_amount * rate)
+
def name_search(self, cr, uid, name, args=[], operator='ilike', context={}, limit=80):
args2 = args[:]
if name:
diff --git a/bin/addons/base/res/res_lang.py b/bin/addons/base/res/res_lang.py
index 3d09a57695c..bdf8c25d283 100644
--- a/bin/addons/base/res/res_lang.py
+++ b/bin/addons/base/res/res_lang.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/res/res_request.py b/bin/addons/base/res/res_request.py
index 9fe5e21266e..2dd6f1ad4ce 100644
--- a/bin/addons/base/res/res_request.py
+++ b/bin/addons/base/res/res_request.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/addons/base/res/res_security.xml b/bin/addons/base/res/res_security.xml
index 85d00551521..5db58070619 100644
--- a/bin/addons/base/res/res_security.xml
+++ b/bin/addons/base/res/res_security.xml
@@ -1,10 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
-<data noupdate="1">
+<data noupdate="0">
<record model="res.groups" id="group_partner_manager">
<field name="name">Partner Manager</field>
</record>
+ <record model="ir.ui.menu" id="menu_base_config">
+ <field eval="[(6,0,[ref('group_system'), ref('group_partner_manager')])]" name="groups_id"/>
+ </record>
+
+ <record model="ir.ui.menu" id="menu_partner_customer_form_new">
+ <field eval="[(6,0,[ref('group_partner_manager')])]" name="groups_id"/>
+ </record>
+
</data>
</openerp>
diff --git a/bin/addons/base/res/res_user.py b/bin/addons/base/res/res_user.py
index 28529e5ce41..d9f84a0d29d 100644
--- a/bin/addons/base/res/res_user.py
+++ b/bin/addons/base/res/res_user.py
@@ -1,31 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
-# Copyright (c) 2008 Camptocamp SA
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -57,6 +48,7 @@ class groups(osv.osv):
res = super(groups, self).write(cr, uid, ids, vals, context=context)
# Restart the cache on the company_get method
self.pool.get('ir.rule').domain_get()
+ self.pool.get('ir.model.access').check()
return res
def create(self, cr, uid, vals, context=None):
diff --git a/bin/addons/base/security/base_security.xml b/bin/addons/base/security/base_security.xml
index 0dbbb974661..921765bc0dd 100644
--- a/bin/addons/base/security/base_security.xml
+++ b/bin/addons/base/security/base_security.xml
@@ -39,7 +39,7 @@
</record>
- <!-- Set access to menu -->
+ <!-- Set accesses to menu -->
<record model="ir.ui.menu" id="base.menu_administration">
<field name="groups_id" eval="[(6,0, [ref('group_system'), ref('group_erp_manager')])]"/>
</record>
@@ -51,6 +51,23 @@
<record id="base.menu_users" model="ir.ui.menu">
<field eval="[(6,0,[ref('base.group_erp_manager')])]" name="groups_id"/>
</record>
+
+ <record id="base.menu_action_currency_form" model="ir.ui.menu">
+ <field eval="[(6,0,[ref('base.group_system')])]" name="groups_id"/>
+ </record>
+
+ <record id="base.menu_custom" model="ir.ui.menu">
+ <field eval="[(6,0,[ref('base.group_system')])]" name="groups_id"/>
+ </record>
+
+ <record id="base.menu_translation" model="ir.ui.menu">
+ <!-- FIXME: a "Usability / Translations" group ?? -->
+ <field eval="[(6,0,[ref('base.group_system')])]" name="groups_id"/>
+ </record>
+
+ <record id="base.menu_management" model="ir.ui.menu">
+ <field eval="[(6,0,[ref('base.group_system')])]" name="groups_id"/>
+ </record>
</data>
</openerp>
diff --git a/bin/addons/base/security/ir.model.access.csv b/bin/addons/base/security/ir.model.access.csv
index 5636b89b92d..cb83448b72b 100644
--- a/bin/addons/base/security/ir.model.access.csv
+++ b/bin/addons/base/security/ir.model.access.csv
@@ -1,7 +1,7 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
-"access_ir_attachment_group_user","ir_attachment group_system_user","model_ir_attachment","group_user",1,1,1,1
-"access_ir_attachment_group_system","ir_attachment group_system","model_ir_attachment",,1,0,0,0
+"access_ir_attachment_group_system","ir_attachment group_system","model_ir_attachment",,1,1,1,1
"access_ir_cron_group_cron","ir_cron group_cron","model_ir_cron","group_system",1,1,1,1
+"access_ir_cron_user","ir_cron user","model_ir_cron","group_user",1,0,0,0
"access_ir_default_group_system","ir_default group_system","model_ir_default",,1,1,1,1
"access_ir_exports_group_system","ir_exports group_system","model_ir_exports",,1,1,1,1
"access_ir_exports_line_group_system","ir_exports_line group_system","model_ir_exports_line",,1,1,1,1
@@ -32,8 +32,11 @@
"access_ir_sequence_type_group_user","ir_sequence_type group_user","model_ir_sequence_type",,1,0,0,0
"access_ir_translation_group_system","ir_translation group_system","model_ir_translation",,1,1,1,1
"access_ir_ui_menu_group_user","ir_ui_menu group_user","model_ir_ui_menu",,1,0,0,0
+"access_ir_ui_menu_group_system","ir_ui_menu group_system","model_ir_ui_menu","group_system",1,1,1,1
"access_ir_ui_view_group_user","ir_ui_view group_user","model_ir_ui_view",,1,0,0,0
+"access_ir_ui_view_group_system","ir_ui_view group_system","model_ir_ui_view","group_system",1,1,1,1
"access_ir_ui_view_custom_group_user","ir_ui_view_custom_group_user","model_ir_ui_view_custom",,1,0,0,0
+"access_ir_ui_view_custom_group_system","ir_ui_view_custom_group_system","model_ir_ui_view_custom","group_system",1,1,1,1
"access_ir_ui_view_sc_group_user","ir_ui_view_sc group_user","model_ir_ui_view_sc",,1,1,1,1
"access_ir_values_group_erp_manager","ir_values group_erp_manager","model_ir_values",,1,1,1,1
"access_wizard_ir_model_menu_create_group_system","wizard_ir_model_menu_create group_system","model_wizard_ir_model_menu_create","group_system",1,1,1,1
@@ -47,59 +50,74 @@
"access_res_country_state_group_user","res_country_state group_user","model_res_country_state","group_partner_manager",1,1,1,1
"access_res_currency_group_all","res_currency group_all","model_res_currency",,1,0,0,0
"access_res_currency_rate_group_all","res_currency_rate group_all","model_res_currency_rate",,1,0,0,0
-"access_res_currency_group_user","res_currency group_user","model_res_currency","group_user",1,1,1,1
-"access_res_currency_rate_group_user","res_currency_rate group_user","model_res_currency_rate","group_user",1,1,1,1
+"access_res_currency_group_system","res_currency group_system","model_res_currency","group_system",1,1,1,1
+"access_res_currency_rate_group_system","res_currency_rate group_system","model_res_currency_rate","group_system",1,1,1,1
"access_res_groups_group_erp_manager","res_groups group_erp_manager","model_res_groups","group_erp_manager",1,1,1,1
"access_res_groups_group_user","res_groups group_user","model_res_groups",,1,0,0,0
"access_res_lang_group_all","res_lang group_all","model_res_lang",,1,0,0,0
"access_res_lang_group_user","res_lang group_user","model_res_lang","group_system",1,1,1,1
"access_res_partner_group_partner_manager","res_partner group_partner_manager","model_res_partner","group_partner_manager",1,1,1,1
-"access_res_partner_group_user","res_partner group_user","model_res_partner",,1,0,0,0
+"access_res_partner_group_user","res_partner group_user","model_res_partner",group_user,1,0,0,0
"access_res_partner_address_group_partner_manager","res_partner_address group_partner_manager","model_res_partner_address","group_partner_manager",1,1,1,1
-"access_res_partner_address_group_user","res_partner_address group_user","model_res_partner_address",,1,0,0,0
-"access_res_partner_bank_group_user","res_partner_bank group_user","model_res_partner_bank",,1,0,0,0
+"access_res_partner_address_group_user","res_partner_address group_user","model_res_partner_address",group_user,1,0,0,0
+"access_res_partner_bank_group_user","res_partner_bank group_user","model_res_partner_bank",group_user,1,0,0,0
"access_res_partner_bank_group_partner_manager","res_partner_bank group_partner_manager","model_res_partner_bank","group_partner_manager",1,1,1,1
"access_res_partner_bank_type_group_partner_manager","res_partner_bank_type group_partner_manager","model_res_partner_bank_type","group_partner_manager",1,1,1,1
-"access_res_partner_bank_type_group_user","res_partner_bank_type group_user","model_res_partner_bank_type",,1,0,0,0
+"access_res_partner_bank_type_group_user","res_partner_bank_type group_user","model_res_partner_bank_type",group_user,1,0,0,0
"access_res_partner_bank_type_field_group_partner_manager","res_partner_bank_type_field group_partner_manager","model_res_partner_bank_type_field","group_partner_manager",1,1,1,1
-"access_res_partner_bank_type_field_group_user","res_partner_bank_type_field group_user","model_res_partner_bank_type_field",,1,0,0,0
-"access_res_partner_canal_group_user","res_partner_canal group_user","model_res_partner_canal",,1,0,0,0
+"access_res_partner_bank_type_field_group_user","res_partner_bank_type_field group_user","model_res_partner_bank_type_field",group_user,1,0,0,0
+"access_res_partner_canal_group_user","res_partner_canal group_user","model_res_partner_canal",group_user,1,0,0,0
"access_res_partner_canal_group_partner_manager","res_partner_canal group_partner_manager","model_res_partner_canal","group_partner_manager",1,1,1,1
-"access_res_partner_category_group_user","res_partner_category group_user","model_res_partner_category","group_partner_manager",1,1,1,0
-"access_res_partner_category_group_partner_manager","res_partner_category group_partner_manager","model_res_partner_category",,1,0,0,1
-"access_res_partner_event_group_user","res_partner_event group_user","model_res_partner_event",,1,1,1,1
+"access_res_partner_category_group_user","res_partner_category group_user","model_res_partner_category",group_user,1,0,0,0
+"access_res_partner_category_group_partner_manager","res_partner_category group_partner_manager","model_res_partner_category","group_partner_manager",1,1,1,1
+"access_res_partner_event_group_user","res_partner_event group_user","model_res_partner_event",group_user,1,1,1,1
+"access_res_partner_event_group_partner_manager","res_partner_event group_partner_manager","model_res_partner_event","group_partner_manager",1,1,1,1
"access_res_partner_event_type_group_partner_manager","res_partner_event_type group_partner_manager","model_res_partner_event_type","group_partner_manager",1,1,1,1
-"access_res_partner_event_type_group_user","res_partner_event_type group_user","model_res_partner_event_type",,1,0,0,0
+"access_res_partner_event_type_group_user","res_partner_event_type group_user","model_res_partner_event_type",group_user,1,0,0,0
"access_res_partner_function_group_user","res_partner_function group_user","model_res_partner_function","group_partner_manager",1,1,1,1
-"access_res_partner_function_group_partner_manager","res_partner_function group_partner_manager","model_res_partner_function",,1,0,0,0
+"access_res_partner_function_group_partner_manager","res_partner_function group_partner_manager","model_res_partner_function",group_user,1,0,0,0
"access_res_partner_som_group_user","res_partner_som group_user","model_res_partner_som","group_partner_manager",1,1,1,1
-"access_res_partner_som_group_partner_manager","res_partner_som group_partner_manager","model_res_partner_som",,1,0,0,0
+"access_res_partner_som_group_partner_manager","res_partner_som group_partner_manager","model_res_partner_som",group_user,1,0,0,0
"access_res_partner_title_group_user","res_partner_title group_user","model_res_partner_title","group_partner_manager",1,1,1,1
-"access_res_partner_title_group_partner_manager","res_partner_title group_partner_manager","model_res_partner_title",,1,0,0,0
+"access_res_partner_title_group_partner_manager","res_partner_title group_partner_manager","model_res_partner_title",group_user,1,0,0,0
"access_res_request_group_user","res_request group_user","model_res_request",,1,1,1,1
"access_res_request_history_group_user","res_request_history group_user","model_res_request_history",,1,1,1,1
"access_res_request_link_group_system","res_request_link group_system","model_res_request_link","group_system",1,1,1,1
"access_res_request_link_group_user","res_request_link group_user","model_res_request_link",,1,0,0,0
-"access_res_users_group_user","res_users group_user","model_res_users",,1,0,0,0
+"access_res_users_all","res_users all","model_res_users",,1,0,0,0
"access_res_users_group_erp_manager","res_users group_erp_manager","model_res_users","group_erp_manager",1,1,1,1
"access_ir_actions_all","ir_actions_all","model_ir_actions_actions",,1,0,0,0
+"access_ir_actions_group_system","ir_actions_group_system","model_ir_actions_actions","group_system",1,1,1,1
"access_ir_actions_act_window_all","ir_actions_act_window_all","model_ir_actions_act_window",,1,0,0,0
-"access_ir_actions_act_window_close_group_all","ir_actions_act_window_close_all","model_ir_actions_act_window_close",,1,0,0,0
+"access_ir_actions_act_window_system","ir_actions_act_window_system","model_ir_actions_act_window","group_system",1,1,1,1
+"access_ir_actions_act_window_close_all","ir_actions_act_window_close_all","model_ir_actions_act_window_close",,1,0,0,0
+"access_ir_actions_act_window_close_group_system","ir_actions_act_window_close_group_system","model_ir_actions_act_window_close","group_system",1,1,1,1
"access_ir_actions_report_xml_all","ir_actions_report_xml","model_ir_actions_report_xml",,1,0,0,0
+"access_ir_actions_report_xml_group_system","ir_actions_report_xml_group_system","model_ir_actions_report_xml","group_system",1,1,1,1
"access_ir_actions_wizard_all","ir_actions_wizard","model_ir_actions_wizard",,1,0,0,0
+"access_ir_actions_wizard_group_system","ir_actions_wizard_group_system","model_ir_actions_wizard","group_system",1,1,1,1
"access_ir_actions_todo_group_system","ir_actions_todo group system","model_ir_actions_todo","group_system",1,1,1,1
"access_ir_actions_config_wiz_group_system","ir_actions_configuration_wizard group system","model_ir_actions_configuration_wizard","group_system",1,1,1,1
-"access_workflow_group_system","workflow_group_system","model_workflow","group_system",1,0,0,0
-"access_workflow_activity_group_system","workflow_activity_group_system","model_workflow_activity","group_system",1,0,0,0
-"access_workflow_instance_group_system","workflow_instance_group_system","model_workflow_instance","group_system",1,0,0,0
-"access_workflow_transition_group_system","workflow_transition_group_system","model_workflow_transition","group_system",1,0,0,0
-"access_workflow_triggers_group_system","workflow_triggers_group_system","model_workflow_triggers","group_system",1,0,0,0
-"access_workflow_workitem_group_system","workflow_workitem_group_system","model_workflow_workitem","group_system",1,0,0,0
-"access_actions_report_custom_group_system","ir_actions_report_custom_group_system","model_ir_actions_report_custom","group_system",1,0,0,0
-"access_ir_actions_act_window_view_group_employee","ir_actions_act_window_view_group_employee","model_ir_actions_act_window_view","group_system",1,0,0,0
-"access_ir_actions_url_group_user","ir_actions_url_group_user","model_ir_actions_url","group_system",1,0,0,0
-"access_ir_server_object_lines_group_user","ir_server_object_lines_group_user","model_ir_server_object_lines","group_system",1,0,0,0
-"access_ir_actions_server_group_user","ir_actions_server_group_user","model_ir_actions_server","group_system",1,0,0,0
+"access_workflow_all","workflow_all","model_workflow",,1,0,0,0
+"access_workflow_group_system","workflow_group_system","model_workflow","group_system",1,1,1,1
+"access_workflow_activity_all","workflow_activity_all","model_workflow_activity",,1,0,0,0
+"access_workflow_activity_group_system","workflow_activity_group_system","model_workflow_activity","group_system",1,1,1,1
+"access_workflow_instance_all","workflow_instance_all","model_workflow_instance",,1,1,1,1
+"access_workflow_transition_all","workflow_transition_all","model_workflow_transition",,1,0,0,0
+"access_workflow_transition_group_system","workflow_transition_group_system","model_workflow_transition","group_system",1,1,1,1
+"access_workflow_triggers_all","workflow_triggers_all","model_workflow_triggers",,1,0,0,0
+"access_workflow_triggers_group_system","workflow_triggers_group_system","model_workflow_triggers","group_system",1,1,1,1
+"access_workflow_workitem_all","workflow_workitem_all","model_workflow_workitem",,1,1,1,1
+"access_actions_report_custom_all","ir_actions_report_custom_all","model_ir_actions_report_custom",,1,0,0,0
+"access_actions_report_custom_group_system","ir_actions_report_custom_group_system","model_ir_actions_report_custom","group_system",1,1,1,1
+"access_ir_actions_act_window_view_all","ir_actions_act_window_view_all","model_ir_actions_act_window_view",,1,0,0,0
+"access_ir_actions_act_window_view_group_system","ir_actions_act_window_view_group_system","model_ir_actions_act_window_view","group_system",1,1,1,1
+"access_ir_actions_url_all","ir_actions_url_all","model_ir_actions_url",,1,0,0,0
+"access_ir_actions_url_group_system","ir_actions_url_group_system","model_ir_actions_url","group_system",1,1,1,1
+"access_ir_server_object_lines_all","ir_server_object_lines_all","model_ir_server_object_lines",,1,0,0,0
+"access_ir_server_object_lines_group_system","ir_server_object_lines_group_system","model_ir_server_object_lines","group_system",1,1,1,1
+"access_ir_actions_server_all","ir_actions_server_all","model_ir_actions_server",,1,0,0,0
+"access_ir_actions_server_group_system","ir_actions_server_group_system","model_ir_actions_server","group_system",1,1,1,1
"access_module_update_translations_group_user","wizard_update_translations_group_user","model_wizard_module_update_translations","group_system",1,1,1,1
"access_res_bank_group_system","res_bank_group_system","model_res_bank","group_system",1,1,1,1
"access_res_payterm_group_system","res_payterm_group_system","model_res_payterm","group_system",1,1,1,1
@@ -107,3 +125,5 @@
"access_res_config_view_group_erpmanager","res_config_view_erp_manager","model_res_config_view","group_erp_manager",1,1,1,1
"access_res_roles_all","res_roles_all","model_res_roles",,1,0,0,0
"access_res_config_view_all","res_config_view_all","model_res_config_view",,1,0,0,0
+"access_res_bank_group_partner_manager","res_bank_group_partner_manager","model_res_bank","group_partner_manager",1,1,1,1
+"access_res_bank_user","res_bank user","model_res_bank","group_user",1,0,0,0
diff --git a/bin/addons/module_graph.py b/bin/addons/module_graph.py
index 1942c95ca2b..69d4a449daa 100755
--- a/bin/addons/module_graph.py
+++ b/bin/addons/module_graph.py
@@ -2,30 +2,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be)
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contact a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/gpl.txt b/bin/gpl.txt
index e977114f4af..94a9ed024d3 100644
--- a/bin/gpl.txt
+++ b/bin/gpl.txt
@@ -1,278 +1,674 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/bin/ir/__init__.py b/bin/ir/__init__.py
index ecde78b457b..efc8beefc49 100644
--- a/bin/ir/__init__.py
+++ b/bin/ir/__init__.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
from ir import *
diff --git a/bin/ir/ir.py b/bin/ir/ir.py
index 11fdcf31437..40b682673cc 100644
--- a/bin/ir/ir.py
+++ b/bin/ir/ir.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import pickle
import osv
diff --git a/bin/netsvc.py b/bin/netsvc.py
index 968958d5e10..c957d486997 100644
--- a/bin/netsvc.py
+++ b/bin/netsvc.py
@@ -2,31 +2,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import time
import threading
@@ -288,9 +281,13 @@ class SimpleThreadedXMLRPCServer(SocketServer.ThreadingMixIn,
SimpleXMLRPCServer.SimpleXMLRPCServer):
def server_bind(self):
- self.socket.setsockopt(socket.SOL_SOCKET,
- socket.SO_REUSEADDR, 1)
- SimpleXMLRPCServer.SimpleXMLRPCServer.server_bind(self)
+ try:
+ self.socket.setsockopt(socket.SOL_SOCKET,
+ socket.SO_REUSEADDR, 1)
+ SimpleXMLRPCServer.SimpleXMLRPCServer.server_bind(self)
+ except:
+ sys.stderr.write("ERROR: address already in use\n")
+ sys.exit(1)
class HttpDaemon(threading.Thread):
@@ -309,9 +306,14 @@ class HttpDaemon(threading.Thread):
SecureXMLRPCServer.SecureXMLRPCServer):
def server_bind(self):
- self.socket.setsockopt(socket.SOL_SOCKET,
- socket.SO_REUSEADDR, 1)
- SecureXMLRPCServer.SecureXMLRPCServer.server_bind(self)
+ try:
+ self.socket.setsockopt(socket.SOL_SOCKET,
+ socket.SO_REUSEADDR, 1)
+ SecureXMLRPCServer.SecureXMLRPCServer.server_bind(self)
+ except:
+ sys.stderr.write("ERROR: address already in use\n")
+ sys.exit(1)
+
self.server = SecureThreadedXMLRPCServer((interface, port),
SecureXMLRPCRequestHandler, 0)
diff --git a/bin/openerp-server.py b/bin/openerp-server.py
index f50aeefd423..49c60c83214 100755..100644
--- a/bin/openerp-server.py
+++ b/bin/openerp-server.py
@@ -2,31 +2,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
"""
OpenERP - Server
diff --git a/bin/osv/__init__.py b/bin/osv/__init__.py
index 01f6a2704a4..834459aea75 100644
--- a/bin/osv/__init__.py
+++ b/bin/osv/__init__.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import osv
import fields
diff --git a/bin/osv/expression.py b/bin/osv/expression.py
index 7397a82e88b..93d3a0bc07b 100644
--- a/bin/osv/expression.py
+++ b/bin/osv/expression.py
@@ -1,5 +1,25 @@
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
from tools import flatten, reverse_enumerate
@@ -232,9 +252,9 @@ class expression(object):
query = '(%s OR %s IS NULL)' % (query, left)
else:
params = []
- if (right == False or right is None) and operator == '=':
+ if (((right == False) and (type(right)==bool)) or (right is None)) and (operator == '='):
query = '%s IS NULL' % left
- elif (right == False or right is None) and operator in ['<>', '!=']:
+ elif (((right == False) and (type(right)==bool)) or right is None) and (operator in ['<>', '!=']):
query = '%s IS NOT NULL' % left
else:
if left == 'id':
diff --git a/bin/osv/fields.py b/bin/osv/fields.py
index f655ca01d8b..dd46d7654fb 100644
--- a/bin/osv/fields.py
+++ b/bin/osv/fields.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -81,7 +73,6 @@ class _column(object):
self.ondelete = ondelete
self.translate = translate
self._domain = domain or []
- self.relate = False
self._context = context
self.write = False
self.read = False
@@ -90,8 +81,6 @@ class _column(object):
for a in args:
if args[a]:
setattr(self, a, args[a])
- if self.relate:
- warnings.warn("The relate attribute doesn't work anymore, use act_window tag instead", DeprecationWarning)
def restart(self):
pass
@@ -127,6 +116,12 @@ class boolean(_column):
_symbol_set = (_symbol_c, _symbol_f)
+class integer_big(_column):
+ _type = 'integer_big'
+ _symbol_c = '%d'
+ _symbol_f = lambda x: int(x or 0)
+ _symbol_set = (_symbol_c, _symbol_f)
+
class integer(_column):
_type = 'integer'
_symbol_c = '%d'
@@ -475,6 +470,9 @@ class many2many(_column):
def __init__(self, obj, rel, id1, id2, string='unknown', limit=None, **args):
_column.__init__(self, string=string, **args)
self._obj = obj
+ if '.' in rel:
+ raise Exception(_('The second argument of the many2many field %s must be a SQL table !'\
+ 'You used %s, which is not a valid SQL table name.')% (string,rel))
self._rel = rel
self._id1 = id1
self._id2 = id2
@@ -678,7 +676,7 @@ class related(function):
where += " %s.%s %s '%%%s%%' and" % (obj_child._table, self._arg[i], context[0][1], context[0][2])
if field_detail[1] in ('date'):
where += " %s.%s %s '%s' and" % (obj_child._table, self._arg[i], context[0][1], context[0][2])
- if field_detail[1] in ['integer', 'long', 'float']:
+ if field_detail[1] in ['integer', 'long', 'float','integer_big']:
where += " %s.%s %s '%d' and" % (obj_child._table, self._arg[i], context[0][1], context[0][2])
query += where.rstrip('and')
cr.execute(query)
diff --git a/bin/osv/orm.py b/bin/osv/orm.py
index d69e05b02d3..b40e486e174 100644
--- a/bin/osv/orm.py
+++ b/bin/osv/orm.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
#
# Object relationnal mapping to postgresql module
@@ -48,7 +41,6 @@
import time
import types
-from xml import dom, xpath
import string
import netsvc
import re
@@ -58,6 +50,14 @@ import pickle
import fields
import tools
+import sys
+try:
+ from xml import dom, xpath
+except ImportError:
+ sys.stderr.write("ERROR: Import xpath module\n")
+ sys.stderr.write("ERROR: Try to install the old python-xml package\n")
+ sys.exit(2)
+
from tools.config import config
regex_order = re.compile('^([a-zA-Z0-9_]+( desc)?( asc)?,?)+$', re.I)
@@ -83,6 +83,9 @@ class browse_null(object):
def __getitem__(self, name):
return False
+ def __getattr__(self, name):
+ return False # XXX: return self ?
+
def __int__(self):
return False
@@ -237,6 +240,7 @@ def get_pg_type(f):
type_dict = {
fields.boolean: 'bool',
fields.integer: 'int4',
+ fields.integer_big: 'int8',
fields.text: 'text',
fields.date: 'date',
fields.time: 'time',
@@ -321,7 +325,6 @@ class orm_template(object):
'name': k,
'field_description': f.string.replace("'", " "),
'ttype': f._type,
- 'relate': (f.relate and 1) or 0,
'relation': f._obj or 'NULL',
'view_load': (f.view_load and 1) or 0,
'select_level': str(f.select or 0),
@@ -334,12 +337,12 @@ class orm_template(object):
vals['id'] = id
cr.execute("""INSERT INTO ir_model_fields (
id, model_id, model, name, field_description, ttype,
- relate,relation,view_load,state,select_level
+ relation,view_load,state,select_level
) VALUES (
- %d,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s
+ %d,%s,%s,%s,%s,%s,%s,%s,%s,%s
)""", (
id, vals['model_id'], vals['model'], vals['name'], vals['field_description'], vals['ttype'],
- bool(vals['relate']), vals['relation'], bool(vals['view_load']), 'base',
+ vals['relation'], bool(vals['view_load']), 'base',
vals['select_level']
))
if 'module' in context:
@@ -352,11 +355,11 @@ class orm_template(object):
cr.execute('update ir_model_fields set field_description=%s where model=%s and name=%s', (vals['field_description'], vals['model'], vals['name']))
cr.commit()
cr.execute("""UPDATE ir_model_fields SET
- model_id=%s, field_description=%s, ttype=%s, relate=%s, relation=%s,
+ model_id=%s, field_description=%s, ttype=%s, relation=%s,
view_load=%s, select_level=%s, readonly=%s ,required=%s
WHERE
model=%s AND name=%s""", (
- vals['model_id'], vals['field_description'], vals['ttype'], bool(vals['relate']),
+ vals['model_id'], vals['field_description'], vals['ttype'],
vals['relation'], bool(vals['view_load']),
vals['select_level'], bool(vals['readonly']),bool(vals['required']), vals['model'], vals['name']
))
@@ -367,6 +370,14 @@ class orm_template(object):
self._field_create(cr, context)
def __init__(self, cr):
+ if not self._name and not hasattr(self, '_inherit'):
+ name = type(self).__name__.split('.')[0]
+ msg = "The class %s has to have a _name attribute" % name
+
+ logger = netsvc.Logger()
+ logger.notifyChannel('orm', netsvc.LOG_ERROR, msg )
+ raise except_orm('ValueError', msg )
+
if not self._description:
self._description = self._name
if not self._table:
@@ -709,9 +720,11 @@ class orm_template(object):
# translate each selection option
sel2 = []
for (key, val) in sel:
- val2 = translation_obj._get_source(cr, user,
+ val2 = None
+ if val:
+ val2 = translation_obj._get_source(cr, user,
self._name + ',' + f, 'selection',
- context.get('lang', False) or 'en_US', val)
+ context.get('lang', False) or 'en_US', val)
sel2.append((key, val2 or val))
sel = sel2
res[f]['selection'] = sel
@@ -768,6 +781,11 @@ class orm_template(object):
'fields': xfields
}
attrs = {'views': views}
+ if node.hasAttribute('widget') and node.getAttribute('widget')=='selection':
+ # We can not use the domain has it is defined according to the record !
+ attrs['selection'] = self.pool.get(relation).name_search(cr, user, '', context=context)
+ if not attrs.get('required',False):
+ attrs['selection'].append((False,''))
fields[node.getAttribute('name')] = attrs
elif node.nodeType==node.ELEMENT_NODE and node.localName in ('form', 'tree'):
@@ -814,14 +832,15 @@ class orm_template(object):
continue
ok = True
-
- serv = netsvc.LocalService('object_proxy')
- user_roles = serv.execute_cr(cr, user, 'res.users', 'read', [user], ['roles_id'])[0]['roles_id']
- cr.execute("select role_id from wkf_transition where signal='%s'" % button.getAttribute('name'))
- roles = cr.fetchall()
- for role in roles:
- if role[0]:
- ok = ok and serv.execute_cr(cr, user, 'res.roles', 'check', user_roles, role[0])
+
+ if user != 1: # admin user has all roles
+ serv = netsvc.LocalService('object_proxy')
+ user_roles = serv.execute_cr(cr, user, 'res.users', 'read', [user], ['roles_id'])[0]['roles_id']
+ cr.execute("select role_id from wkf_transition where signal='%s'" % button.getAttribute('name'))
+ roles = cr.fetchall()
+ for role in roles:
+ if role[0]:
+ ok = ok and serv.execute_cr(cr, user, 'res.roles', 'check', user_roles, role[0])
if not ok:
button.setAttribute('readonly', '1')
@@ -873,7 +892,6 @@ class orm_template(object):
context = {}
def _inherit_apply(src, inherit):
def _find(node, node2):
- # Check if xpath query or normal inherit (with field matching)
if node2.nodeType == node2.ELEMENT_NODE and node2.localName == 'xpath':
res = xpath.Evaluate(node2.getAttribute('expr'), node)
return res and res[0]
@@ -917,16 +935,13 @@ class orm_template(object):
parent.insertBefore(child, node)
parent.removeChild(node)
else:
+ sib = node.nextSibling
for child in node2.childNodes:
if child.nodeType == child.ELEMENT_NODE:
if pos == 'inside':
node.appendChild(child)
elif pos == 'after':
- sib = node.nextSibling
- if sib:
- node.parentNode.insertBefore(child, sib)
- else:
- node.parentNode.appendChild(child)
+ node.parentNode.insertBefore(child, sib)
elif pos=='before':
node.parentNode.insertBefore(child, node)
else:
@@ -1227,6 +1242,11 @@ class orm_memory(orm_template):
field_value2[i][field2] = field_value[i][field2]
field_value = field_value2
value[field] = field_value
+
+ # get the default values from the context
+ for key in context or {}:
+ if key.startswith('default_'):
+ value[key[8:]] = context[key]
return value
def search(self, cr, user, args, offset=0, limit=None, order=None,
@@ -1389,7 +1409,10 @@ class orm(orm_template):
for key,val in res.items():
if f._multi:
val = val[k]
- cr.execute("UPDATE \"%s\" SET \"%s\"='%s' where id=%d"% (self._table, k, val, key))
+ if (val<>False) or (type(val)<>bool):
+ cr.execute("UPDATE \"%s\" SET \"%s\"='%s' where id=%d"% (self._table, k, val, key))
+ #else:
+ # cr.execute("UPDATE \"%s\" SET \"%s\"=NULL where id=%d"% (self._table, k, key))
# and add constraints if needed
if isinstance(f, fields.many2one):
@@ -1528,6 +1551,7 @@ class orm(orm_template):
def __init__(self, cr):
super(orm, self).__init__(cr)
+ self._columns = self._columns.copy()
f = filter(lambda a: isinstance(self._columns[a], fields.function) and self._columns[a].store, self._columns)
if f:
list_store = []
@@ -1573,12 +1597,18 @@ class orm(orm_template):
'translate': (field['translate']),
#'select': int(field['select_level'])
}
- #if field['relation']:
- # attrs['relation'] = field['relation']
if field['ttype'] == 'selection':
self._columns[field['name']] = getattr(fields, field['ttype'])(eval(field['selection']), **attrs)
elif field['ttype'] == 'many2one':
self._columns[field['name']] = getattr(fields, field['ttype'])(field['relation'], **attrs)
+ elif field['ttype'] == 'one2many':
+ self._columns[field['name']] = getattr(fields, field['ttype'])(field['relation'], field['relation_field'], **attrs)
+ elif field['ttype'] == 'many2many':
+ import random
+ _rel1 = field['relation'].replace('.', '_')
+ _rel2 = field['model'].replace('.', '_')
+ _rel_name = 'x_%s_%s_%s_rel' %(_rel1, _rel2, random.randint(0, 10000))
+ self._columns[field['name']] = getattr(fields, field['ttype'])(field['relation'], _rel_name, 'id1', 'id2', **attrs)
else:
self._columns[field['name']] = getattr(fields, field['ttype'])(**attrs)
@@ -1652,6 +1682,9 @@ class orm(orm_template):
field_value2[i][field2] = field_value[i][field2]
field_value = field_value2
value[field] = field_value
+ for key in context or {}:
+ if key.startswith('default_'):
+ value[key[8:]] = context[key]
return value
@@ -2300,7 +2333,10 @@ class orm(orm_template):
continue
value = res[field]
if self._columns[field]._type in ('many2one', 'one2one'):
- value = res[field][0]
+ try:
+ value = res[field][0]
+ except:
+ value = res[field]
upd0.append('"'+field+'"='+self._columns[field]._symbol_set[0])
upd1.append(self._columns[field]._symbol_set[1](value))
upd1.append(res['id'])
@@ -2449,10 +2485,40 @@ class orm(orm_template):
data[f] = res
elif ftype == 'many2many':
data[f] = [(6, 0, data[f])]
+
+ trans_obj = self.pool.get('ir.translation')
+ trans_name=''
+ trans_data=[]
+ for f in fields:
+ trans_flag=True
+ if f in self._columns and self._columns[f].translate:
+ trans_name=self._name+","+f
+ elif f in self._inherit_fields and self._inherit_fields[f][2].translate:
+ trans_name=self._inherit_fields[f][0]+","+f
+ else:
+ trans_flag=False
+
+ if trans_flag:
+ trans_ids = trans_obj.search(cr, uid, [
+ ('name', '=', trans_name),
+ ('res_id','=',data['id'])
+ ])
+
+ trans_data.extend(trans_obj.read(cr,uid,trans_ids,context=context))
+
del data['id']
+
for v in self._inherits:
del data[self._inherits[v]]
- return self.create(cr, uid, data)
+
+ new_id=self.create(cr, uid, data)
+
+ for record in trans_data:
+ del record['id']
+ record['res_id']=new_id
+ trans_obj.create(cr,uid,record)
+
+ return new_id
def read_string(self, cr, uid, id, langs, fields=None, context=None):
if not context:
diff --git a/bin/osv/osv.py b/bin/osv/osv.py
index ecc8f5af27f..e1f52838224 100644
--- a/bin/osv/osv.py
+++ b/bin/osv/osv.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
#
# OSV: Objects Services
@@ -158,11 +151,9 @@ class osv_pool(netsvc.Service):
module = module.split('.')[0][2:]
self.module_object_list.setdefault(module, []).append(obj_inst)
+ # Return False if object does not exist
def get(self, name):
obj = self.obj_pool.get(name, None)
-# We cannot uncomment this line because it breaks initialisation since objects do not initialize
-# in the correct order and the ORM doesnt support correctly when some objets do not exist yet
-# assert obj, "object %s does not exist !" % name
return obj
#TODO: pass a list of modules to load
diff --git a/bin/pooler.py b/bin/pooler.py
index 82ff79e2c07..c838641f01d 100644
--- a/bin/pooler.py
+++ b/bin/pooler.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import sql_db
import osv.osv
diff --git a/bin/release.py b/bin/release.py
index 826959faa84..60a1f729d14 100644
--- a/bin/release.py
+++ b/bin/release.py
@@ -2,34 +2,27 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
name = 'openerp-server'
-version = '4.3.99'
+version = '5.0.0-alpha'
description = 'OpenERP Server'
long_desc = '''\
OpenERP is a complete ERP and CRM. The main features are accounting (analytic
@@ -47,7 +40,7 @@ url = 'http://www.openerp.com'
author = 'Tiny.be'
author_email = 'info@tiny.be'
support_email = 'support@openerp.com'
-license = 'GPL-2'
+license = 'GPL-3'
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/bin/report/__init__.py b/bin/report/__init__.py
index adbe1d7ee74..50efea9737c 100644
--- a/bin/report/__init__.py
+++ b/bin/report/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -34,6 +26,7 @@ import print_fnc
import custom
import render
import pychart
+import int_to_text
import report_sxw
diff --git a/bin/report/common.py b/bin/report/common.py
index 5497a272dea..64e05de312b 100644
--- a/bin/report/common.py
+++ b/bin/report/common.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/custom.py b/bin/report/custom.py
index cbba739e002..e8276fa0d4f 100644
--- a/bin/report/custom.py
+++ b/bin/report/custom.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/int_to_text.py b/bin/report/int_to_text.py
index d16250f36b0..e6d8f4ae24b 100644
--- a/bin/report/int_to_text.py
+++ b/bin/report/int_to_text.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/interface.py b/bin/report/interface.py
index 3e133310476..eb82025cd19 100644
--- a/bin/report/interface.py
+++ b/bin/report/interface.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/misc.py b/bin/report/misc.py
index a7d5c6e4f02..3f11ad741ce 100644
--- a/bin/report/misc.py
+++ b/bin/report/misc.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
from pychart import *
colorline = [color.T(r=((r+3) % 11)/10.0,
diff --git a/bin/report/print_fnc.py b/bin/report/print_fnc.py
index 4c39153a0ff..0bb3bb2f9a7 100644
--- a/bin/report/print_fnc.py
+++ b/bin/report/print_fnc.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
-#
-# $Id$
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/print_xml.py b/bin/report/print_xml.py
index 0dd51f8f738..e161109d4d6 100644
--- a/bin/report/print_xml.py
+++ b/bin/report/print_xml.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/printscreen/__init__.py b/bin/report/printscreen/__init__.py
index dfce9799c11..19e04d64467 100644
--- a/bin/report/printscreen/__init__.py
+++ b/bin/report/printscreen/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/printscreen/ps_form.py b/bin/report/printscreen/ps_form.py
index 34e9933e33b..6e947b8bcd1 100644
--- a/bin/report/printscreen/ps_form.py
+++ b/bin/report/printscreen/ps_form.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/printscreen/ps_list.py b/bin/report/printscreen/ps_list.py
index 1c501d42f3a..0e331aa2b3a 100644
--- a/bin/report/printscreen/ps_list.py
+++ b/bin/report/printscreen/ps_list.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/render/__init__.py b/bin/report/render/__init__.py
index f3c4035367f..210b41fbbb5 100644
--- a/bin/report/render/__init__.py
+++ b/bin/report/render/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/render/render.py b/bin/report/render/render.py
index 6568ff1774a..d2a681efaae 100644
--- a/bin/report/render/render.py
+++ b/bin/report/render/render.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/render/rml.py b/bin/report/render/rml.py
index f8fd0d70614..587b0f243c9 100644
--- a/bin/report/render/rml.py
+++ b/bin/report/render/rml.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/render/rml2html/__init__.py b/bin/report/render/rml2html/__init__.py
index c9b686ae78b..7eb47a79f0a 100644
--- a/bin/report/render/rml2html/__init__.py
+++ b/bin/report/render/rml2html/__init__.py
@@ -1,47 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
-# trml2pdf - An RML to PDF converter
-# Copyright (C) 2003, Fabien Pinckaers, UCL, FSA
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
from rml2html import parseString
diff --git a/bin/report/render/rml2html/rml2html.py b/bin/report/render/rml2html/rml2html.py
index 79406aa90da..c1c2d57f050 100644
--- a/bin/report/render/rml2html/rml2html.py
+++ b/bin/report/render/rml2html/rml2html.py
@@ -1,32 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
-#!/usr/bin/python
+##############################################################################
# Copyright (C) 2005, Fabien Pinckaers, UCL, FSA
#
diff --git a/bin/report/render/rml2html/utils.py b/bin/report/render/rml2html/utils.py
index cac8c656964..7186cc13fff 100644
--- a/bin/report/render/rml2html/utils.py
+++ b/bin/report/render/rml2html/utils.py
@@ -1,47 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
-# trml2pdf - An RML to PDF converter
-# Copyright (C) 2003, Fabien Pinckaers, UCL, FSA
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
import re
import reportlab
diff --git a/bin/report/render/rml2pdf/__init__.py b/bin/report/render/rml2pdf/__init__.py
index 35192f03d12..4358379f2d6 100644
--- a/bin/report/render/rml2pdf/__init__.py
+++ b/bin/report/render/rml2pdf/__init__.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
-#
-# $Id$
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/render/rml2pdf/color.py b/bin/report/render/rml2pdf/color.py
index c6d04707da6..b51df166429 100644
--- a/bin/report/render/rml2pdf/color.py
+++ b/bin/report/render/rml2pdf/color.py
@@ -1,47 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
-# trml2pdf - An RML to PDF converter
-# Copyright (C) 2003, Fabien Pinckaers, UCL, FSA
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
from reportlab.lib import colors
import re
diff --git a/bin/report/render/rml2pdf/trml2pdf.py b/bin/report/render/rml2pdf/trml2pdf.py
index e0cc3cc8220..e5c615f82fe 100644
--- a/bin/report/render/rml2pdf/trml2pdf.py
+++ b/bin/report/render/rml2pdf/trml2pdf.py
@@ -1,32 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
-#!/usr/bin/python
+##############################################################################
# trml2pdf - An RML to PDF converter
# Copyright (C) 2003, Fabien Pinckaers, UCL, FSA
@@ -698,6 +690,12 @@ class _rml_flowable(object):
return CurrentFrameFlowable(str(node.getAttribute('name')))
elif node.localName == 'frameEnd':
return EndFrameFlowable()
+ elif node.localName == 'hr':
+ width_hr=node.hasAttribute('width') and node.getAttribute('width') or '100%'
+ color_hr=node.hasAttribute('color') and node.getAttribute('color') or 'black'
+ thickness_hr=node.hasAttribute('thickness') and node.getAttribute('thickness') or 1
+ lineCap_hr=node.hasAttribute('lineCap') and node.getAttribute('lineCap') or 'round'
+ return platypus.flowables.HRFlowable(width=width_hr,color=color.get(color_hr),thickness=float(thickness_hr),lineCap=str(lineCap_hr))
else:
sys.stderr.write('Warning: flowable not yet implemented: %s !\n' % (node.localName,))
return None
diff --git a/bin/report/render/rml2pdf/utils.py b/bin/report/render/rml2pdf/utils.py
index a3c68d1eb64..c1f6edf61e3 100644
--- a/bin/report/render/rml2pdf/utils.py
+++ b/bin/report/render/rml2pdf/utils.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/render/simple.py b/bin/report/render/simple.py
index 5b3cd9eb35f..5096413b1c8 100644
--- a/bin/report/render/simple.py
+++ b/bin/report/render/simple.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/report/report_sxw.py b/bin/report/report_sxw.py
index 934fe3b1ee1..9c6981570e7 100644
--- a/bin/report/report_sxw.py
+++ b/bin/report/report_sxw.py
@@ -1,30 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/service/__init__.py b/bin/service/__init__.py
index 4703a8aa3ee..938401a6540 100644
--- a/bin/service/__init__.py
+++ b/bin/service/__init__.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import web_services
diff --git a/bin/service/security.py b/bin/service/security.py
index 7e8ace1b140..28f66812c25 100644
--- a/bin/service/security.py
+++ b/bin/service/security.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import pooler
import tools
diff --git a/bin/service/web_services.py b/bin/service/web_services.py
index af2b0256ba6..9128ca10a7d 100644
--- a/bin/service/web_services.py
+++ b/bin/service/web_services.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import base64, os, string
diff --git a/bin/sql_db.py b/bin/sql_db.py
index 71eb514c323..c43fed6d2e7 100644
--- a/bin/sql_db.py
+++ b/bin/sql_db.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import psycopg
import tools
diff --git a/bin/ssl/SecureXMLRPCServer.py b/bin/ssl/SecureXMLRPCServer.py
index 13f37cd5860..540065b4824 100644
--- a/bin/ssl/SecureXMLRPCServer.py
+++ b/bin/ssl/SecureXMLRPCServer.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
"""
SecureXMLRPCServer module using pyOpenSSL 0.5
Extremely kludgey code written 0907.2002
diff --git a/bin/ssl/__init__.py b/bin/ssl/__init__.py
index 59a5c766abe..613a9cff196 100644
--- a/bin/ssl/__init__.py
+++ b/bin/ssl/__init__.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import SecureXMLRPCServer
diff --git a/bin/tiny_socket.py b/bin/tiny_socket.py
index 8f89fe97297..826475949ea 100644
--- a/bin/tiny_socket.py
+++ b/bin/tiny_socket.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import socket
import cPickle
import cStringIO
diff --git a/bin/tools/__init__.py b/bin/tools/__init__.py
index 6a3022006fc..59428bcf710 100644
--- a/bin/tools/__init__.py
+++ b/bin/tools/__init__.py
@@ -1,36 +1,31 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
from config import *
from misc import *
from convert import *
from translate import *
from graph import graph
+from amount_to_text import *
+from amount_to_text_en import *
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/bin/tools/amount_to_text.py b/bin/tools/amount_to_text.py
index a8afcfc9f1e..301efcbcccf 100644
--- a/bin/tools/amount_to_text.py
+++ b/bin/tools/amount_to_text.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
#-------------------------------------------------------------
# French
diff --git a/bin/tools/amount_to_text_en.py b/bin/tools/amount_to_text_en.py
index 61d6f5f8fcc..91c27712715 100755
--- a/bin/tools/amount_to_text_en.py
+++ b/bin/tools/amount_to_text_en.py
@@ -1,29 +1,22 @@
-# -*- coding: iso8859-1 -*-
+# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004 TINY SPRL. (http://tiny.be) All Rights Reserved.
-# Fabien Pinckaers <fp@tiny.Be>
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/tools/config.py b/bin/tools/config.py
index 2272199da35..8ab6d299a56 100644
--- a/bin/tools/config.py
+++ b/bin/tools/config.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import ConfigParser,optparse,os,sys
import netsvc,logging
@@ -131,7 +124,7 @@ class configmanager(object):
group.add_option("--i18n-export", dest="translate_out", help="export all sentences to be translated to a CSV file, a PO file or a TGZ archive and exit")
group.add_option("--i18n-import", dest="translate_in", help="import a CSV or a PO file with translations and exit. The '-l' option is required.")
group.add_option("--modules", dest="translate_modules", help="specify modules to export. Use in combination with --i18n-export")
- group.add_option("--addons-path", dest="addons_path", help="specify an alternative addons path.")
+ group.add_option("--addons-path", dest="addons_path", help="specify an alternative addons path.", action="callback", callback=self._check_addons_path, nargs=1, type="string")
parser.add_option_group(group)
(opt, args) = parser.parse_args()
@@ -202,6 +195,12 @@ class configmanager(object):
if opt.save:
self.save()
+ def _check_addons_path(self, option, opt, value, parser):
+ res = os.path.abspath(os.path.expanduser(value))
+ if not os.path.exists(res):
+ raise optparse.OptionValueError("option %s: no such directory: %r" % (opt, value))
+ setattr(parser.values, option.dest, res)
+
def load(self):
p = ConfigParser.ConfigParser()
try:
diff --git a/bin/tools/convert.py b/bin/tools/convert.py
index 910c4089991..d3acc418c69 100644
--- a/bin/tools/convert.py
+++ b/bin/tools/convert.py
@@ -1,34 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
-#----------------------------------------------------------
-# Convert
-#----------------------------------------------------------
+##############################################################################
import re
import StringIO,xml.dom.minidom
import osv,ir,pooler
@@ -41,7 +31,13 @@ import netsvc
from config import config
import logging
-from lxml import etree
+import sys
+try:
+ from lxml import etree
+except:
+ sys.stderr.write("ERROR: pythonic binding for the libxml2 and libxslt libraries is missing\n")
+ sys.stderr.write("ERROR: Try to install python-lxml package\n")
+ sys.exit(2)
import pickle
@@ -91,12 +87,13 @@ def _eval_xml(self,node, pool, cr, uid, idref, context=None):
a_eval = node.getAttribute('eval')
if len(a_eval):
import time
- idref['time'] = time
+ idref2 = idref.copy()
+ idref2['time'] = time
import release
- idref['version'] = release.version.rsplit('.', 1)[0]
- idref['ref'] = lambda x: self.id_get(cr, False, x)
+ idref2['version'] = release.version.rsplit('.', 1)[0]
+ idref2['ref'] = lambda x: self.id_get(cr, False, x)
if len(f_model):
- idref['obj'] = _obj(self.pool, cr, uid, f_model, context=context)
+ idref2['obj'] = _obj(self.pool, cr, uid, f_model, context=context)
try:
import pytz
except:
@@ -105,9 +102,9 @@ def _eval_xml(self,node, pool, cr, uid, idref, context=None):
class pytzclass(object):
all_timezones=[]
pytz=pytzclass()
- idref['pytz'] = pytz
+ idref2['pytz'] = pytz
try:
- return eval(a_eval, idref)
+ return eval(a_eval, idref2)
except:
logger = netsvc.Logger()
logger.notifyChannel("init", netsvc.LOG_WARNING, 'could eval(%s) for %s in %s, please get back and fix it!' % (a_eval,node.getAttribute('name'),context))
@@ -207,7 +204,7 @@ class assertion_report(object):
class xml_import(object):
def isnoupdate(self, data_node = None):
- return self.noupdate or (data_node and data_node.getAttribute('noupdate'))
+ return self.noupdate or (data_node and data_node.getAttribute('noupdate').strip() not in ('', '0', 'False'))
def get_context(self, data_node, node, eval_dict):
data_node_context = (data_node and data_node.getAttribute('context').encode('utf8'))
@@ -487,7 +484,7 @@ form: module.record_id""" % (xml_id,)
print 'Menu Error', self.module, xml_id, idx==len(m_l)-1
else:
# the menuitem does't exist but we are in branch (not a leaf)
- self.logger.notifyChannel("init", netsvc.LOG_INFO, 'Warning no ID for submenu %s of menu %s !' % (menu_elem, str(m_l)))
+ self.logger.notifyChannel("init", netsvc.LOG_WARNING, 'Warning no ID for submenu %s of menu %s !' % (menu_elem, str(m_l)))
pid = self.pool.get('ir.ui.menu').create(cr, self.uid, {'parent_id' : pid, 'name' : menu_elem})
else:
menu_parent_id = self.id_get(cr, 'ir.ui.menu', rec.getAttribute('parent'))
@@ -512,7 +509,10 @@ form: module.record_id""" % (xml_id,)
if a_type=='act_window':
a_id = self.id_get(cr, 'ir.actions.%s'% a_type, a_action)
cr.execute('select view_type,view_mode,name,view_id,target from ir_act_window where id=%d', (int(a_id),))
- action_type,action_mode,action_name,view_id,target = cr.fetchone()
+ rrres = cr.fetchone()
+ assert rrres, "No window action defined for this id %s !\n" \
+ "Verify that this is a window action or add a type argument." % (a_action,)
+ action_type,action_mode,action_name,view_id,target = rrres
if view_id:
cr.execute('SELECT type FROM ir_ui_view WHERE id=%d', (int(view_id),))
action_mode, = cr.fetchone()
@@ -585,7 +585,7 @@ form: module.record_id""" % (xml_id,)
rec_src = rec.getAttribute("search").encode('utf8')
rec_src_count = rec.getAttribute("count")
- severity = rec.getAttribute("severity").encode('ascii') or 'info'
+ severity = rec.getAttribute("severity").encode('ascii') or netsvc.LOG_ERROR
rec_string = rec.getAttribute("string").encode('utf8') or 'unknown'
@@ -604,7 +604,7 @@ form: module.record_id""" % (xml_id,)
self.assert_report.record_assertion(False, severity)
self.logger.notifyChannel('init', severity, 'assertion "' + rec_string + '" failed ! (search count is incorrect: ' + str(len(ids)) + ')' )
sevval = getattr(logging, severity.upper())
- if sevval > config['assert_exit_level']:
+ if sevval >= config['assert_exit_level']:
# TODO: define a dedicated exception
raise Exception('Severe assertion failure')
return
@@ -630,7 +630,7 @@ form: module.record_id""" % (xml_id,)
self.assert_report.record_assertion(False, severity)
self.logger.notifyChannel('init', severity, 'assertion "' + rec_string + '" failed ! (tag ' + test.toxml() + ')' )
sevval = getattr(logging, severity.upper())
- if sevval > config['assert_exit_level']:
+ if sevval >= config['assert_exit_level']:
# TODO: define a dedicated exception
raise Exception('Severe assertion failure')
return
@@ -838,7 +838,7 @@ def convert_xml_import(cr, module, xmlfile, idref=None, mode='init', noupdate =
logger.notifyChannel('init', netsvc.LOG_ERROR, relaxng.error_log.last_error)
raise
- if not idref:
+ if idref is None:
idref={}
if report is None:
report=assertion_report()
diff --git a/bin/tools/graph.py b/bin/tools/graph.py
index fd76cb54fab..628c886d812 100644
--- a/bin/tools/graph.py
+++ b/bin/tools/graph.py
@@ -2,31 +2,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import operator
import math
diff --git a/bin/tools/import_email.py b/bin/tools/import_email.py
index 0803c482045..cd8c470f96d 100644
--- a/bin/tools/import_email.py
+++ b/bin/tools/import_email.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import os, sys
import re
import smtplib
diff --git a/bin/tools/misc.py b/bin/tools/misc.py
index d01fa4f293d..ec4c92d1858 100644
--- a/bin/tools/misc.py
+++ b/bin/tools/misc.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
"""
Miscelleanous tools used by OpenERP.
@@ -62,6 +55,8 @@ def init_db(cr):
for i in addons.get_modules():
terp_file = addons.get_module_resource(i, '__terp__.py')
mod_path = addons.get_module_path(i)
+ if not mod_path:
+ continue
info = False
if os.path.isfile(terp_file) and not os.path.isfile(mod_path+'.zip'):
info = eval(file(terp_file).read())
@@ -327,7 +322,7 @@ def reverse_enumerate(l):
#----------------------------------------------------------
# Emails
#----------------------------------------------------------
-def email_send(email_from, email_to, subject, body, email_cc=None, email_bcc=None, on_error=False, reply_to=False, tinycrm=False, ssl=False, debug=False):
+def email_send(email_from, email_to, subject, body, email_cc=None, email_bcc=None, on_error=False, reply_to=False, tinycrm=False, ssl=False, debug=False,subtype='plain'):
"""Send an email."""
if not email_cc:
email_cc=[]
@@ -339,7 +334,7 @@ def email_send(email_from, email_to, subject, body, email_cc=None, email_bcc=Non
from email.Header import Header
from email.Utils import formatdate, COMMASPACE
- msg = MIMEText(body or '', _charset='utf-8')
+ msg = MIMEText(body or '',_subtype=subtype,_charset='utf-8')
msg['Subject'] = Header(subject.decode('utf8'), 'utf-8')
msg['From'] = email_from
del msg['Reply-To']
@@ -396,7 +391,7 @@ def email_send_attach(email_from, email_to, subject, body, email_cc=None, email_
msg = MIMEMultipart()
if not ssl:
- ssl = config['smtp_ssl']
+ ssl = config.get('smtp_ssl', False)
msg['Subject'] = Header(subject.decode('utf8'), 'utf-8')
msg['From'] = email_from
@@ -589,6 +584,13 @@ class currency(float):
# return str(display_value)
+def is_hashable(h):
+ try:
+ hash(h)
+ return True
+ except TypeError:
+ return False
+
#
# Use it as a decorator of the function you plan to cache
# Timeout: 0 = no timeout, otherwise in seconds
@@ -607,6 +609,11 @@ class cache(object):
# Update named arguments with positional argument values
kwargs.update(dict(zip(arg_names, args)))
+ for k in kwargs:
+ if isinstance(kwargs[k], (list, dict, set)):
+ kwargs[k] = tuple(kwargs[k])
+ elif not is_hashable(kwargs[k]):
+ kwargs[k] = repr(kwargs[k])
kwargs = kwargs.items()
kwargs.sort()
@@ -621,7 +628,8 @@ class cache(object):
return value
# Work out new value, cache it and return it
- # Should copy() this value to avoid futur modf of the cacle ?
+ # FIXME Should copy() this value to avoid futur modifications of the cache ?
+ # FIXME What about exceptions ?
result = fn(self2,cr,**dict(kwargs))
self.cache[key] = (result, time.time())
@@ -655,8 +663,9 @@ def get_languages():
def scan_languages():
import glob
- file_list = [os.path.splitext(os.path.basename(f))[0] for f in glob.glob(os.path.join(config['addons_path'], 'base', 'i18n', '*.po'))]
+ file_list = [os.path.splitext(os.path.basename(f))[0] for f in glob.glob(os.path.join(config['root_path'],'addons', 'base', 'i18n', '*.po'))]
lang_dict = get_languages()
+ r=[(lang, lang_dict.get(lang, lang)) for lang in file_list]
return [(lang, lang_dict.get(lang, lang)) for lang in file_list]
diff --git a/bin/tools/translate.py b/bin/tools/translate.py
index 538f1816ac2..7e382ce99bb 100644
--- a/bin/tools/translate.py
+++ b/bin/tools/translate.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import os
from os.path import join
@@ -122,6 +115,9 @@ class TinyPoFile(object):
elif line.startswith('#,') and (line[2:].strip() == 'fuzzy'):
fuzzy = True
line = self.lines.pop(0).strip()
+ while not line:
+ # allow empty lines between comments and msgid
+ line = self.lines.pop(0).strip()
if not line.startswith('msgid'):
raise Exception("malformed file: bad line: %s" % line)
source = unquote(line[6:])
@@ -344,12 +340,6 @@ def trans_generate(lang, modules, dbname=None):
query_param = not 'all' in modules and modules or None
cr.execute(query, query_param)
- #if 'all' in modules:
- # cr.execute('select name,model,res_id,module from ir_model_data')
- #else:
- # cr.execute('select name,model,res_id,module from ir_model_data where module in ('+','.join(['%s']*len(modules))+')', modules)
-
-
_to_translate = []
def push_translation(module, type, name, id, source):
tuple = (module, type, name, id, source)
@@ -359,6 +349,9 @@ def trans_generate(lang, modules, dbname=None):
for (xml_name,model,res_id,module) in cr.fetchall():
xml_name = module+'.'+xml_name
+ if not pool.get(model):
+ logger.notifyChannel("db", netsvc.LOG_ERROR, "unable to find object %r" % (model,))
+ continue
obj = pool.get(model).browse(cr, uid, res_id)
if model=='ir.ui.view':
d = xml.dom.minidom.parseString(obj.arch)
diff --git a/bin/tools/upgrade.py b/bin/tools/upgrade.py
index 7f56126ddc4..80a3771f454 100644
--- a/bin/tools/upgrade.py
+++ b/bin/tools/upgrade.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import tarfile
import re
diff --git a/bin/wizard/__init__.py b/bin/wizard/__init__.py
index 6aaa289359f..44f895f352b 100644
--- a/bin/wizard/__init__.py
+++ b/bin/wizard/__init__.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import netsvc
import copy
diff --git a/bin/workflow/__init__.py b/bin/workflow/__init__.py
index 8651478dda2..3c1d9641617 100644
--- a/bin/workflow/__init__.py
+++ b/bin/workflow/__init__.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import wkf_service
diff --git a/bin/workflow/common.py b/bin/workflow/common.py
index 21c3edd2ee7..86931d59f68 100644
--- a/bin/workflow/common.py
+++ b/bin/workflow/common.py
@@ -1,28 +1,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be)
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contact a Free Software
-# Service Company
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/bin/workflow/instance.py b/bin/workflow/instance.py
index dedc7bb1102..9521135a0e8 100644
--- a/bin/workflow/instance.py
+++ b/bin/workflow/instance.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import wkf_logs
import workitem
diff --git a/bin/workflow/wkf_expr.py b/bin/workflow/wkf_expr.py
index 73573a231d2..60d27b1c395 100644
--- a/bin/workflow/wkf_expr.py
+++ b/bin/workflow/wkf_expr.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import sys
import netsvc
@@ -101,8 +94,8 @@ def check(cr, workitem, ident, transition, signal):
if transition['signal']:
ok = (signal==transition['signal'])
- if transition['role_id']:
- uid = ident[0]
+ uid = ident[0]
+ if transition['role_id'] and uid != 1:
serv = netsvc.LocalService('object_proxy')
user_roles = serv.execute_cr(cr, uid, 'res.users', 'read', [uid], ['roles_id'])[0]['roles_id']
ok = ok and serv.execute_cr(cr, uid, 'res.roles', 'check', user_roles, transition['role_id'])
diff --git a/bin/workflow/wkf_logs.py b/bin/workflow/wkf_logs.py
index 24134965d55..6dbf0ef48ef 100644
--- a/bin/workflow/wkf_logs.py
+++ b/bin/workflow/wkf_logs.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
#
# May be uncommented to logs workflows modifications
diff --git a/bin/workflow/wkf_service.py b/bin/workflow/wkf_service.py
index 89901de69db..1ac88015d0b 100644
--- a/bin/workflow/wkf_service.py
+++ b/bin/workflow/wkf_service.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
import wkf_logs
import workitem
diff --git a/bin/workflow/workitem.py b/bin/workflow/workitem.py
index e1cf07ae5c5..05f7ded57fd 100644
--- a/bin/workflow/workitem.py
+++ b/bin/workflow/workitem.py
@@ -1,31 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
#
# TODO:
diff --git a/doc/COPYING b/doc/COPYING
index 960fe7469fe..94a9ed024d3 100644
--- a/doc/COPYING
+++ b/doc/COPYING
@@ -1,280 +1,674 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
- Preamble
+ Preamble
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
this License.
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/doc/License.rtf b/doc/License.rtf
index dc5c9f70ca8..251844038fc 100755
--- a/doc/License.rtf
+++ b/doc/License.rtf
@@ -1,284 +1,192 @@
-{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}
-{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\lang2060\f0\fs20\tab\tab GNU GENERAL PUBLIC LICENSE\par
-\tab\tab Version 2, June 1991\par
-\par
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.\par
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\par
- Everyone is permitted to copy and distribute verbatim copies\par
- of this license document, but changing it is not allowed.\par
-\par
-\tab\tab\tab Preamble\par
-\par
- The licenses for most software are designed to take away your\par
-freedom to share and change it. By contrast, the GNU General Public\par
-License is intended to guarantee your freedom to share and change free\par
-software--to make sure the software is free for all its users. This\par
-General Public License applies to most of the Free Software\par
-Foundation's software and to any other program whose authors commit to\par
-using it. (Some other Free Software Foundation software is covered by\par
-the GNU Library General Public License instead.) You can apply it to\par
-your programs, too.\par
-\par
- When we speak of free software, we are referring to freedom, not\par
-price. Our General Public Licenses are designed to make sure that you\par
-have the freedom to distribute copies of free software (and charge for\par
-this service if you wish), that you receive source code or can get it\par
-if you want it, that you can change the software or use pieces of it\par
-in new free programs; and that you know you can do these things.\par
-\par
- To protect your rights, we need to make restrictions that forbid\par
-anyone to deny you these rights or to ask you to surrender the rights.\par
-These restrictions translate to certain responsibilities for you if you\par
-distribute copies of the software, or if you modify it.\par
-\par
- For example, if you distribute copies of such a program, whether\par
-gratis or for a fee, you must give the recipients all the rights that\par
-you have. You must make sure that they, too, receive or can get the\par
-source code. And you must show them these terms so they know their\par
-rights.\par
-\par
- We protect your rights with two steps: (1) copyright the software, and\par
-(2) offer you this license which gives you legal permission to copy,\par
-distribute and/or modify the software.\par
-\par
- Also, for each author's protection and ours, we want to make certain\par
-that everyone understands that there is no warranty for this free\par
-software. If the software is modified by someone else and passed on, we\par
-want its recipients to know that what they have is not the original, so\par
-that any problems introduced by others will not reflect on the original\par
-authors' reputations.\par
-\par
- Finally, any free program is threatened constantly by software\par
-patents. We wish to avoid the danger that redistributors of a free\par
-program will individually obtain patent licenses, in effect making the\par
-program proprietary. To prevent this, we have made it clear that any\par
-patent must be licensed for everyone's free use or not licensed at all.\par
-\par
- The precise terms and conditions for copying, distribution and\par
-modification follow.\par
-\page\par
-\tab\tab GNU GENERAL PUBLIC LICENSE\par
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\par
-\par
- 0. This License applies to any program or other work which contains\par
-a notice placed by the copyright holder saying it may be distributed\par
-under the terms of this General Public License. The "Program", below,\par
-refers to any such program or work, and a "work based on the Program"\par
-means either the Program or any derivative work under copyright law:\par
-that is to say, a work containing the Program or a portion of it,\par
-either verbatim or with modifications and/or translated into another\par
-language. (Hereinafter, translation is included without limitation in\par
-the term "modification".) Each licensee is addressed as "you".\par
-\par
-Activities other than copying, distribution and modification are not\par
-covered by this License; they are outside its scope. The act of\par
-running the Program is not restricted, and the output from the Program\par
-is covered only if its contents constitute a work based on the\par
-Program (independent of having been made by running the Program).\par
-Whether that is true depends on what the Program does.\par
-\par
- 1. You may copy and distribute verbatim copies of the Program's\par
-source code as you receive it, in any medium, provided that you\par
-conspicuously and appropriately publish on each copy an appropriate\par
-copyright notice and disclaimer of warranty; keep intact all the\par
-notices that refer to this License and to the absence of any warranty;\par
-and give any other recipients of the Program a copy of this License\par
-along with the Program.\par
-\par
-You may charge a fee for the physical act of transferring a copy, and\par
-you may at your option offer warranty protection in exchange for a fee.\par
-\par
- 2. You may modify your copy or copies of the Program or any portion\par
-of it, thus forming a work based on the Program, and copy and\par
-distribute such modifications or work under the terms of Section 1\par
-above, provided that you also meet all of these conditions:\par
-\par
- a) You must cause the modified files to carry prominent notices\par
- stating that you changed the files and the date of any change.\par
-\par
- b) You must cause any work that you distribute or publish, that in\par
- whole or in part contains or is derived from the Program or any\par
- part thereof, to be licensed as a whole at no charge to all third\par
- parties under the terms of this License.\par
-\par
- c) If the modified program normally reads commands interactively\par
- when run, you must cause it, when started running for such\par
- interactive use in the most ordinary way, to print or display an\par
- announcement including an appropriate copyright notice and a\par
- notice that there is no warranty (or else, saying that you provide\par
- a warranty) and that users may redistribute the program under\par
- these conditions, and telling the user how to view a copy of this\par
- License. (Exception: if the Program itself is interactive but\par
- does not normally print such an announcement, your work based on\par
- the Program is not required to print an announcement.)\par
-\page\par
-These requirements apply to the modified work as a whole. If\par
-identifiable sections of that work are not derived from the Program,\par
-and can be reasonably considered independent and separate works in\par
-themselves, then this License, and its terms, do not apply to those\par
-sections when you distribute them as separate works. But when you\par
-distribute the same sections as part of a whole which is a work based\par
-on the Program, the distribution of the whole must be on the terms of\par
-this License, whose permissions for other licensees extend to the\par
-entire whole, and thus to each and every part regardless of who wrote it.\par
-\par
-Thus, it is not the intent of this section to claim rights or contest\par
-your rights to work written entirely by you; rather, the intent is to\par
-exercise the right to control the distribution of derivative or\par
-collective works based on the Program.\par
-\par
-In addition, mere aggregation of another work not based on the Program\par
-with the Program (or with a work based on the Program) on a volume of\par
-a storage or distribution medium does not bring the other work under\par
-the scope of this License.\par
-\par
- 3. You may copy and distribute the Program (or a work based on it,\par
-under Section 2) in object code or executable form under the terms of\par
-Sections 1 and 2 above provided that you also do one of the following:\par
-\par
- a) Accompany it with the complete corresponding machine-readable\par
- source code, which must be distributed under the terms of Sections\par
- 1 and 2 above on a medium customarily used for software interchange; or,\par
-\par
- b) Accompany it with a written offer, valid for at least three\par
- years, to give any third party, for a charge no more than your\par
- cost of physically performing source distribution, a complete\par
- machine-readable copy of the corresponding source code, to be\par
- distributed under the terms of Sections 1 and 2 above on a medium\par
- customarily used for software interchange; or,\par
-\par
- c) Accompany it with the information you received as to the offer\par
- to distribute corresponding source code. (This alternative is\par
- allowed only for noncommercial distribution and only if you\par
- received the program in object code or executable form with such\par
- an offer, in accord with Subsection b above.)\par
-\par
-The source code for a work means the preferred form of the work for\par
-making modifications to it. For an executable work, complete source\par
-code means all the source code for all modules it contains, plus any\par
-associated interface definition files, plus the scripts used to\par
-control compilation and installation of the executable. However, as a\par
-special exception, the source code distributed need not include\par
-anything that is normally distributed (in either source or binary\par
-form) with the major components (compiler, kernel, and so on) of the\par
-operating system on which the executable runs, unless that component\par
-itself accompanies the executable.\par
-\par
-If distribution of executable or object code is made by offering\par
-access to copy from a designated place, then offering equivalent\par
-access to copy the source code from the same place counts as\par
-distribution of the source code, even though third parties are not\par
-compelled to copy the source along with the object code.\par
-\page\par
- 4. You may not copy, modify, sublicense, or distribute the Program\par
-except as expressly provided under this License. Any attempt\par
-otherwise to copy, modify, sublicense or distribute the Program is\par
-void, and will automatically terminate your rights under this License.\par
-However, parties who have received copies, or rights, from you under\par
-this License will not have their licenses terminated so long as such\par
-parties remain in full compliance.\par
-\par
- 5. You are not required to accept this License, since you have not\par
-signed it. However, nothing else grants you permission to modify or\par
-distribute the Program or its derivative works. These actions are\par
-prohibited by law if you do not accept this License. Therefore, by\par
-modifying or distributing the Program (or any work based on the\par
-Program), you indicate your acceptance of this License to do so, and\par
-all its terms and conditions for copying, distributing or modifying\par
-the Program or works based on it.\par
-\par
- 6. Each time you redistribute the Program (or any work based on the\par
-Program), the recipient automatically receives a license from the\par
-original licensor to copy, distribute or modify the Program subject to\par
-these terms and conditions. You may not impose any further\par
-restrictions on the recipients' exercise of the rights granted herein.\par
-You are not responsible for enforcing compliance by third parties to\par
-this License.\par
-\par
- 7. If, as a consequence of a court judgment or allegation of patent\par
-infringement or for any other reason (not limited to patent issues),\par
-conditions are imposed on you (whether by court order, agreement or\par
-otherwise) that contradict the conditions of this License, they do not\par
-excuse you from the conditions of this License. If you cannot\par
-distribute so as to satisfy simultaneously your obligations under this\par
-License and any other pertinent obligations, then as a consequence you\par
-may not distribute the Program at all. For example, if a patent\par
-license would not permit royalty-free redistribution of the Program by\par
-all those who receive copies directly or indirectly through you, then\par
-the only way you could satisfy both it and this License would be to\par
-refrain entirely from distribution of the Program.\par
-\par
-If any portion of this section is held invalid or unenforceable under\par
-any particular circumstance, the balance of the section is intended to\par
-apply and the section as a whole is intended to apply in other\par
-circumstances.\par
-\par
-It is not the purpose of this section to induce you to infringe any\par
-patents or other property right claims or to contest validity of any\par
-such claims; this section has the sole purpose of protecting the\par
-integrity of the free software distribution system, which is\par
-implemented by public license practices. Many people have made\par
-generous contributions to the wide range of software distributed\par
-through that system in reliance on consistent application of that\par
-system; it is up to the author/donor to decide if he or she is willing\par
-to distribute software through any other system and a licensee cannot\par
-impose that choice.\par
-\par
-This section is intended to make thoroughly clear what is believed to\par
-be a consequence of the rest of this License.\par
-\page\par
- 8. If the distribution and/or use of the Program is restricted in\par
-certain countries either by patents or by copyrighted interfaces, the\par
-original copyright holder who places the Program under this License\par
-may add an explicit geographical distribution limitation excluding\par
-those countries, so that distribution is permitted only in or among\par
-countries not thus excluded. In such case, this License incorporates\par
-the limitation as if written in the body of this License.\par
-\par
- 9. The Free Software Foundation may publish revised and/or new versions\par
-of the General Public License from time to time. Such new versions will\par
-be similar in spirit to the present version, but may differ in detail to\par
-address new problems or concerns.\par
-\par
-Each version is given a distinguishing version number. If the Program\par
-specifies a version number of this License which applies to it and "any\par
-later version", you have the option of following the terms and conditions\par
-either of that version or of any later version published by the Free\par
-Software Foundation. If the Program does not specify a version number of\par
-this License, you may choose any version ever published by the Free Software\par
-Foundation.\par
-\par
- 10. If you wish to incorporate parts of the Program into other free\par
-programs whose distribution conditions are different, write to the author\par
-to ask for permission. For software which is copyrighted by the Free\par
-Software Foundation, write to the Free Software Foundation; we sometimes\par
-make exceptions for this. Our decision will be guided by the two goals\par
-of preserving the free status of all derivatives of our free software and\par
-of promoting the sharing and reuse of software generally.\par
-\par
-\tab\tab\tab NO WARRANTY\par
-\par
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\par
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN\par
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\par
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\par
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\par
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS\par
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE\par
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\par
-REPAIR OR CORRECTION.\par
-\par
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\par
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\par
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\par
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\par
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\par
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\par
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\par
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\par
-POSSIBILITY OF SUCH DAMAGES.\par
-\par
-\tab\tab END OF TERMS AND CONDITIONS\par
+{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
+{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\lang1033\f0\fs20 GNU GENERAL PUBLIC LICENSE\par
\par
+Version 3, 29 June 2007\par
+\par
+Copyright \'a9 2007 Free Software Foundation, Inc. <http://fsf.org/>\par
+\par
+Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\par
+Preamble\par
+\par
+The GNU General Public License is a free, copyleft license for software and other kinds of works.\par
+\par
+The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.\par
+\par
+When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\par
+\par
+To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.\par
+\par
+For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\par
+\par
+Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.\par
+\par
+For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.\par
+\par
+Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.\par
+\par
+Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.\par
+\par
+The precise terms and conditions for copying, distribution and modification follow.\par
+TERMS AND CONDITIONS\par
+0. Definitions.\par
+\par
+\ldblquote This License\rdblquote refers to version 3 of the GNU General Public License.\par
+\par
+\ldblquote Copyright\rdblquote also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\par
+\par
+\ldblquote The Program\rdblquote refers to any copyrightable work licensed under this License. Each licensee is addressed as \ldblquote you\rdblquote . \ldblquote Licensees\rdblquote and \ldblquote recipients\rdblquote may be individuals or organizations.\par
+\par
+To \ldblquote modify\rdblquote a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a \ldblquote modified version\rdblquote of the earlier work or a work \ldblquote based on\rdblquote the earlier work.\par
+\par
+A \ldblquote covered work\rdblquote means either the unmodified Program or a work based on the Program.\par
+\par
+To \ldblquote propagate\rdblquote a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\par
+\par
+To \ldblquote convey\rdblquote a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\par
+\par
+An interactive user interface displays \ldblquote Appropriate Legal Notices\rdblquote to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\par
+1. Source Code.\par
+\par
+The \ldblquote source code\rdblquote for a work means the preferred form of the work for making modifications to it. \ldblquote Object code\rdblquote means any non-source form of a work.\par
+\par
+A \ldblquote Standard Interface\rdblquote means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\par
+\par
+The \ldblquote System Libraries\rdblquote of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A \ldblquote Major Component\rdblquote , in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\par
+\par
+The \ldblquote Corresponding Source\rdblquote for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\par
+\par
+The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\par
+\par
+The Corresponding Source for a work in source code form is that same work.\par
+2. Basic Permissions.\par
+\par
+All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\par
+\par
+You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\par
+\par
+Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\par
+3. Protecting Users' Legal Rights From Anti-Circumvention Law.\par
+\par
+No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\par
+\par
+When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\par
+4. Conveying Verbatim Copies.\par
+\par
+You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\par
+\par
+You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\par
+5. Conveying Modified Source Versions.\par
+\par
+You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\par
+\par
+ * a) The work must carry prominent notices stating that you modified it, and giving a relevant date.\par
+ * b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to \ldblquote keep intact all notices\rdblquote .\par
+ * c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\par
+ * d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\par
+\par
+A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an \ldblquote aggregate\rdblquote if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\par
+6. Conveying Non-Source Forms.\par
+\par
+You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\par
+\par
+ * a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\par
+ * b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\par
+ * c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\par
+ * d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\par
+ * e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\par
+\par
+A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\par
+\par
+A \ldblquote User Product\rdblquote is either (1) a \ldblquote consumer product\rdblquote , which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, \ldblquote normally used\rdblquote refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\par
+\par
+\ldblquote Installation Information\rdblquote for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\par
+\par
+If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\par
+\par
+The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\par
+\par
+Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\par
+7. Additional Terms.\par
+\par
+\ldblquote Additional permissions\rdblquote are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\par
+\par
+When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\par
+\par
+Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\par
+\par
+ * a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\par
+ * b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\par
+ * c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\par
+ * d) Limiting the use for publicity purposes of names of licensors or authors of the material; or\par
+ * e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\par
+ * f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\par
+\par
+All other non-permissive additional terms are considered \ldblquote further restrictions\rdblquote within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\par
+\par
+If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\par
+\par
+Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\par
+8. Termination.\par
+\par
+You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\par
+\par
+However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\par
+\par
+Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\par
+\par
+Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\par
+9. Acceptance Not Required for Having Copies.\par
+\par
+You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\par
+10. Automatic Licensing of Downstream Recipients.\par
+\par
+Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\par
+\par
+An \ldblquote entity transaction\rdblquote is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\par
+\par
+You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\par
+11. Patents.\par
+\par
+A \ldblquote contributor\rdblquote is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's \ldblquote contributor version\rdblquote .\par
+\par
+A contributor's \ldblquote essential patent claims\rdblquote are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, \ldblquote control\rdblquote includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\par
+\par
+Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\par
+\par
+In the following three paragraphs, a \ldblquote patent license\rdblquote is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To \ldblquote grant\rdblquote such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\par
+\par
+If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. \ldblquote Knowingly relying\rdblquote means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\par
+\par
+If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\par
+\par
+A patent license is \ldblquote discriminatory\rdblquote if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\par
+\par
+Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\par
+12. No Surrender of Others' Freedom.\par
+\par
+If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\par
+13. Use with the GNU Affero General Public License.\par
+\par
+Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.\par
+14. Revised Versions of this License.\par
+\par
+The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\par
+\par
+Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License \ldblquote or any later version\rdblquote applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.\par
+\par
+If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\par
+\par
+Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\par
+15. Disclaimer of Warranty.\par
+\par
+THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \ldblquote AS IS\rdblquote WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\par
+16. Limitation of Liability.\par
+\par
+IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\par
+17. Interpretation of Sections 15 and 16.\par
+\par
+If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\par
+\par
+END OF TERMS AND CONDITIONS\par
}
diff --git a/doc/tests/check_profile_l10n_all.py b/doc/tests/check_profile_l10n_all.py
index dd3be6dd787..83b59007d2f 100644
--- a/doc/tests/check_profile_l10n_all.py
+++ b/doc/tests/check_profile_l10n_all.py
@@ -2,30 +2,22 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
diff --git a/openerp-server-installer.nsi b/openerp-server-installer.nsi
index 3947879ef6a..1d6034b5e22 100644
--- a/openerp-server-installer.nsi
+++ b/openerp-server-installer.nsi
@@ -1,270 +1,219 @@
-;NSIS Modern User Interface
-;Start Menu Folder Selection Example Script
-;Written by Joost Verburg
+##############################################################################
+#
+# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+#
+# WARNING: This program as such is intended to be used by professional
+# programmers who take the whole responsability of assessing all potential
+# consequences resulting from its eventual inadequacies and bugs
+# End users who are looking for a ready-to-use solution with commercial
+# garantees and support are strongly adviced to contract a Free Software
+# Service Company
+#
+# This program is Free Software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 3
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+###############################################################################
+!ifndef VERSION
+ !error "Do not forget to specify the version of OpenERP - /DVERSION=<VERSION>"
+!endif
;--------------------------------
;Include Modern UI
- !include "MUI.nsh"
+!include "MUI.nsh"
;--------------------------------
;General
- ;Name and file
- Name "OpenERP Server"
- OutFile "openerp-server-setup.exe"
+;Name and file
+Name "OpenERP Server"
+OutFile "openerp-server-setup-${VERSION}.exe"
+SetCompressor lzma
+SetCompress auto
- ;Default installation folder
- InstallDir "$PROGRAMFILES\OpenERP Server"
-
- ;Get installation folder from registry if available
- InstallDirRegKey HKCU "Software\OpenERP Server" ""
+;Default installation folder
+InstallDir "$PROGRAMFILES\OpenERP Server"
- ;Vista redirects $SMPROGRAMS to all users without this
- RequestExecutionLevel admin
+;Get installation folder from registry if available
+InstallDirRegKey HKCU "Software\OpenERP Server" ""
+
+BrandingText "OpenERP Server ${VERSION}"
+
+;Vista redirects $SMPROGRAMS to all users without this
+RequestExecutionLevel admin
;--------------------------------
;Variables
- Var MUI_TEMP
- Var STARTMENU_FOLDER
+Var MUI_TEMP
+Var STARTMENU_FOLDER
;--------------------------------
;Interface Settings
- !define MUI_ABORTWARNING
+!define MUI_ABORTWARNING
;--------------------------------
;Pages
- !define MUI_ICON ".\pixmaps\openerp.ico"
- !define MUI_UNICON ".\pixmaps\openerp.ico"
- !define MUI_WELCOMEFINISHPAGE_BITMAP ".\pixmaps\openerp-intro.bmp"
- !define MUI_HEADERIMAGE
- !define MUI_HEADERIMAGE_BITMAP ".\pixmaps\openerp-header.bmp"
-
- !insertmacro MUI_PAGE_WELCOME
- !insertmacro MUI_PAGE_LICENSE "doc\\License.rtf"
- # !insertmacro MUI_PAGE_COMPONENTS
- !insertmacro MUI_PAGE_DIRECTORY
-
- ;Start Menu Folder Page Configuration
- !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
- !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\OpenERP Server"
- !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "OpenERP Server"
-
- !insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
-
- !insertmacro MUI_PAGE_INSTFILES
-
- !define MUI_FINISHPAGE_NOAUTOCLOSE
- !define MUI_FINISHPAGE_RUN
- !define MUI_FINISHPAGE_RUN_CHECKED
- !define MUI_FINISHPAGE_RUN_TEXT "Start OpenERP Server"
- !define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
- !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
- !define MUI_FINISHPAGE_SHOWREADME $INSTDIR\README.txt
- !insertmacro MUI_PAGE_FINISH
-
-
- !insertmacro MUI_UNPAGE_WELCOME
- !insertmacro MUI_UNPAGE_CONFIRM
- !insertmacro MUI_UNPAGE_INSTFILES
+!define MUI_ICON ".\pixmaps\openerp-icon.ico"
+!define MUI_WELCOMEFINISHPAGE_BITMAP ".\pixmaps\openerp-intro.bmp"
+!define MUI_UNWELCOMEFINISHPAGE_BITMAP ".\pixmaps\openerp-intro.bmp"
+!define MUI_HEADERIMAGE
+!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH
+!define MUI_HEADER_TRANSPARENT_TEXT ""
+!define MUI_HEADERIMAGE_BITMAP ".\pixmaps\openerp-slogan.bmp"
+!define MUI_LICENSEPAGE_TEXT_BOTTOM "Usually, a proprietary license provides with the software: limited number of users, limited in time usage, etc. This Open Source license is the opposite: it garantees you the right to use, copy, study, distribute and modify Open ERP for free."
+
+!insertmacro MUI_PAGE_WELCOME
+!insertmacro MUI_PAGE_LICENSE "doc\License.rtf"
+!insertmacro MUI_PAGE_DIRECTORY
+
+;Start Menu Folder Page Configuration
+!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
+!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\OpenERP Server"
+!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "OpenERP Server"
+
+!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
+
+!insertmacro MUI_PAGE_INSTFILES
+
+!define MUI_FINISHPAGE_NOAUTOCLOSE
+!define MUI_FINISHPAGE_RUN
+!define MUI_FINISHPAGE_RUN_CHECKED
+!define MUI_FINISHPAGE_RUN_TEXT "Start OpenERP Server"
+!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
+!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
+!define MUI_FINISHPAGE_SHOWREADME $INSTDIR\README.txt
+!insertmacro MUI_PAGE_FINISH
+
+
+!insertmacro MUI_UNPAGE_WELCOME
+!insertmacro MUI_UNPAGE_CONFIRM
+!insertmacro MUI_UNPAGE_INSTFILES
;--------------------------------
;Languages
-
- !insertmacro MUI_LANGUAGE "English"
+
+!insertmacro MUI_LANGUAGE "English"
+
+!macro CreateInternetShortcut FILENAME URL
+ WriteINIStr "${FILENAME}.url" "InternetShortcut" "URL" "${URL}"
+!macroend
;--------------------------------
;Installer Sections
+Function .onInit
+ ClearErrors
+ ReadRegStr $0 HKCU "Software\OpenERP Server" ""
+ IfErrors DoInstall 0
+ MessageBox MB_OK "Can not install the Open ERP Server because a previous installation already exists on this system. Please uninstall your current installation and relaunch this setup wizard."
+ Quit
+ DoInstall:
+FunctionEnd
Section "OpenERP Server" SecOpenERPServer
-
- nsExec::Exec "net stop openerp-service"
- sleep 2
-
- SetOutPath "$INSTDIR"
-
- ;ADD YOUR OWN FILES HERE...
- File /r "dist\\*"
-
- SetOutPath "$INSTDIR\service"
- File /r "win32\\dist\\*"
- File "win32\\start.bat"
- File "win32\\stop.bat"
-
- ;Store installation folder
- WriteRegStr HKCU "Software\OpenERP Server" "" $INSTDIR
-
- ;Create uninstaller
- WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenERP Server" "DisplayName" "OpenERP Server (remove only)"
- WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenERP Server" "UninstallString" "$INSTDIR\Uninstall.exe"
- WriteUninstaller "$INSTDIR\Uninstall.exe"
-
-
- !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
-
- ;Create shortcuts
- CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
- CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\OpenERP Server.lnk" "$INSTDIR\openerp-server.exe"
- CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Start service.lnk" "$INSTDIR\service\start.bat"
- CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Stop service.lnk" "$INSTDIR\service\stop.bat"
- CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Edit config.lnk" "notepad.exe" "$INSTDIR\openerp-server.conf"
- CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\View log.lnk" "notepad.exe" "$INSTDIR\openerp-server.log"
-
- !insertmacro MUI_STARTMENU_WRITE_END
-
- nsExec::Exec '"$INSTDIR\\openerp-server.exe" --stop-after-init --logfile "$INSTDIR\\openerp-server.log" -s'
- nsExec::Exec '"$INSTDIR\\service\\OpenERPServerService.exe" -auto -install'
+ nsExec::Exec "net stop openerp-service"
+ sleep 2
+
+ SetOutPath "$INSTDIR"
+
+ ;ADD YOUR OWN FILES HERE...
+ File /r "dist\*"
+
+ SetOutPath "$INSTDIR\service"
+ File /r "win32\dist\*"
+ File "win32\start.bat"
+ File "win32\stop.bat"
+
+ ;Store installation folder
+ WriteRegStr HKCU "Software\OpenERP Server" "" $INSTDIR
+
+ ;Create uninstaller
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenERP Server" "DisplayName" "OpenERP Server ${VERSION}"
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenERP Server" "UninstallString" "$INSTDIR\Uninstall.exe"
+ WriteUninstaller "$INSTDIR\Uninstall.exe"
+
+ !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
+ ;Create shortcuts
+ CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
+ CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\OpenERP Server.lnk" "$INSTDIR\openerp-server.exe"
+ CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Start service.lnk" "$INSTDIR\service\start.bat"
+ CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Stop service.lnk" "$INSTDIR\service\stop.bat"
+ CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Edit config.lnk" "notepad.exe" "$INSTDIR\openerp-server.conf"
+ CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\View log.lnk" "notepad.exe" "$INSTDIR\openerp-server.log"
+ CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\uninstall.exe"
+ !insertmacro CreateInternetShortcut "$SMPROGRAMS\$STARTMENU_FOLDER\Forum" "http://www.openerp.com/forum"
+ !insertmacro CreateInternetShortcut "$SMPROGRAMS\$STARTMENU_FOLDER\Translation" "https://translations.launchpad.net/openobject"
+ !insertmacro MUI_STARTMENU_WRITE_END
+
+ nsExec::Exec '"$INSTDIR\openerp-server.exe" --stop-after-init --logfile "$INSTDIR\openerp-server.log" -s'
+ nsExec::Exec '"$INSTDIR\service\OpenERPServerService.exe" -auto -install'
SectionEnd
;Descriptions
- ;Language strings
- LangString DESC_SecOpenERPServer ${LANG_ENGLISH} "OpenERP Server."
+;Language strings
+LangString DESC_SecOpenERPServer ${LANG_ENGLISH} "OpenERP Server."
- ;Assign language strings to sections
- !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
+;Assign language strings to sections
+!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecOpenERPServer} $(DESC_SecOpenERPServer)
- !insertmacro MUI_FUNCTION_DESCRIPTION_END
+!insertmacro MUI_FUNCTION_DESCRIPTION_END
;--------------------------------
;Uninstaller Section
Section "Uninstall"
-
- nsExec::Exec "net stop openerp-service"
- sleep 2
- nsExec::Exec '"$INSTDIR\\service\\OpenERPServerService.exe" -remove'
- sleep 2
-
- ;ADD YOUR OWN FILES HERE...
- Delete "$INSTDIR\Uninstall.exe"
- Push "$INSTDIR\addons"
- Push ""
- Call un.RmFilesButOne
- Push "$INSTDIR\i18n"
- Push ""
- Call un.RmFilesButOne
- Delete "$INSTDIR\service\*"
- Push "$INSTDIR\doc"
- Push ""
- Call un.RmFilesButOne
- Delete "$INSTDIR\*"
- Delete "$INSTDIR\Uninstall.exe"
-
- Push "$INSTDIR\addons"
- Push ""
- Call un.RmDirsButOne
- Push "$INSTDIR\i18n"
- Push ""
- RMDir "$INSTDIR\i18n"
- Call un.RmDirsButOne
- Push "$INSTDIR\doc"
- Push ""
- Call un.RmDirsButOne
- RMDir "$INSTDIR\doc"
- RMDir "$INSTDIR\addons"
- RMDir "$INSTDIR\service"
- RMDir "$INSTDIR"
-
- !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
-
- Delete "$SMPROGRAMS\$MUI_TEMP\OpenERP Server.lnk"
- Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
- Delete "$SMPROGRAMS\$MUI_TEMP\Start service.lnk"
- Delete "$SMPROGRAMS\$MUI_TEMP\Stop service.lnk"
- Delete "$SMPROGRAMS\$MUI_TEMP\Edit config.lnk"
- Delete "$SMPROGRAMS\$MUI_TEMP\View log.lnk"
-
- ;Delete empty start menu parent diretories
- StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP"
+ nsExec::Exec "net stop openerp-service"
+ sleep 2
+ nsExec::Exec '"$INSTDIR\service\OpenERPServerService.exe" -remove'
+ sleep 2
+
+ RMDIR /r "$INSTDIR"
+ !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
+
+ Delete "$SMPROGRAMS\$MUI_TEMP\Forum.url"
+ Delete "$SMPROGRAMS\$MUI_TEMP\Translation.url"
+ Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
+ Delete "$SMPROGRAMS\$MUI_TEMP\OpenERP Server.lnk"
+ Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
+ Delete "$SMPROGRAMS\$MUI_TEMP\Start service.lnk"
+ Delete "$SMPROGRAMS\$MUI_TEMP\Stop service.lnk"
+ Delete "$SMPROGRAMS\$MUI_TEMP\Edit config.lnk"
+ Delete "$SMPROGRAMS\$MUI_TEMP\View log.lnk"
+
+ ;Delete empty start menu parent diretories
+ StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP"
- startMenuDeleteLoop:
- ClearErrors
- RMDir $MUI_TEMP
- GetFullPathName $MUI_TEMP "$MUI_TEMP\.."
-
- IfErrors startMenuDeleteLoopDone
-
- StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop
- startMenuDeleteLoopDone:
-
- DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenERP Server"
- DeleteRegKey /ifempty HKCU "Software\OpenERP Server"
+ startMenuDeleteLoop:
+ ClearErrors
+ RMDir $MUI_TEMP
+ GetFullPathName $MUI_TEMP "$MUI_TEMP\.."
+
+ IfErrors startMenuDeleteLoopDone
+
+ StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop
+
+ startMenuDeleteLoopDone:
+
+ DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenERP Server"
+ DeleteRegKey /ifempty HKCU "Software\OpenERP Server"
SectionEnd
Function LaunchLink
- nsExec::Exec "net start openerp-service"
-FunctionEnd
-
-Function un.RmDirsButOne
- Exch $R0 ; exclude dir
- Exch
- Exch $R1 ; route dir
- Push $R2
- Push $R3
-
- FindFirst $R3 $R2 "$R1\*.*"
- IfErrors Exit
-
- Top:
- StrCmp $R2 "." Next
- StrCmp $R2 ".." Next
- StrCmp $R2 $R0 Next
- IfFileExists "$R1\$R2\*.*" 0 Next
- RmDir /r "$R1\$R2"
-
- #Goto Exit ;uncomment this to stop it being recursive
-
- Next:
- ClearErrors
- FindNext $R3 $R2
- IfErrors Exit
- Goto Top
-
- Exit:
- FindClose $R3
-
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
+ nsExec::Exec "net start openerp-service"
FunctionEnd
-Function un.RmFilesButOne
- Exch $R0 ; exclude file
- Exch
- Exch $R1 ; route dir
- Push $R2
- Push $R3
-
- FindFirst $R3 $R2 "$R1\*.*"
- IfErrors Exit
-
- Top:
- StrCmp $R2 "." Next
- StrCmp $R2 ".." Next
- StrCmp $R2 $R0 Next
- IfFileExists "$R1\$R2\*.*" Next
- Delete "$R1\$R2"
-
- #Goto Exit ;uncomment this to stop it being recursive
-
- Next:
- ClearErrors
- FindNext $R3 $R2
- IfErrors Exit
- Goto Top
-
- Exit:
- FindClose $R3
-
- Pop $R3
- Pop $R2
- Pop $R1
- Pop $R0
-FunctionEnd
diff --git a/pixmaps/openerp-header.bmp b/pixmaps/openerp-header.bmp
index c22ca74328e..61226b99ad7 100644
--- a/pixmaps/openerp-header.bmp
+++ b/pixmaps/openerp-header.bmp
Binary files differ
diff --git a/pixmaps/openerp-header.png b/pixmaps/openerp-header.png
new file mode 100644
index 00000000000..22c1df45aee
--- /dev/null
+++ b/pixmaps/openerp-header.png
Binary files differ
diff --git a/pixmaps/openerp-icon.ico b/pixmaps/openerp-icon.ico
new file mode 100644
index 00000000000..89ed393f7cc
--- /dev/null
+++ b/pixmaps/openerp-icon.ico
Binary files differ
diff --git a/pixmaps/openerp-intro.bmp b/pixmaps/openerp-intro.bmp
index efff657a3f5..8d3c9340c9b 100644
--- a/pixmaps/openerp-intro.bmp
+++ b/pixmaps/openerp-intro.bmp
Binary files differ
diff --git a/pixmaps/openerp-slogan.bmp b/pixmaps/openerp-slogan.bmp
new file mode 100644
index 00000000000..a3cffd104f2
--- /dev/null
+++ b/pixmaps/openerp-slogan.bmp
Binary files differ
diff --git a/pixmaps/openerp.ico b/pixmaps/openerp.ico
index 73c2e360f33..cde3e961e79 100644
--- a/pixmaps/openerp.ico
+++ b/pixmaps/openerp.ico
Binary files differ
diff --git a/pixmaps/openerp.png b/pixmaps/openerp.png
new file mode 100644
index 00000000000..20da496413b
--- /dev/null
+++ b/pixmaps/openerp.png
Binary files differ
diff --git a/setup.py b/setup.py
index 4c466bc4145..148b1e1b9a4 100755..100644
--- a/setup.py
+++ b/setup.py
@@ -2,37 +2,30 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id$
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
+##############################################################################
+
# setup from TinERP
# taken from straw http://www.nongnu.org/straw/index.html
# taken from gnomolicious http://www.nongnu.org/gnomolicious/
# adapted by Nicolas Évrard <nicoe@altern.org>
#
-# $Id$
import imp
import sys
@@ -137,6 +130,7 @@ def data_files():
glob.glob(opj(add_path, 'report', '*sxw')) +
glob.glob(opj(add_path, 'report', '*xsl')))]
files.extend(pathfiles)
+ files.append(('.', [('bin/import_xml.rng')]))
return files
check_modules()
@@ -157,7 +151,7 @@ options = {"py2exe": {
"packages": ["lxml", "lxml.builder", "lxml._elementpath", "lxml.etree",
"lxml.objectify", "decimal", "xml", "xml.dom", "xml.xpath",
"encodings","mx.DateTime","wizard","pychart","PIL", "pyparsing",
- "pydot"],
+ "pydot","asyncore","asynchat"],
"excludes" : ["Tkconstants","Tkinter","tcl"],
}}
@@ -186,7 +180,7 @@ setup(name = name,
'openerp-server.wizard', 'openerp-server.workflow'] + \
list(find_addons()),
package_dir = {'openerp-server': 'bin'},
- console = [{"script":"bin\\openerp-server.py", "icon_resources":[(1,"pixmaps\\openerp.ico")]}],
+ console = [{"script":"bin\\openerp-server.py", "icon_resources":[(1,"pixmaps\\openerp-icon.ico")]}],
options = options,
)
diff --git a/win32/OpenERPServerService.py b/win32/OpenERPServerService.py
index 24df255f1d2..7bf8aefb45f 100644
--- a/win32/OpenERPServerService.py
+++ b/win32/OpenERPServerService.py
@@ -1,36 +1,25 @@
# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
-#
-# $Id$
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##############################################################################
-#
-# OpenERPServerService.py
-#
-# Script installing OpenERP as Windows service
-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
# Win32 python extensions modules
import win32serviceutil
import win32service
@@ -87,8 +76,8 @@ class OpenERPServerService(win32serviceutil.ServiceFramework):
win32event.WaitForSingleObject(ws, win32event.INFINITE)
self.stopping = True
- def SvcDoRun(self):
- # Start OpenERP Server itself
+ def SvcDoRun(self):
+ # Start OpenERP Server itself
self.StartTERP()
# start the loop waiting for the Service Manager's stop signal
thread.start_new_thread(self.StartControl, (self.hWaitStop,))
diff --git a/win32/setup.py b/win32/setup.py
index d07834ee5b4..29dee19520d 100644
--- a/win32/setup.py
+++ b/win32/setup.py
@@ -1,32 +1,25 @@
# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
-#
-# $Id$
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##############################################################################
-from distutils.core import setup
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+from distutils.core import setup
import py2exe