Permalink
Browse files

Merge branch '10.0-sale_layout_hidden_section' of github.com:ilmir-k/…

…addons-yelizariev into 10.0-sale_layout_hidden_section
  • Loading branch information...
ilmir-k committed Apr 13, 2018
2 parents a90339f + ed1e7b1 commit 1b4bf699ef03fc39caf85de1c01084a8fe946f85
Showing 481 changed files with 8,855 additions and 9,907 deletions.
@@ -15,15 +15,15 @@ addons:
env:
global:
- VERSION="10.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" UNIT_TEST="0"
- EXCLUDE="hw_printer_network"
- PYLINT_ODOO_JSLINTRC="/home/travis/maintainer-quality-tools/travis/cfg/.jslintrc"

- TRANSIFEX_USER='i18n-bot@it-projects.info'
- secure: "SoW2Blve4jUApyF5UfM5NvGQ6ZV4OH6wMUGbcTemx+dMqNZTyTlUDxmVOFgau7M/igcgmmdYcsxmWKR0n40VSaAvtBKSdL7J3Ad7xVBpC1zq6LLrrDmZUL1pCWQUpl1znxcq72H+VmnllgdewU1703cVce2wUWmByGjEEV/VnIqjUfXfzh28ZL4hMr/Kkstr2MCBHMP2n/LZJqBCa5CWyH2U+gxDhQ3zNKudZbHgdkLWYhGSlnVsqTxsxTLaIcXOdDIesT5JYHByQhqVNAuURZuT9RFq9+GWAcFbc4luGhkRhfoZGa7VOAwEwdYNTIip01xgiChL2GfvBEoi8sPKVY4UNKhkWoU6j7IxVVvXnVVlbflpNhQkLnsZD6Yd4r3ZnD+3o8oOb9H69yOOABlsBb90wwE+XMB2fikftXTNfeKeRLKiAGorTe4jwQoqN9Mbd/aTIXzYeFOJu+zwjoFbp8wY0lGYQm4e7VFkf5cRr7YQ0kYLu8LbwhIGmJVppJhA7tsWncLkHxAZ56Up1+nkw8W4bsetkWuNw+Y5XOIXjfmEJ7nR3kSL3vDHKU5C7M674KVtjmCjabc7Rgs/+iXlf0WFVXlXUOOr/2PHfO3kq8zL3PcrehfHPR70wxPFgu7kw9Nl835Ve4J2yuG01NSJvzNr+pLk9mkVNhLoOiKonmI=" # TRANSIFEX_PASSWORD

matrix:
- LINT_CHECK="1"
- TESTS="1" ODOO_REPO="odoo/odoo"
- TESTS="1" ODOO_REPO="OCA/OCB""
- TESTS="1" UNIT_TEST="1"
- TESTS="1" ODOO_REPO="OCA/OCB"
- TRANSIFEX="1"

virtualenv:
system_site_packages: true
@@ -38,7 +38,7 @@ script:
- travis_run_tests

after_success:
coveralls
- travis_after_tests_success

notifications:
email: false

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -35,30 +35,27 @@ performance. That being said, large objects
similar file sharing tools)
- keep allowing easy, consistent backups of the whole system

How to use
==========
**Once the module is installed**,
to have ``ir_attachment`` records been stored as large objects by
default, set the following record in ``ir.config_parameter``:
Credits
=======

:key: ``ir_attachment.location``
:value: ``postgresql:lobject``
Contributors
------------

Preexisting attachments are unaffected.
* `AnyBox <anybox.fr>`__
* `Ivan Yelizariev <https://it-projects.info/team/yelizariev>`__

.. warning:: If you do that setting before installing the module
you will get inconsistent data in ``ir.attachment``
field ``is_lobject`` will be set to ``True``.
Maintainers
-----------
* `IT-Projects LLC <https://it-projects.info>`__

To apply new storage for all existed attachments use module `ir_attachment_force_storage <https://www.odoo.com/apps/modules/10.0/ir_attachment_force_storage/>`_.

Further information
===================

Demo: http://runbot.it-projects.info/demo/misc-addons/8.0
Demo: http://runbot.it-projects.info/demo/misc-addons/10.0

HTML Description: https://apps.odoo.com/apps/modules/8.0/attachment_large_object/
.. HTML Description: https://apps.odoo.com/apps/modules/10.0/attachment_large_object/
Changelog: `<doc/changelog.rst>`_

Tested on Odoo 8.0 8d724924f76a943035a8aa2d1b446418fd6b4034
Tested on Odoo 10.0 ce038f5d1531107a1e45fd867de42e82940babdb
@@ -0,0 +1,36 @@
=========================
attachment_large_object
=========================

Installation
============

* `Install <https://odoo-development.readthedocs.io/en/latest/odoo/usage/install-module.html>`__ this module in a usual way

Configuration
=============

**Once the module is installed**,
to have ``ir.attachment`` records been stored as large objects by
default, set the following record in ``ir.config_parameter``:

:key: ``ir_attachment.location``
:value: ``postgresql:lobject``

Preexisting attachments are unaffected.

.. warning:: If you do that setting before installing the module
you will get inconsistent data in ``ir.attachment``
field ``is_lobject`` will be set to ``True``.

To apply new storage for all existed attachments use module `ir_attachment_force_storage <https://www.odoo.com/apps/modules/11.0/ir_attachment_force_storage/>`_.

Uninstallation
==============

Before uninstallation you need to move all large objects back to default storage type. One of the way to do it is as following:

* install module `ir_attachment_force_storage <https://www.odoo.com/apps/modules/11.0/ir_attachment_force_storage/>`_
* set ``ir_attachment.location`` to **file** or **db**
* now you can safely unistall ``attachment_large_object`` and ``ir_attachment_force_storage``

@@ -1,4 +1 @@
from . import test_attachment

fast_suite = [test_attachment,
]
@@ -2,7 +2,7 @@
{
'name': 'Email confirmation on sign up',
'summary': """New user is able to login only after confirming his/her email""",
'version': '1.0.0',
'version': '1.0.1',
'author': 'IT-Projects LLC',
'website': "https://it-projects.info",
'license': 'LGPL-3',
@@ -35,6 +35,7 @@ def web_auth_signup(self, *args, **kw):
pass
try:
res = self._singup_with_confirmation(*args, **kw)
# FIXME: don't trust to subject. Use more strong way to find message
message = request.env['mail.message'].sudo().search([('res_id', '=', res['partner_id']),
('subject', '=', 'Confirm registration')])
message.sudo(res['user_id']).set_message_done()
@@ -80,7 +81,7 @@ def _singup_with_confirmation(self, *args, **kw):
)._signup_create_user(values)
new_user.active = False
new_partner = new_user.partner_id
redirect_url = werkzeug.url_encode({'redirect': kw['redirect']})
redirect_url = werkzeug.url_encode({'redirect': kw.get('redirect') or ''})
new_partner.signup_prepare()
signup_url = new_partner.with_context(signup_force_type_in_url='signup/confirm',
signup_valid=True).signup_url
@@ -0,0 +1,9 @@
`1.0.1`
-------

- **FIX:** Error in some specific environment (browser or third-party module)

`1.0.0`
-------

- Init version
Oops, something went wrong.

0 comments on commit 1b4bf69

Please sign in to comment.