Features
Bugfixes
Improvements
Documentation
Build
Features
- BREAKING: Change default overwrite value for
lyrics.modules.update_translations
to False
- Support odoo saas versions
Bugfixes
- Make
lyrics.modules.update_translations
Odoo >= 11.0 compatible
Improvements
- Add 'tracking_disable=True' as default context to load CSVs (avoid creating 'mail.message' records and speed up the import process)
Build
- Packaging: build universal wheels
Documentation
- Improve API docs
Build
- The lib is now automaticaly published to Pypi by Travis when a tag is added
Features
- Add a new option
--odoo-data-path
or env. variableODOO_DATA_PATH
. - The
lyrics.loaders.load_csv
method now accepts a relative path appended to the new option "odoo data path". Absolute paths are still allowed.
Bugfixes
lyrics.loaders.update_translations
is now deprecated as it was a duplicate fromlyrics.modules.update_translations
Features
- Make it Python 3 and Odoo 11 compatible
Build
- Switch to unicodecsv instead of custom code to handle that
- Fix the flapping tests setup. Removed tox which was provoking that for some reason.
- Add a lint check in build
Bugfixes
- Disable Odoo's xmlrpc port
Build
- Add 'build-release.sh' script with commands to build and upload the dist files
Features
- New lyrics: modules.update_translations to update translations from po files
- Lyrics 'uninstall' has been moved from uninstaller.uninstall to modules.uninstall, previous path is still working for backward compatibility
- New lyrics context manager 'records.switch_company'
Features
- New lyrics: Define settings like being in the interface
- Add CSV Loading columns control (columns whitelist and blacklist)
Bugfixes
- Fix error when loading CSV with no rows
Improvements
- Split CSV loaders in functions to be able to get rows from a CSV or to load rows, enabling to modify the rows before loading them for instance
- create_or_update lyrics accepts now a model so we can change its env (user, context, ...)
- New lyrics to uninstall module
Features
- CSV loaders can be used with a model in order to pass a context
Bugfixes
- Fix tests by installing eggs from odoo/requirements.txt
Features
- Support Odoo 10
- Allow to specify the encoding of an imported file, default is utf8
Bugfixes
- 'records.add_xmlid' lyrics do no longer fail when it already exists
Features
- New lyrics: CSV loaders from path or stream
- New
ctx.log_line
to print a line respecting the current indentation
Improvements
- Add tests for the existing lyrics
Build
- Finally green builds!
Features
- Add --quiet mode
Fixes
- Encode the logged strings to the default encoding or utf8
- Allow to use Ctrl-c to stop anthem.
- Set openerp's loglevel to ERROR, its logs clutter anthem's own outputs
Features
Ability to log descriptions and timings in songs with the context manager
Context.log
and the decoratoranthem.log
.from anthem import log @log def setup_company(ctx): """ Setup company """ # do stuff with ctx.log('other stuff'): # do other stuff @log def load_data(ctx): """ Load data """ # load @log def main(ctx): setup_company(ctx) load_data(ctx)
If we run anthem on
main
, we will get:running... main running... Setup company running... other stuff other stuff: 0.850s Setup company: 1.100s running... Load data Load data: 2.900s main: 4.000s
Fixes
- Correct lyric to create or update a record
- Add a lyric to create a xmlid
- Add a lyric to create or update a record
- Fixed crash on non-editable install.
Initial release.