Commit Graph
249 Commits
Author SHA1 Message Date
Xavier Morel 67c17cb37f [REM] P3: outdated html2text vendoring
The vendored html2text is *really* old and absolutely not
P3-compatible.

There is a maintained version on Pypy which is, so use that and stop
vendoring html2text.
2017-05-15 12:26:30 +02:00
xmo-odoo 021de21e8c [FIX] P3: replace PyPDF by PyPDF2
PyPDF is unmaintained and abandoned (as noted on its home page
http://pybrary.net/pyPdf/) and was never updated to Python 3. PyPDF2 is
a fork which provides a mostly compatible API and is P3-compatible.

Replace PyPDF by PyPDF2.
2017-05-12 13:28:57 +02:00
xmo-odoo fffaf735f5 [FIX] P3: list -> iterable builtins (#16811)
In Python 3:

* various builtins and dict methods were changed to return
  view/iterable objects rather than lists
* and the separate Python 2 view/iterable builtins and methods were
  removed altogether

This is problematic when using these items as list (which the happens
repeatedly in Odoo), but more viciously when iterating *multiple times*
over them (which also happens, which I've messed up multiple times while
writing this, and which is a pain to debug even when you've just created
the issue).

Convert all code using these to semantics-matching cross-version
helper functions to get the LCD behaviour between P2 and P3, and
forbid the builtins via lint.

issue #8530
2017-05-10 09:39:55 +02:00
Laurent Smet 3425752eac [REM] odoo/report: remove deprecated stuff
- RML Reports
- Webkit Reports (most part already removed by 13b9982c62)
- LocalService in netsvc.py
- rename attributes like rml_% to report_%
- rename ir.actions.report.xml to ir.actions.report
- allow rendering directly on an ir.actions.report by calling render method
- remove 'controller' report_type
- remove unused res.font stuff
- remove print_report method in models.py (not used)
- restore removed call to pdftotext process in test_reports
2017-05-08 09:22:56 +02:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* 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-04-28 09:06:53 +02:00
xmo-odoo 2e6a589f41 [FIX] builtins removed from Python 3
* Reverse wrapper courtesy of @rco-odoo's original P3 branch
* thin compat module stripped down from werkzeug (to augment as needed)

issue 8530
2017-04-27 13:59:33 +02:00
Christophe Simonis 3bb022d57c [MERGE] forward port branch saas-12 up to 6f8e40c 2016-10-27 18:17:59 +02:00
Christophe Simonis 87b683828b [MERGE] forward port branch 9.0 up to 7974cc6 2016-10-24 15:08:35 +02:00
Simon Lejeune 7974cc6597 [FIX] packaging: windows: correctly include reportlab font files
Without this patch, the fonts are not included and the barcodes in the
reports were not displayed.
2016-10-24 15:02:03 +02:00
Simon Lejeune ed8f0c83c4 [REF] cli: renamed openerp-server to odoo-bin
The use of an entry point was considered in order to provide
an `odoo` command in the path for the packages users, but the
generated entry point will first check that all the things in
install_requires were provided in a not bright way: it'll check
that it matches a distribution name. This does not work because
python-chart does not have the distrubtion name "pychart" which
is provided by the python-pychart package in debian jessie. Same
for suds-jurko which is provided by python-suds in debian stretch
but does not have the distribution name "suds".

Also, adapted the  packages tests to these cli changes.
2016-09-30 12:05:49 +02:00
Simon Lejeune 2d5fc151a2 [REF] cli: rename odoo.py to setup_dev.py
and move it under the setup package. Since the rename of the
openerp directory into odoo, having a script named "odoo.py"
conflicts with a package named "odoo".
2016-09-30 12:05:49 +02:00
Simon Lejeune eb501081c5 [REF] packaging: openerp has been renamed odoo
Fix the various place when the rename of the git root directory
broke the packaging script. Also, we can now name the library
"odoo".
2016-09-30 12:05:48 +02:00
Simon Lejeune 76c7041c5b [REF] server: remove the openerp-gevent file
* use a special arg in odoo.py
* note that the previous implementation was relying on the fact that
  the openerp-gevent file was located in the same directory than the
  odoo.py file. This was no longer true since rev a0eb172cab
  This commit brings back this behavior.
2016-09-07 18:09:46 +02:00
Christophe Simonis f9072c789d [MERGE] forward port of branch 9.0 up to bfbe2d6
# Conflicts:
#	addons/marketing/i18n/es_PE.po
#	addons/marketing/i18n/hu.po
2016-06-14 19:27:16 +02:00
Simon Lejeune c12c097655 [REV] Packaging: remove "openerp-gevent" from script
This reverts commit a0eb172cab and thus
allow to actually use the longpolling feature.

The commit was made originally to better follow the debian packaging
guidelines.

A better solution will be implemented for v10: removing the `openerp-gevent`
script to replace it with a special argument in `odoo.py`.

There is still a dependency issue as we need psycogreen but this dependency
is not met in debian wheezy. This will be made a hard dependency for v10 as
it is available in debian jessie.

opw 678334
2016-06-14 18:22:18 +02:00
Christophe Simonis 82a495eed5 [MERGE] forward port of branch saas-7 up to 4022493 2015-12-10 13:05:58 +01:00
Olivier Dony 68196b1b6a [FIX] setup: missing cacert.pem data file for requests in win32 packaging
This data file is required when making HTTPS requests
with Python's `requests` package. Without it, modules
such as account_yodlee/account_plaid won't be able
to call their secure API.

+ minor refactoring (3 strikes and the code is out)
2015-12-01 12:03:25 +01:00
Simon Lejeune c1ff5d894c [REF] packaging: depends on XlsxWriter 2015-11-26 14:37:33 +01:00
Simon Lejeune afd187d3b1 [FIX] packaging: windows: bundle xlrd
xlrd allows to import xls files and is an optional dependency. Bundle
it in the exe release for convenience.
2015-10-12 17:33:38 +02:00
Christophe Combelles 6ceb0a2b1b [FIX] setup.py: pyparsing version inconsistent with requirements 2015-10-08 12:00:13 +02:00
Leonardo Rochael Almeida 60af7cac02 [IMP] replace simplejson with stdlib json
The stdlib version of the json library is more recent than the 3.5.3
version we are pinning in `requirements.txt`

There is no reason to use it.

Closes #6940
2015-09-28 10:53:32 +02:00
Leonardo Rochael Almeida 06b3026bcd [IMP] unittest2 > unittest
The `unittest2` package is simply a backport of `unittest` from the
Standard Library of Python 2.7 to previous versions.

There is no reason to use it any longer.

Closes #6941
2015-09-28 10:37:27 +02:00
Simon Lejeune 9f3b26c1ca [REF] packaging: ofxparse as "hard" dependency 2015-07-31 14:11:16 +02:00
Richard Mathot 6dfbca2ba0 [ADD] Activate 'suds' library for Python
This library is a SOAP client. It will be used to integrate Odoo with
external web services that use SOAP based protocols.
2015-07-14 16:04:31 +02:00
Christophe Simonis fe92deaa1d [MERGE] forward port of branch 8.0 up to 2de301d 2015-07-07 18:13:57 +02:00
Aaron Bohy a2650bdae2 [FIX] Packaging: Windows: pychart dependency
In 988baeb533, the pychart dependency has been updated for all distributions,
to use the python-chart library available with pip. However, for Windows, this
dependency should stay pychart as we do not use pypi to generate the Windows binary.
2015-07-07 16:44:03 +02:00
Christophe Simonis 4c2a1de75a [MERGE] forward port of branch 8.0 up to 22bd3bd 2015-07-01 18:11:32 +02:00
Alexandre Fayolle 988baeb533 [FIX] setup: use pypi version of PyChart
PyChart 1.39 is available on pypi.python.org, use it
in dependency specs instead of the direct link to
unreliable download.gna.org

Closes #6781
2015-07-01 16:04:15 +02:00
Aaron Bohy a0eb172cab [FIX] Packaging: remove "openerp-gevent" from script
e.g. to avoid creating "openerp-gevent" in /usr/bin/
2015-01-07 15:57:52 +01:00
Simon Lejeune d26a354c99 [FIX] Packaging: lib name from openerp to odoo
It's about time
2014-11-28 16:40:56 +01:00
Simon Lejeune cb55107fe1 [FIX] packaging: windows: passlib dependency was not correctly set 2014-09-16 12:10:53 +02:00
Simon Lejeune 735924878f [REF] setup: cleanup and linting of setup.py, reworked MANIFEST, added requirements.txt 2014-09-02 14:13:00 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Xavier Morel cf41752470 [IMP] auth_crypt: port to passlib instead of using embedded/hand-rolled md5crypt 2014-06-19 09:04:51 +02:00
Nicolas Bessi 9a8cdf49b0 Move setup.py in previous root in order not to break community tools based on it.
It should not causes any trouble as it is not used in odoo.py
2014-06-06 09:08:03 +02:00
Antony Lesuisse 2f4984b838 [IMP] packaging v8 part1, tgz deb and rpm 2014-05-30 01:54:20 +02:00
Antony Lesuisse 6e9edeeb46 [FIX] odoo.py setup deps and readme.md 2014-05-29 22:29:38 +02:00
Дмитро Катюха 9f13722f78 Added openerp-gevent and oe to 'scripts' section in setup.py 2014-05-19 12:45:47 +03:00
Christophe Simonis 863e295937 [MERGE] forward port of branch saas-3 up to revid 5116 chs@openerp.com-20140415133650-y46i0o3qkb2atbvi
bzr revid: chs@openerp.com-20140415140548-rlg9uypv78pywqhc
2014-04-15 16:05:48 +02:00
Christophe Simonis 3d2e9b4d2b [MERGE] forward port of branch 7.0 up to revid 5281 launchpad_translations_on_behalf_of_openerp-20140412094159-mhy3v2prb3ctx32k
bzr revid: jke@openerp.com-20140409153527-mic1a8afcvdhsd27
bzr revid: chs@openerp.com-20140410102422-fcwxhjk40z0oy8x5
bzr revid: chs@openerp.com-20140415133650-y46i0o3qkb2atbvi
2014-04-15 15:36:50 +02:00
Olivier Dony 4065e36829 [FIX] setup: allow using pywebdav 0.9.4.1 (and possible future patches), we only want to stay below 0.9.8
lp bug: https://launchpad.net/bugs/1305872 fixed

bzr revid: odo@openerp.com-20140410140244-wu2l4hb5o1ct7tmm
2014-04-10 16:02:44 +02:00
Christophe Simonis 15680c94e1 [MERGE] forward port of branch saas-3 up to revid 5115 chs@openerp.com-20140410102422-fcwxhjk40z0oy8x5
bzr revid: chs@openerp.com-20140410105454-6utwgruj80h8wdss
2014-04-10 12:54:54 +02:00
Olivier Dony 6e52ba2487 [FIX] setup.py: babel.dates.format_timedelta required, added in 1.0
bzr revid: odo@openerp.com-20140409081459-07uyfgfk03jevch4
2014-04-09 10:14:59 +02:00
Olivier Dony a939728418 [FIX] setup.py: pywebdav 0.9.8 breaks the API by renaming the DAV module
bzr revid: odo@openerp.com-20140409081349-53jbd1k9vfp0uzom
2014-04-09 10:13:49 +02:00
Christophe Simonis 438025dac8 [FIX] setup.py: correct included packages in py2exe options
bzr revid: nightly_server-20140403123144-pm4dqs04dbfmv1p8
2014-04-03 14:31:44 +02:00
Fabien Meghazi 833b5e3ab7 [ADD] python requests library dependency
bzr revid: fme@openerp.com-20140327125714-gu682vzggb7rva80
2014-03-27 13:57:14 +01:00
Christophe Simonis 1a38a08687 [FIX] setup.py: pywebdav does not expose DAV import anymore
bzr revid: chs@openerp.com-20140306160500-ey6o7iiiy1wmvkpp
2014-03-06 17:05:00 +01:00
Xavier Morel d97f9effe0 [IMP] replace PIL dependency by pillow
pillow is a better-maintained fork, and installing it from source
tends to succeed more easily than PIL's

bzr revid: xmo@openerp.com-20140114131032-rxwpmc0yrqp91x4v
2014-01-14 14:10:32 +01:00
Frédéric van der Essen 6df89aa77a [FIX] adding new python dependencies brought by the hw_escpos module to the install script
bzr revid: fva@openerp.com-20140113111705-649g7wknkb10u6re
2014-01-13 12:17:05 +01:00
Stephane Wirtel f8c0310d8e [FIX] Use psycogreen instead of gevent-psycopg2
green-psycopg2 has been deprecated by the developer, he asks to use an
alternative, in this case, the alternative is psycogreen
https://bitbucket.org/dvarrazzo/psycogreen

bzr revid: stw@openerp.com-20130909131123-u0gqhvxqwv13yqke
2013-09-09 15:11:23 +02:00