From 28bb7e64ca0c4ac49edce30e4604075b0984dd22 Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Tue, 5 Feb 2013 09:26:54 +0100 Subject: [PATCH] [IMP] small improvements in module description and docstrings --- partner_firstname/__openerp__.py | 5 +++-- partner_firstname/partner.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/partner_firstname/__openerp__.py b/partner_firstname/__openerp__.py index a75b13d3d..b2cae6906 100644 --- a/partner_firstname/__openerp__.py +++ b/partner_firstname/__openerp__.py @@ -19,8 +19,9 @@ ############################################################################## {'name': 'Partner first name, last name', - 'description': """Split first name last name on res.partner. -The field name become a stored function field concatenating lastname, firstname + 'description': """Split first name and last name on res.partner. + +The field 'name' becomes a stored function field concatenating lastname, firstname """, 'version': '1.0', 'author': 'Camptocamp', diff --git a/partner_firstname/partner.py b/partner_firstname/partner.py index ded8ab832..9b44641d2 100644 --- a/partner_firstname/partner.py +++ b/partner_firstname/partner.py @@ -42,7 +42,7 @@ class ResPartner(Model): def create(self, cursor, uid, vals, context=None): """To support data backward compatibility we have to keep this overwrite even if we - use fnct_inv else we can't create entry as lastname is mandatory and module + use fnct_inv: otherwise we can't create entry because lastname is mandatory and module will not install if there is demo data""" to_use = vals if vals.get('name'):