diff options
| author | william <wan@odoo.com> | 2020-07-28 09:14:44 +0000 |
|---|---|---|
| committer | wan <wan@odoo.com> | 2020-08-13 12:53:47 +0000 |
| commit | 733f1f888707402055dffc3210b8f41824a59f57 (patch) | |
| tree | 70afa76079c13e30a50a317cc3e0f91c29849f64 /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js | |
| parent | a54f3852d612e4bd9341713680b1228570c27051 (diff) | |
[FIX] account: previous statement at the same date
Lets assume we have these records
```json
{
'id': 1,
'journal_id': 1,
'date': '2020-01-01',
},
{
'id': 2,
'journal_id': 1,
'date': '2020-01-01',
}
```
with the domain
```
[('date', '<=', st.date),
('journal_id', '=', st.journal_id.id),
('id', '!=', st.id)]
```
in the compute method of `previous_statement_id`, the previous
statement of 1 will be 2 and vice versa.
A solution is to change the declaration of the field from Date to
Datetime
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions
