Browse Source

[IMP] small improvements in module description and docstrings

pull/487/head
Alexandre Fayolle 12 years ago
committed by Enric Tobella
parent
commit
52cbb73ea5
  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',
'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',

2
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'):

Loading…
Cancel
Save