diff options
| author | Thibault Delavallée <tde@odoo.com> | 2020-02-28 16:07:56 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-03-04 13:47:45 +0000 |
| commit | 4501e3081d4744f78e3694ad4abf07bdbd4d59f4 (patch) | |
| tree | ae60719c7f7c0540e0b9224aea9f9911b527b770 /addons/web/static/src/xml/debug.xml | |
| parent | 4e14151465f731c4b2b51efd7bb0c1f0466b0c71 (diff) | |
[FIX] hr_expense: set expense_extract_show_ocr_option_selection as not required
Adding required fields on company model is annoying for tests. Indeed multi
company tests may run during module installation, notably in CRM. Those tests
generally require to create a new company which is not possible if the column
is required but module not already loaded in registry. This is the case
if for example hr_expense is installed and updating CRM.
When possible, avoid required fields on a such used model as company. In this
case we can easily consider a void value as 'no_send'.
In this commit we simply make the field not required in database but set
a required on the view itself to avoid confusion. That way behavior is still
the same, existing databases are left untouched as all keys still exist
and running tests is smoother.
LINKS
Follow up of odoo/odoo@4eeeb4f172c10f2a8e190fb9afcf440ddaaf5d34 and odoo/enterprise@be3cfc3babf0a642423e8a82f9919a65a46e9fa2
and odoo/enterprise@227da38f9a09199e4de5d4649bc1dd6fadfd1a0d .
Task ID 2207180
Community PR odoo/odoo#46601
Enterprise PR odoo/enterprise#8903
closes odoo/odoo#46889
X-original-commit: 1c289d8692e0cdff25b08988994820af655cb289
Related: odoo/enterprise#9013
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src/xml/debug.xml')
0 files changed, 0 insertions, 0 deletions
