summaryrefslogtreecommitdiff
path: root/odoo/addons/base/ir/ir_sequence.py
AgeCommit message (Collapse)Author
2017-11-27[MOV] base: move ir_* models into models/Thibault Delavallée
2017-11-24[IMP] web: FieldChar trim its value by defaultAlexandre Kühn
With this commit, we change the behaviour of the web client with respect to spaces in char fields. Most of the time, starting and ending spaces have no value, and worse, make the data not so reliable. After this commit, field char will trim by default (so, if the user input a char as ' abc ', the string 'abc' will be sent to the server instead). Note that this only applies when the value of the field is changed. If someone open a form view, then switches to edit mode and save, nothing will change. This is the desired behavior most of the time. However, in some rare cases, this is actually harmful. For example, if we trim the 'decimal_point' field, it will not be possible to enter a whitespace as decimal separator. In those cases, we introduce a new attribute 'trim', which allow the developer to desactivate that feature.
2017-11-11[FIX] ir_sequence: add support for PG 10Olivier Dony
PostgreSQL 10 move sequences' metadata fields into a new `pg_sequence` system catalog. As a result, selecting from a sequence relation now only return three fields, and does not include the `increment_by` metadata field anymore. This patch obtains the `increment_by` value from the new system catalog for PostgreSQL server versions >= 10. Fixes #20269
2017-10-20[MERGE] forward port branch saas-16 up to dc2a6c6cd2aChristophe Simonis
2017-10-17[MERGE] forward port branch saas-15 up to 8d0942380b5Christophe Simonis
2017-10-16[FIX] base: Wrong default value for number_next_actual in ir.sequence.date_rangeGoffin Simon
The default value for number_next_actual in ir.sequence.date_range must be at least one otherwise it will raise error because the next value cannot be equal to the date_from. opw:776205
2017-08-20[FIX] P3: remove pycompat.{keys,items,values} helpersOlivier Dony
Now that we're closer to switching to P3 for good, these helpers have outlived their usefulness, and mostly add noise. All remaining dict.iter*() or dict.view*() must be converted to the normal keys(), values() or items() calls. Whenever the result is likely to be used for more than the scope of a loop, or when the dict needs to be modified during iteration, the calls must be wrapped in a ``list()``, to protect the new P3 semantics. Those cases are very exceptional. Also removed some dead code or improved the API to remove unnecessary conversions.
2017-07-12[IMP] account: onboarding of the invoicing appqdp-odoo
-added tour for invoicing -allow to set easily the number of the first invoice/bill/refund of a journal, from the invoice screen -small usability fixes and refactoring
2017-07-07[MERGE] forward port branch saas-16 up to 0f2b2c4e2b9Christophe Simonis
2017-07-04[MERGE] forward port branch saas-15 up to 10cb34bcaccChristophe Simonis
2017-06-29[FIX] base: sequence date rangeNicolas Martinelli
Ensure to search a maximum of 1 record to avoid crash. opw-748971
2017-05-22[IMP] account: improve usability on journals.Laurent Smet
This commit add computed fields that allow to easily change the next number that will be given by the journal's sequence. Was PR #15163
2017-05-10[FIX] P3: list -> iterable builtins (#16811)xmo-odoo
In Python 3: * various builtins and dict methods were changed to return view/iterable objects rather than lists * and the separate Python 2 view/iterable builtins and methods were removed altogether This is problematic when using these items as list (which the happens repeatedly in Odoo), but more viciously when iterating *multiple times* over them (which also happens, which I've messed up multiple times while writing this, and which is a pain to debug even when you've just created the issue). Convert all code using these to semantics-matching cross-version helper functions to get the LCD behaviour between P2 and P3, and forbid the builtins via lint. issue #8530
2017-04-27[FIX] base: Sequences in multicompanyGoffin Simon
The sequence set by function next_by_code for a company must be either defined for this company or witn company specified on it. In the other cases, the sequence "NEW" is used. With courtesy of @odony opw:728554
2016-09-19[IMP] ir_sequence: ease debug in multicompany dbsRichard Mathot
It often occurs that users get nasty error messages like "missing value for column xxx" when trying to create objects. It can happen if the objects uses a sequence as default value that is not defined in an available company. We try to give a hint to the glory support person who could be confused by that.
2016-09-02[REF] openerp: move `openerp` to `odoo`Raphael Collet