```
ERROR openerp_test openerp.sql_db: bad query: ALTER TABLE "res_partner" ALTER COLUMN "lastname" SET NOT NULL
Traceback (most recent call last):
File "openerp/sql_db.py", line 230, in execute
res = self._obj.execute(query, params)
IntegrityError: column "lastname" contains null values
```
[CHG] Improve the _write_name method
* trying to coerce to the correct lastname if the firstname is untouched
* resetting the firstname if contact is a company
[FIX] Avoid to replicate the firstname into the name when duplicating a partner
[FIX] Avoid to replicate the firstname into the name when duplicating a user
[CHG] Restore the required attribute of the field name in user form
[CHG] Beautify the inner form for children contacts (placing fields as in the main form)
[FIX] Allow edition of the field name in the inner form if child is a company