* [8.0][html_text] Excerpt generator.
This module adds a technical utility to allow the developer to get an excerpt from any HTML chunk.
You can choose the maximum amount of words or characters if you want.
See the README and inline docstrings for further details.
* Image extractor from HTML fields. (#354)
* [8.0][html_image_url_extractor] Image extractor from HTML fields.
This technical utility allows the developer to get a list of image URLs from any piece of HTML.
You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.
* [9.0] [MIG] html_image_url_extractor
* Updated README.rst
Remove authenticate as check_credentials is dedicated for this
purpose.
Removed mail translations maybe possible in some way ?
Give some space to the code
Make the addon compliant to OCA guidelines
Adapt readme to new template and compress header in tests
Make the addon a python package
NOTE: authenticate() method cannot be used in tests because a new cr
is created in _login method that does not contains our user.
Signed-off-by: Eugen Don <eugen.don@don-systems.de>
Special highlights:
- Fixed some license headers.
- Adhered to normal addon structure.
- Removed `exceptions.py` and use `UserError` instead.
- Allow submodules to import some constants from main namespace.
The rest is basically a standard migration.
[FIX][base_export_manager] Fix "Expected singleton" bug.
If you had a field that got translated in more than 1 addon, you'd possibly getto this error:
File "/opt/odoo/0079_ahk_openerp/oca/base_export_manager/models/ir_exports_line.py", line 105, in _compute_label
field.name)),
File "/opt/odoo/common/openerp/v8/openerp/fields.py", line 825, in __get__
record.ensure_one()
File "/opt/odoo/common/openerp/v8/openerp/models.py", line 5355, in ensure_one
raise except_orm("ValueError", "Expected singleton: %s" % self)
except_orm: ('ValueError', 'Expected singleton: ir.translation(4899, 703976)')
With this patch, now we let Odoo return the translated string by using its
standard method to do so, so we have to care for less.
* Move installation outside a data file.
This makes the whole installation to be able to roll back if something goes
wrong, instead of entering an error loop.
* Include envorionment in its manager.
* Add 4th field
* Move to api.multi, refactoring some stuff.
- Add some comments in complex parts.
- Rename `onchange_name` to `_onchange_name` (guidelines).
- Make `_compute_name`'s try block shorter and easier to understand.
* Allow R/W of name directly in model.
* Update tests to cover new behaviors.