Permalink
Browse files

Merge branch '11.0' into 11.0-bc375d9170a5576eee8e81d10c2ed980c3541b13

  • Loading branch information...
RafiZz committed Nov 21, 2018
2 parents bc375d9 + 3d6c024 commit c044207ebc9800087162763326a375ff7591cb48
Showing 388 changed files with 2,575 additions and 1,608 deletions.
@@ -1,7 +1,7 @@
language: python

python:
- "2.7"
- "3.5"

sudo: false
cache: pip
@@ -14,7 +14,14 @@ addons:

env:
global:
- VERSION="10.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" UNIT_TEST="0"
- VERSION="11.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0" UNIT_TEST="0"
# * about ir_config_parameter_multi_company:
#
# ir_config_parameter_multi_company makes field *value* at ir.config_parameter company_dependent,
# but registry may not know it, if module is not loaded yet during testing. It leads to error "column value doesn't exist".
# Adding the module to server-wide modules avoids this problem.
- OPTIONS="--load=web,ir_config_parameter_multi_company"
- 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
@@ -25,9 +32,6 @@ env:
- TESTS="1" ODOO_REPO="OCA/OCB"
- TRANSIFEX="1"

virtualenv:
system_site_packages: true

install:
- pip install anybox.testing.openerp
- git clone https://github.com/it-projects-llc/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
@@ -9,7 +9,6 @@ List of repositories:
* https://github.com/it-projects-llc/misc-addons
* https://github.com/it-projects-llc/pos-addons
* https://github.com/it-projects-llc/mail-addons
* https://github.com/it-projects-llc/rental-addons
* https://github.com/it-projects-llc/access-addons
* https://github.com/it-projects-llc/website-addons
* https://github.com/it-projects-llc/l10n-addons
@@ -52,10 +52,10 @@ Maintainers
Further information
===================

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

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

Tested on Odoo 10.0 ce038f5d1531107a1e45fd867de42e82940babdb
Tested on Odoo 11.0 8787f5acee9b5d2cad15b97804522dc04717a1c1
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# flake8:noqa

