diff options
| author | Raphael Collet <rco@odoo.com> | 2020-10-20 15:29:46 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2020-10-21 07:52:55 +0000 |
| commit | 231bdca3f26d96f578503694e5aec062de2317ed (patch) | |
| tree | 7ea32beadd5e2c66928bb72af3f2080cd4c050c3 /addons/account/wizard | |
| parent | 3b1df8f57e0cd342fe7f9ff7bd34100b2c821569 (diff) | |
[FIX] core: validation of field parameters
The feature was actually not working as expected. It has been fixed,
and a test now ensures it does work as expected. This commit also fixes
some invalid parameters, hopefully nothing critical.
closes odoo/odoo#60402
Related: odoo/enterprise#14273
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/account/wizard')
| -rw-r--r-- | addons/account/wizard/account_payment_register.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/wizard/account_payment_register.py b/addons/account/wizard/account_payment_register.py index 459d8097f66..e90c293f662 100644 --- a/addons/account/wizard/account_payment_register.py +++ b/addons/account/wizard/account_payment_register.py @@ -9,7 +9,7 @@ class AccountPaymentRegister(models.TransientModel): _description = 'Register Payment' # == Business fields == - payment_date = fields.Date(String="Payment Date", required=True, + payment_date = fields.Date(string="Payment Date", required=True, default=fields.Date.context_today) amount = fields.Monetary(currency_field='currency_id', store=True, readonly=False, compute='_compute_amount') |
