Browse Source

[IMP] small improvements in module description and docstrings

pull/2/head
Alexandre Fayolle 12 years ago
parent
commit
28bb7e64ca
  1. 5
      partner_firstname/__openerp__.py
  2. 2
      partner_firstname/partner.py

5
partner_firstname/__openerp__.py

@ -19,8 +19,9 @@
############################################################################## ##############################################################################
{'name': 'Partner first name, last name', {'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', 'version': '1.0',
'author': 'Camptocamp', 'author': 'Camptocamp',

2
partner_firstname/partner.py

@ -42,7 +42,7 @@ class ResPartner(Model):
def create(self, cursor, uid, vals, context=None): def create(self, cursor, uid, vals, context=None):
"""To support data backward compatibility we have to keep this overwrite even if we """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""" will not install if there is demo data"""
to_use = vals to_use = vals
if vals.get('name'): if vals.get('name'):

Loading…
Cancel
Save