from . import ir_attachment
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# attachment_large_object module for OpenERP,
@@ -22,7 +21,7 @@
##############################################################################
{
'name': 'attachment_large_object',
'version': '1.0.0',
'version': '11.0.1.0.0',
'category': 'Extra Tools',
'summary': """Provides a storage option for attachments as PostgreSQL large objects.
""",
@@ -3,14 +3,14 @@
# * attachment_large_object
#
# Translators:
# Randall Castro <rcastro@treintaycinco.com>, 2018
# Randall <randall_castro@me.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-04-21 23:15+0000\n"
"PO-Revision-Date: 2018-04-21 23:15+0000\n"
"Last-Translator: Randall Castro <rcastro@treintaycinco.com>, 2018\n"
"POT-Creation-Date: 2018-04-30 21:57+0000\n"
"PO-Revision-Date: 2018-04-30 21:57+0000\n"
"Last-Translator: Randall <randall_castro@me.com>, 2018\n"
"Language-Team: Spanish (Costa Rica) (https://www.transifex.com/it-projects-llc/teams/76080/es_CR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
import logging
import base64
from odoo import models, api
import psycopg2

@@ -35,14 +35,14 @@ def _file_write(self, value, checksum):
return super(IrAttachment, self)._file_write(value, checksum)

lobj = self.lobject(self.env.cr, 0, 'wb') # oid=0 means creation
lobj.write(value.decode('base64'))
lobj.write(base64.b64decode(value))
oid = lobj.oid
return str(oid)

def _file_delete(self, fname):
filestore = False
try:
oid = long(fname)
oid = int(fname)
except:
filestore = True

@@ -59,10 +59,10 @@ def _lobject_read(self, fname, bin_size):
:param fname: file storage name, must be the oid as a string.
"""
lobj = self.lobject(self.env.cr, long(fname), 'rb')
lobj = self.lobject(self.env.cr, int(fname), 'rb')
if bin_size:
return lobj.seek(0, 2)
return lobj.read().encode('base64') # GR TODO it must be possible to read-encode in chunks
return base64.b64encode(lobj.read()) # GR TODO it must be possible to read-encode in chunks

@api.depends('store_fname', 'db_datas')
def _compute_datas(self):
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
import base64

from openerp.tests.common import TransactionCase


@@ -11,7 +12,7 @@ def setUp(self):

def test_large_object(self):
self.param.set_param('ir_attachment.location', 'postgresql:lobject')
bin_data = "\xff data".encode('base64')
bin_data = base64.b64encode(b"\xff data")
att = self.attachment.create(dict(name="some name", datas=bin_data))

# check payload and the fact that 'store_fname' looks like a PG oid
@@ -21,20 +22,20 @@ def test_large_object(self):
self.assertEqual(att_r['datas'], bin_data)
self.assertEqual(att_r['file_size'], 6)
try:
oid = long(att_r['store_fname'])
oid = int(att_r['store_fname'])
except TypeError:
self.fail("We had a non regular oid: %r. Large object not actually called ?")

# writing without touching the payload does not create a new large object
att.write(dict(name="new name"))
record = self.attachment.browse(att.id)
self.assertEqual(record.store_fname, unicode(oid))
self.assertEqual(record.store_fname, str(oid))

# a write on data, creates a whole new large object
att.write(dict(datas='new content'.encode('base64')))
att.write(dict(datas=base64.b64encode(b'new content')))
att_r = att.read(('datas', 'store_fname'))
if isinstance(att_r, (list, tuple)):
att_r = att_r[0]
self.assertNotEqual(att_r['store_fname'], unicode(oid))
self.assertNotEqual(att_r['store_fname'], str(oid))

att.unlink()
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

from . import controllers
from openerp import api, SUPERUSER_ID
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': 'Email confirmation on sign up',
'summary': """New user is able to login only after confirming his/her email""",
@@ -12,6 +11,6 @@
'auth_signup',
],
'data': ['data/config.xml', 'views/thankyou.xml', 'data/email.xml'],
'installable': True,
'installable': False,
'post_init_hook': 'init_auth',
}
@@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-

from . import auth_signup_confirmation
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import werkzeug
from openerp.addons.auth_signup.controllers.main import AuthSignupHome
from openerp import http
@@ -60,6 +60,8 @@ <h2>Need our service?</h2>
<ul>
<li><a href="mailto:apps@it-projects.info">apps@it-projects.info <i class="fa fa-envelope-o"></i></a></li>
<li><a href="https://www.it-projects.info/page/website.contactus " target="_blank">https://www.it-projects.info/page/website.contactus <i class="fa fa-list-alt"></i></a></li>
<li><a href="https://m.me/itprojectsllc" target="_blank">https://m.me/itprojectsllc <i class="fa fa-facebook-square"></i></a></li>
<li>skype@it-projects.info <i class="fa fa-skype"></i></li>
</ul>
</div>
</div>
@@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-

from . import controllers
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': 'Email confirmation on sign up (CRM extension)',
'summary': 'Automatically creates a lead for every new user',
@@ -12,5 +11,5 @@
'auth_signup_confirmation',
'crm',
],
'installable': True,
'installable': False,
}
@@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-

from . import auth_signup_crm
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from openerp.addons.auth_signup_confirmation.controllers.auth_signup_confirmation import AuthConfirm
from openerp import http
from openerp.http import request
@@ -28,6 +28,8 @@ <h2>Need our service?</h2>
<ul>
<li><a href="mailto:apps@it-projects.info">apps@it-projects.info <i class="fa fa-envelope-o"></i></a></li>
<li><a href="https://www.it-projects.info/page/website.contactus " target="_blank">https://www.it-projects.info/page/website.contactus <i class="fa fa-list-alt"></i></a></li>
<li><a href="https://m.me/itprojectsllc" target="_blank">https://m.me/itprojectsllc <i class="fa fa-facebook-square"></i></a></li>
<li>skype@it-projects.info <i class="fa fa-skype"></i></li>
</ul>
</div>
</div>
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': "Autostaging (technical core)",
'author': "IT-Projects LLC, Ildar Nasyrov",
@@ -9,5 +8,5 @@
'data': [
'data.xml',
],
"installable": True
"installable": False
}
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

from openerp import models, fields, api
import datetime
@@ -131,7 +131,7 @@ <h2>More information</h2>
</p>
</div>
</div>
</section>
</section>-->


<section class="oe_container">
@@ -143,9 +143,10 @@ <h2>Need our service?</h2>
<li><a href="mailto:apps@it-projects.info">apps@it-projects.info <i class="fa fa-envelope-o"></i></a></li>
<li><a href="https://www.it-projects.info/page/website.contactus " target="_blank">
https://www.it-projects.info/page/website.contactus <i class="fa fa-list-alt"></i></a></li>
<li><a href="https://m.me/itprojectsllc" target="_blank">https://m.me/itprojectsllc <i class="fa fa-facebook-square"></i></a></li>
<li>skype@it-projects.info <i class="fa fa-skype"></i></li>
</ul>
</div>
</div>
</section>

-->
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': "Autostaging project task",
'summary': "Change stages of tasks automatically after a specified time",
@@ -23,5 +22,5 @@
'post_init_hook': None,

'auto_install': False,
'installable': True,
'installable': False,
}
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

from openerp import models, fields

@@ -53,6 +53,8 @@ <h2>Need our service?</h2>
<ul>
<li><a href="mailto:apps@it-projects.info">apps@it-projects.info <i class="fa fa-envelope-o"></i></a></li>
<li><a href="https://www.it-projects.info/page/website.contactus " target="_blank">https://www.it-projects.info/page/website.contactus <i class="fa fa-list-alt"></i></a></li>
<li><a href="https://m.me/itprojectsllc" target="_blank">https://m.me/itprojectsllc <i class="fa fa-facebook-square"></i></a></li>
<li>skype@it-projects.info <i class="fa fa-skype"></i></li>
</ul>
</div>
<div class="oe_span4">
@@ -1 +0,0 @@
# -*- coding: utf-8 -*-
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': 'Barcode Widget',
'version': '1.0.1',
@@ -23,7 +22,7 @@
'test': [],
'demo': [],

'installable': True,
'installable': False,
'active': False,
'application': True,
}
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import models
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2004-2015 Odoo S.A.
# Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
@@ -8,7 +7,7 @@
"category": "Extra Tools",
# "live_test_url": "",
"images": [],
"version": "10.0.1.0.0",
"version": "11.0.1.0.0",
"application": False,

"author": "IT-Projects LLC, Kolushov Alexandr",
@@ -19,7 +18,6 @@
"currency": "EUR",

"depends": [
'report',
'barcodes'
],
"external_dependencies": {"python": [], "bin": []},
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import res_attendance
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2004-2015 Odoo S.A.
# Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2004-2015 Odoo S.A.
# Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
@@ -7,7 +6,7 @@


class BaseConfigSettings(models.TransientModel):
_inherit = 'base.config.settings'
_inherit = 'res.config.settings'

group_attendance_use_pin = fields.Selection([(0, 'Partners do not need to enter their PIN to check in manually in the "Kiosk Mode".'),
(1, 'Partners must enter their PIN to check in manually in the "Kiosk Mode".')],
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2004-2015 Odoo S.A.
# Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
@@ -46,6 +46,8 @@ <h2>Need our service?</h2>
<ul>
<li><a href="mailto:apps@it-projects.info">apps@it-projects.info <i class="fa fa-envelope-o"></i></a></li>
<li><a href="https://www.it-projects.info/page/website.contactus " target="_blank">https://www.it-projects.info/page/website.contactus <i class="fa fa-list-alt"></i></a></li>
<li><a href="https://m.me/itprojectsllc" target="_blank">https://m.me/itprojectsllc <i class="fa fa-facebook-square"></i></a></li>
<li>skype@it-projects.info <i class="fa fa-skype"></i></li>
</ul>
</div>
<div class="oe_span4">
Oops, something went wrong.

0 comments on commit c044207

Please sign in to comment.