summaryrefslogtreecommitdiff
path: root/doc/reference/testing.rst
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2017-10-13 11:31:57 +0200
committerMartin Trigaux <mat@odoo.com>2017-10-13 14:21:32 +0200
commit6286dc4809e7c7f6b212d18436588c4b54164bbc (patch)
tree6ab416024fa480b2948506ae00fa08c1f4d633ed /doc/reference/testing.rst
parent1da064a1d34b48ff23d8cdf5a1c189c8bbb4eb64 (diff)
[FIX] hr: force a name to employee creation
The name field is a stored related on the resource.resource record. The name on the resource is required. If no name (and no resource_id), the creation fails as trying to create a resource without name (non-null constrain) Force in the view to indicate to the user that a name is required but without adding the constrain at the database level. required=True on the fields adds a non-null constrain on the SQL column but the related values are populated *after* the INSERT so it would fail depending on the given values (e.g. a resource_id value but no name) Fixes #20126 Closes #20128
Diffstat (limited to 'doc/reference/testing.rst')
0 files changed, 0 insertions, 0 deletions