~nbessi-c2c-deactivatedaccount/+junk/faulty_code_sample

« back to all changes in this revision

Viewing changes to partner_firstname/__openerp__.py

  • Committer: Maxime Chambreuil
  • Author(s): Jonathan Nemry
  • Date: 2014-03-12 22:39:51 UTC
  • mfrom: (32.3.6 jne-firstname)
  • Revision ID: maxime.chambreuil@savoirfairelinux.com-20140312223951-980toa7d0d2fsi78
[MRG] 

For Partner:

1) Create always the SQL constraint on 'lastname'
2) Better implementation of "_write_name" allowing more intuitive update of the partner name when processing from another model (ex: res_user), i.e., try to keep the firstname if unchanged
3) When duplicating a partner, avoid to repeat the firstname in the name
4) Beautify the inner form for children contacts (placing fields as in the main form)
5) Allow edition of the field name in the inner form if child is a company

For User:

1) Reintegrate the name as "required"
2) When duplicating a user, avoid to repeat the firstname in the related partner name

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
##############################################################################
20
20
 
21
21
{'name': 'Partner first name, last name',
22
 
 'description':  """Split first name and last name on res.partner.
23
 
 
24
 
The field 'name' becomes a stored function field concatenating lastname, firstname
 
22
  'description': """
 
23
This module splits first name and last name for non company partners
 
24
====================================================================
 
25
 
 
26
The field 'name' becomes a stored function field concatenating lastname and firstname
 
27
Note: in version 7.0, installing this module invalidates a yaml test in the 'edi' module
 
28
 
 
29
Contributors
 
30
============
 
31
Jonathan Nemry <jonathan.nemry@acsone.eu>
 
32
Olivier Laurent <olivier.laurent@acsone.eu>
 
33
 
25
34
""",
26
 
 'version': '1.0.1',
 
35
 'version': '1.1',
27
36
 'author': 'Camptocamp',
28
 
 'category': 'MISC',
29
 
 'website': 'http://www.camptocamp.com',
 
37
 'maintainer': 'Camptocamp, Acsone',
 
38
 'category': 'Extra Tools',
 
39
 'website': 'http://www.camptocamp.com, http://www.acsone.eu',
30
40
 'depends': ['base'],
31
41
 'data': [
32
42
     'partner_view.xml',