summaryrefslogtreecommitdiff
path: root/odoo/tools/__init__.py
AgeCommit message (Collapse)Author
2018-10-11[FIX] core: support for uid/context in XML data filesXavier Morel
* add tests for uid/context on record & function & root nodes (odoo, data, openerp) "inherited" by record & function * add rng validation to the test cases to ensure technical capabilities are matched by validation capabilities (which was not the case as we could validate nonsense and import stuff which didn't pass validation or something) * extact uid/context into its own rng pattern - add uid support to record validation - add uid support to root nodes validation - fix uid support on function validation: was typoed to @id, which is not used anywhere in function tags loading & makes no sense as far as I can tell * replace get_uid/get_context by get_env & reimplement the whole mess: build a stack of environments from the root nodes (each root node = one env in the stack, though the exact same env can be present multiple times if none of the root nodes has a @uid or @context) and leaves can build upon this "ready made" environment for their own uses or use it as-is. As a result, all uid/context should now properly transfer from the root nodes to the leaves needing them * fix support for context on functions: was not actually implemented as the context was not propagated into the old-style API call * add uid support to record & context is now inherited from env
2018-05-30[IMP] account: add account.fiscalyear modelLaurent Smet
In order to improve the fiscal year management, we allow the user to define custom fiscal years using the account.fiscalyear model. Was task: https://www.odoo.com/web#id=39878&view_type=form&model=project.task&menu_id= Was PR #20936
2017-11-16[REM] tools: Remove the yml import engineYannick Tivisse
2017-09-15[IMP] base, res.currency: amount_to_text() based on num2words libraryMitali Patel
Old implementation of tools.amount_to_text() is now deprecated. The new one support more languages Was task 27215. Was PR #16531
2017-08-24[MERGE] forward port branch saas-17 up to 877e7098719Christophe Simonis
2017-08-20[FIX] P3: text model typesXavier Morel
* remove references to basestring & unicode (use relevant pycompat helpers) * remove some str calls (either entirely or replaced by relevant helper, either text or native) * use better API to avoid unnecessary conversions * remove some XML declarations in views
2017-08-14[ADD] tools: utility to merge pdf filesMehul Patel
2017-07-24[REM] tools: old and unused lib pdf_utilsRichard Mathot
2017-04-28[FIX] Various P3-related import changesxmo-odoo
* LDAP import: python-ldap is not python3-compatible, pyldap is Warning: only supported from debian Stretch (current testing)? https://packages.debian.org/search?searchon=names&keywords=pyldap * implicitly relative imports * imports of moved or removed stdlib modules issue #8530
2017-01-04[ADD] xml_utils: utilitary file for common xml operationsqdp-odoo
2016-09-02[REF] openerp: move `openerp` to `odoo`Raphael Collet