summaryrefslogtreecommitdiff
path: root/addons/barcodes/models/barcodes.py
AgeCommit message (Collapse)Author
2020-07-22[FIX] barcodes: wrong translation specificationVictor Feyens
String formatting was wrong because the mapping wasn't specified. Finetuning of https://github.com/odoo/odoo/commit/8a8d482b43394f834bc0ddf3cb0c0c62f11b90b1
2020-07-06[IMP] *: do not split translations to insert valuesVictor Feyens
* Less translations * Translations more precise and adapted to the context
2019-07-05[REM] *: remove calls to `api.one` and adapt codeAdrian Torres
Adapt all code that was using `api.one` to recordset-style method and remove any and all calls to `api.one` in preparation for its removal.
2018-09-21[IMP]tools, technial modules: Improvement in model descriptionNimesh Jethva
Purpose of this commit is to give description more "business oriented" because those descriptions appears in Odoo Studio which is supposed to be used by end users, not only by developers. Related Task ID : 37311
2018-09-18[MERGE] forward port branch saas-11.4 up to a1b384d66beChristophe Simonis
2018-09-14[FIX] product: do not translate at code importMartin Trigaux
Defined as this, the label of the selection field were translated during code import, when building the python model, not when a user access the field values as it should (and is already the case thanks to the ORM). Trying to translate a string when no user-context is available is not only useless but may cause bug on services with multiple databases (e.g. a SaaS). In a multi-worker environment, when the code is imported, the _ method will use multiple scenarios to detect the language and get a cursor. As we have no available cursor in the frame (method _get_cr from GettextAlias), the fallback is made on the cursor of the request. In a multi-worker environment, this could be a cursor linked to a database in another language than English. In such scenario, the selections would be translated in the language of the other database instead of displaying it in English opw-1881956
2018-08-30[REF] barcodes, delivery, mrp, product, stock: Changing labelsPrakash Prajapati
Task: 1879617
2017-05-30[FIX] barcodes: fixes ean8 checksum computationLaurent Mignon (ACSONE)
According to the docstring, the given ean is a string but was summed. Closes #16813
2016-06-07[MIG] barcodes: Simplify selection fields overridesTanguy Charlier
2016-06-07[MIG] barcodes: Migrated to new apiRanjit Pillai
2016-06-07[MOV] barcodes: Reorganised file structure.Ranjit Pillai