From ab464db930ac48ee51a06fa48a51c4efd6ffce19 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 1 Dec 2015 22:50:20 +0100 Subject: [PATCH] Add module l10n_fr_usability --- l10n_fr_usability/__init__.py | 3 ++ l10n_fr_usability/__openerp__.py | 44 ++++++++++++++++++++++++++ l10n_fr_usability/l10n_fr_usability.py | 30 ++++++++++++++++++ stock_usability/__openerp__.py | 2 +- 4 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 l10n_fr_usability/__init__.py create mode 100644 l10n_fr_usability/__openerp__.py create mode 100644 l10n_fr_usability/l10n_fr_usability.py diff --git a/l10n_fr_usability/__init__.py b/l10n_fr_usability/__init__.py new file mode 100644 index 0000000..39a25bf --- /dev/null +++ b/l10n_fr_usability/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import l10n_fr_usability diff --git a/l10n_fr_usability/__openerp__.py b/l10n_fr_usability/__openerp__.py new file mode 100644 index 0000000..77e2142 --- /dev/null +++ b/l10n_fr_usability/__openerp__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# l10n FR Usability module for Odoo +# Copyright (C) 2015 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + + +{ + 'name': 'French Usability', + 'version': '0.2', + 'category': 'Inventory, Logistic, Storage', + 'license': 'AGPL-3', + 'summary': 'Several usability enhancements for French localization', + 'description': """ +French Localization Usability +============================= + +The usability enhancements include: +* bank account type is IBAN by default + +This module has been written by Alexis de Lattre from Akretion . + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['l10n_fr'], + 'data': [], + 'installable': True, +} diff --git a/l10n_fr_usability/l10n_fr_usability.py b/l10n_fr_usability/l10n_fr_usability.py new file mode 100644 index 0000000..fd04870 --- /dev/null +++ b/l10n_fr_usability/l10n_fr_usability.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# l10n FR Usability module for Odoo +# Copyright (C) 2015 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + + +from openerp import models, fields + + +class ResPartnerBank(models.Model): + _inherit = 'res.partner.bank' + + state = fields.Selection(default='iban') diff --git a/stock_usability/__openerp__.py b/stock_usability/__openerp__.py index 23d75a7..f1eb2dd 100644 --- a/stock_usability/__openerp__.py +++ b/stock_usability/__openerp__.py @@ -31,7 +31,7 @@ Stock Usability =============== -The usability enhancements inclure: +The usability enhancements include: * display the source location on the tree view of the move lines of the pickings (by default, only the destination location is displayed). * always display the field *Backorder* on the form view of picking (by default, this field is only displayed when it has a value, so the user doesn't know when the field has no value because he doesn't see the field !) * add a group by Partner in the picking search view (particularly usefull for receptions)