Commit Graph
117975 Commits
Author SHA1 Message Date
jaredkipe bd7ee997c7 [FIX: safe_eval’ing large strings gives illegal opcode.
* FIX: safe_eval’ing large strings gives illegal opcode.

* Update comment to be more explicit.
2017-10-03 17:51:24 +02:00
Yenthe V.G 694b7ff866 [FIX] hr_expense: improve tour message
Better English

Closes #19867
2017-10-03 17:35:05 +02:00
Simon Lejeune 9eac6c6377 [REF] stock_account
- value move lines created when the move is done
- when reducing done out move, increase latest in move in order to not
  lose the returned quantity in the fifo chain
2017-10-03 17:15:54 +02:00
Wolfgang Taferner 29c326a8aa [IMP] website_sale_delivery: use the preferred carrier of the partner (if available)
In case you have a delivery partner set on your shipping contact,
when checkouting your cart, the preferred carrier will be used instead
of the first available carrier.
2017-10-03 16:59:27 +02:00
Jeremy Kersten 4778e8d006 [IMP] calendar: add assert to debug test 2017-10-03 16:10:20 +02:00
Jeremy Kersten 500fabf13c [FIX] calendar: temporary fix test...
...commenting it while we find the bug.
Branch need to be green for v11
2017-10-03 16:10:19 +02:00
Jeremy Kersten 662ee52f77 [FIX] website_sale_stock: don't break wishlist/comparaotr design
Before this commit, the priority of the view make that the warning was dipslayed between wishlist and comparator icon
2017-10-03 16:07:26 +02:00
Jesús Alan Ramos Rodríguez fdb2f17f8b [I18N] add VAT es_MX translations
To use RFC (Mexico) instead of NIF (Spain)

Closes #19142
2017-10-03 15:00:33 +02:00
Josse Colpaert 71f9c08e80 [FIX] mrp: make sure the note is logged when you change done qties
The production_id on the stock move line is a helper field for work
orders and you can not assume it is always set correctly.  As
non-tracked stock moves create the stock move lines themselves it is not
set.

So, for logging notes, we check the 2 production order fields through
the moves.
2017-10-03 15:00:13 +02:00
Josse Colpaert 212110a196 [IMP] stock: only allow positive or zero quantities done
Add a constraint in order to forbid it.
2017-10-03 14:52:26 +02:00
qdp-odoo 02aea32656 [FIX] account: onchange amount_currency in case of negative sign should set the credit (with a positive sign) 2017-10-03 14:46:04 +02:00
Richard Mathot e2349f4546 [FIX] odoo: bad imports in tests don't fail silently anymore
Before this fix, you can break a test class by simply adding an
incorrect import like this:
`from gloubiboulga import Casimir`
--> No error message, the test is simply not run

This is due to the fact that we want to ignore ImportError's... only
when there is no `.tests` submodules (actually, we ignored them all!)

This commit fixes the condition and re-enables error logging when tests
actually encounter ImportErrors
2017-10-03 14:29:01 +02:00
Laurent Smet 489245a5ee [FIX] account_budget: prevent having an account.budget.post without account_ids (#19860)
Initially, the check was done in _compute_practical_amount.
However, in case of no account_ids, an error is raised at each click until the account_ids are set.

was PR #19860
2017-10-03 14:28:32 +02:00
amoyaux b284285f62 [FIX] mrp: non-deterministic test/ behaviour
test_03_test_serial_number_defaults creates 3 stock.production.lot
but in a test case they have the same create_date.
Moreover this test go through _assign_default_final_lot_id that do
a search on lot ordered by create date. That's why the test is non-
determinisitc since it could pick one of the 3 lots randomly

This commit add the id in the order.
2017-10-03 13:57:31 +02:00
Josse Colpaert d8ae935e74 [IMP] mrp: traceability of quantity of non-tracked product
When producing a finished product with a lot, also the raw materials
without lot tracking should split the move lines to at least know the
quantities consumed for every lot produced.  This way, the traceability
report will not confuse the user.
2017-10-03 13:57:31 +02:00
Goffin Simon b7a07d3385 [FIX] sale_stock: Typo error
Typo error
2017-10-03 13:04:34 +02:00
amoyaux d46279ef7b [FIX] stock: traceback package tree view
_compute_package_info iterate on package but
sometimes self is used resulting in an ensure one
exception.
2017-10-03 13:01:55 +02:00
qsm-odoo ad4dd2243c [FIX] web_editor: build all child snippets when dropping one
Since website refactoring, the behavior was lost and broke some snippets.
2017-10-03 12:59:55 +02:00
Nicolas Martinelli 09e380e239 [FIX] base, website_customer: incorrect wording
opw-768886
2017-10-03 12:48:48 +02:00
Goffin Simon 791152a876 [FIX] web: The model "ir.values" has been renamed
The model "ir.values" has been renamed in "ir.default" by this commit:

60d9f6fef9
2017-10-03 12:48:13 +02:00
Olivier Dony b02dea7688 [IMP] config: allow blocking access to db manager
- The `--no-database-list` option will now also block access to database
  management functions and screens.
  Presumably this flag should only be used in production when all
  databases have been provisioned, so the admin should like to block
  access to the db manager at the same time.

- If no `--database` or `-d` parameter is provided, the system will be
  unable to fetch a list of databases at all, so users will be blocked
  with an error message.

- Hide the link on the login screen to the DB manager when it is
  disabled, to prevent sending users to an error page.

- Weak attempt at updating the documentation

Note: the security check for RPC methods could have been done in the RPC
dispatcher, however that would not have protected service methods when
called directly, e.g. by a controller (e.g. the dump method).
2017-10-03 12:46:03 +02:00
Olivier Dony 7d16769263 [IMP] config: support hashed master passwords
- Add support for hashed master passwords (super-admin password) using a
  strong scheme (PBKDF2_SHA512).

- Replace the password with a hash in memory (tools.config map), after
  verifying it

- Automatically replace the plaintext master password with a hash when
  saving it after a password change

- Preserve support for setting/using plaintext passwords when necessary
  (e.g. as a temporary deployment thing)
2017-10-03 12:45:22 +02:00
Christophe Simonis 5e0db55a2f [FIX][P3] core: correct database dump rpc function 2017-10-03 12:30:11 +02:00
Christophe Simonis 1475a1c2c3 [FIX][P3] core: correctly handle binary files (base64 encoded) at rpc level 2017-10-03 12:30:11 +02:00
Christophe Monniez 3a6e7f98c2 [MERGE] packaging: Adapt for Python 3 and V11 2017-10-03 12:25:28 +02:00
Christophe Monniez aaa30a74b5 [imp] module,http: open manifest files as utf-8 in a python2/3 compatible way 2017-10-03 12:01:53 +02:00
Christophe Monniez 06c2346da5 [REF] win32: move to WinPython...
Purpose: for multiple reasons (bytecode change in python 3.6,
         missing files for some packages, py2exe is unmaintained
         ...) the py2exe solution cannot be used anymore.
         Odoo for windows will now use a portable Python that
         will be shipped with the Windows installer.
         For that purpose, a Winpython 3.6.2 is used.
         In order to build the Windows installer, a Winpython dir
         with all the Odoo requirements fullfilled, must exists on
         the build system (qemu-kvm VM).

* nsis installer:
    - Only the python dir is used to avoid packaging too much stuffs
    - better compression level
    - starts the Odoo service using nssm
    -  bump to V11
* change the default win10 build vm path
* print a warning when uncomplete addon move
* try to force remove of addon path:
  when the addons are moved to Odoo/addons, it happens that the
  destination already exists. In that case, the source addon was not
  deleted, resulting in a uneeded file duplication.
* fix version string to avoid invalid chars in windows service
* Add requirements adpated for WinPython
* package.py now shows the traceback when a build fails
* verify that a file exists before publishing
* debuild now creates an .xz file instead of .gz
* package: use logging module
* kvm CPU that works with older versions.
* fix a pexpect encoding bug
* fix the version to remove special chars '~' which is not appreciated
  by windows services

[REM] win32setup: Remove win32 python service

Purpose:
    Before this commit, the win32 service was managed by an executable
    builded from those two files with the help of py2xe.
    The win32 service is now managed by nssm which starts Odoo and therefore, those
    files are not needed anymore.
2017-10-03 12:01:53 +02:00
Christophe Monniez 938ae83585 [FIX] setup: fix the python regex to prepare dev environement 2017-10-03 12:01:53 +02:00
Christophe Monniez dc507be8cf [IMP] setup: require a python version >= 3.5 2017-10-03 12:01:53 +02:00
Christophe Monniez ee753bfc22 [IMP] debian,rpm: improve kill in service unit (thanks sbidoul) 2017-10-03 12:01:53 +02:00
Christophe Monniez 6a66adf395 [IMP] setup: ignore external files needed for win32 build 2017-10-03 12:01:53 +02:00
Christophe Monniez 6953f22e67 [IMP] setup: Update docker files 2017-10-03 12:01:53 +02:00
Christophe Monniez dd7b6fb6b7 [IMP] package: build source tarball using python3 2017-10-03 12:01:53 +02:00
Christophe Monniez e0dc251805 [IMP] Support for building Fedora26 rpm 2017-10-03 12:01:52 +02:00
Christophe Monniez 77df0e5b27 [FIX] misc: Force utf-8 decoding when opening a file 2017-10-03 12:01:52 +02:00
Christophe Monniez 0bab2e7fbd [FIX] modules: Verify that an addons path exists 2017-10-03 12:01:52 +02:00
Christophe Monniez 1e76ffc7bd [IMP] package: various improvements
* Add an option to avoid signing deb package
* update windows vm name
* add memory to kvm as win10 needs 1G
* increase win VM timeout because win10 seems slower to start
* add an option to keep build dir for debugging purpose
2017-10-03 12:01:52 +02:00
Christophe Monniez 25cae52b4f [IMP] debian: build package for python 3.5
* Add a minimum systemd service file
2017-10-03 12:01:52 +02:00
Christophe Monniez 44a38284a5 [FIX] debian/copyright: Added most of the js/css
Debian copyright file was only mentioning odoo files.
Now all js and css files with specific copyright / licenses are added.
2017-10-03 12:01:52 +02:00
xmo-odoo 27280fefa9 [IMP] website_mail_channel: unsubscribing unsubscribed address
Before this fix, if a (non-registered) user tried to unsubscribe an
address *not registered*, they'd get an unsub link, click on it, and
get a "Invalid or expired confirmation link." message, usually
wondering what the bloody hell happened.

Provide a clearer message in that case.
2017-10-03 11:19:18 +02:00
Richard Mathot da3c561d35 [IMP] website_sale_delivery: interactive carrier selection
Very smooth, super smart, easy win.
2017-10-03 11:17:57 +02:00
stefanorigano c12c34587d [FIX] web, project, stock: emphasize dashboard records' colors 2017-10-03 11:03:11 +02:00
qsm-odoo 4e090b2a5e [FIX] web_editor: properly reset to custom background option
This commit solves a bug when using custom background option: if a
custom background was selected, then hovering a non-custom background
and leaving the dropdown was selecting the non-custom background for
good instead of resetting back to the custom one. This is because the
custom background option is a non-preview one (you have to click) so
there should not be any need of resetting... except that the non-custom
background option is a preview one and messes with the same DOM
attributes as the custom background option.
2017-10-03 10:52:30 +02:00
qsm-odoo aba5402d5e [FIX] web: allow to group on more groupable fields with the searchview
Some fields are groupable even though they are not stored (e.g. an inherited
field, by example the 'date' field of 'fleet.vehicle.log.fuel').
2017-10-03 10:42:47 +02:00
Richard Mathot 95d03559a2 [FIX][P3] *: mock is now a part of unittest 2017-10-03 10:32:01 +02:00
Nicolas Lempereur c2f5039f84 [FIX] mail: error if called in onchange of virtual
This field can be called on an hr.expense for onchange on an
hr.expense.sheet record, thus the recordset could be a virtual ID so
self.ids could be empty leading to an error.
2017-10-03 10:26:26 +02:00
Edgar Rivero [Vauxoo] 1aa8de172f [CLA] add egrivero to Vauxoo's CLA
Closes #19779
2017-10-03 09:59:59 +02:00
qdp-odoo 5c476568ca [IMP] account: add analytic tags in account.move form view 2017-10-03 09:39:34 +02:00
qdp-odoo f734b92a70 [FIX] account: manually editable tax amounts in supplier bills.
People should be able to change manually the tax amounts on vendor bills, since they have to encode exactly what they receive and because the supplier may round differently than Odoo. On the other hand, in vendor bills, it's useless to try to compute a cash rounding impacting the taxes... as they should be now able to manually adapt it. So in vendor bills, the 'amount' field has to be the visible and editable one
2017-10-03 09:34:07 +02:00
Lucas Perais (lpe) c22b407f4b [FIX] mass_mailing: open links in parent while in backend
Before this commit, links that had no target location opened in _self, which is the iframe within which they are embedded.
After this commit, thos links are now opened in _parent to simulate closer the beahavior with an actual e-mail
2017-10-03 09:12:54 +02:00