diff options
| author | Yannick Tivisse <yti@odoo.com> | 2017-06-02 14:28:38 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-06-02 15:53:09 +0200 |
| commit | e4152792fff0781b62ec10758b7a84bc953503a7 (patch) | |
| tree | 96aa0b90cbb461d405eb29aa17e29a767e73fd9d /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 783746f579d344cf9c10927d3d99b08d80df33f7 (diff) | |
[IMP] payment: Set automatically a default value for journal_id if not set
Purpose
=======
The field journal_id on a payment.acquired is required on the view. The only issue is that the journals cannot be created before having installed a localization. When the payment acquire module is installed before the localization, the journal id is not set on the payment acquire and it's impossible to make a call to `write` (For example publish the acquire)
Specification
=============
When making a write or a create on a payment acquire, udpate the journal_id with a default value if not set.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
