Commit Graph
98741 Commits
Author SHA1 Message Date
Martin Geubelle b2636c026f [FIX] web: dataset aware of m2m tags color change
Use case: create a new tag, change its color and create another new tag. The m2m field was rendered again but the dataset was not aware of the color change on the first new tag. We need to invalidate the cache after changing the color in a tag in edit mode.
2015-10-01 10:51:26 +02:00
Arthur Maniet a0ea75e5f1 [REVERT] shema changes introduced in 9927f960f1 2015-10-01 10:38:23 +02:00
Christophe Matthieu 66871ee65b [IMP] website_sale: render all order-lines and change cart quantity
* update cart code simplification
* fix rendering bug when change pricelist
* remove get_unit_price and fix rendering error from website_event_sale
2015-10-01 10:26:29 +02:00
Arthur Maniet 9927f960f1 [FIX] account and res.partner.bank fixes
- Remove _check_communication method which was a complex way to achieve
  what extension classes can do with a simple @api.constraint
- Proper default values for partners created through the payment form.
- In res.partner.bank, store the 'acc_type' computed field so that it can
  trigger constraint check (base_iban adds one)
- Misc
2015-10-01 10:09:43 +02:00
Arthur Maniet eb54347a04 [FIX] account: reconciliation interface compatibility with new design 2015-10-01 10:09:43 +02:00
Martin Trigaux 055918370d [I18N] Update translation terms from Transifex 2015-10-01 09:58:29 +02:00
Olivier Dony b5ae7659ff [REL] Odoo 9 2015-10-01 09:39:57 +02:00
Martin Trigaux a82d4010a7 [I18N] export the terms
v9 is here, let's freeze the source terms
2015-10-01 09:21:59 +02:00
Antony Lesuisse ed1bbbb8d0 [IMP] enterprise settings 2015-10-01 09:06:33 +02:00
Martin Trigaux bb439b718c [FIX] auth_crypt: encrypt all the things!
Was removed at 7b61d6c1 because of passlib 1.6
Removed at 88b63a9b
2015-10-01 08:39:55 +02:00
Olivier Dony 8932c52e67 [MERGE] CSRF protection support in routes and forms
* make CSRF protection the default on all non-SAFE methods
  (any method besides GET, HEAD, TRACE and OPTIONS )
  note: there currently is no way to call a CSRF-protected endpoint
  without a form-encoded entity-body as that's the only place we get
  the CSRF token from.
* simple CSRF token generation: just use the HMAC'd session id, no
  generating a new random token per session then HMAC it
* use constant-time equal function to avoid timing attacks
* assert that a database secret is configured before
  hashing/validating the CSRF token
* opt-out database manager from CSRF: the super-admin password
  serves the purpose of a CSRF token in the database manager screens.

Implementation by xmo@odoo.com and chs@odoo.com
2015-10-01 02:45:34 +02:00
Xavier Morel afa9f4b5fd [REM] web: /login route
Only used by web tests (which rely on a module they don't depend on to
run, bad!) and altering the test session directly should work, so this
endpoint seems completely unnecessary.
2015-10-01 01:36:50 +02:00
Xavier Morel cea29e0c01 [ADD] client-side CSRF support
* add CSRF token as core.csrf_token
* add CSRF tokens to client-generated and/or JS-submitted forms
* remove broken "compatibility" mode of web.ajax.post

  /cc @dmo-odoo I've no idea how that was supposed to work, from looking
  things up all modern browsers seem to support FormData, and old IEs
  which don't don't support fallbacks either and would require
  submitting an actual form as fallback so...
2015-10-01 01:36:50 +02:00
Xavier Morel 7753ed7ce4 [IMP] survey: replace form which had no reason to be a form by a div 2015-10-01 01:36:50 +02:00
Christophe Simonis 7636b510a2 [ADD] *: CSRF protection in forms and routes
* make CSRF protection the default on all non-SAFE methods
  note: there currently is no way to call a CSRF-protected endpoint
  without a form-encoded entity-body as that's the only place we get the
  CSRF token from.
* simple CSRF token generation: just use the HMAC'd session id, no
  generating a new random token per session then HMAC it
* use constant-time equal function to avoid timing attacks
* assert that a database secret is configured before hashing/validating
  the CSRF token
* opt-out database manager from CSRF: The super-admin password serves
  the purpose of a CSRF token in the database manager screens.
  There is no request database to obtain the
  secret and generate a CSRF token.
2015-10-01 01:36:50 +02:00
Xavier Morel 058b33544f [FIX] website_sale_option: implicit JS global 2015-10-01 01:36:50 +02:00
Xavier Morel f01c4e84b0 [FIX] website_event: unnecessary POST call 2015-10-01 01:36:49 +02:00
Olivier Dony 88b63a9b19 Revert "[IMP] auth_crypt: update to Passlib 1.6"
Unfortunately Ubuntu LTS does not have passlib 1.6 yet,
even though Debian Stable has it now, so for the sake
of making life easier for everybody we'll stick with
passlib 1.5 for one more version.

This reverts commit c950224ef7.
2015-10-01 01:35:06 +02:00
Josse Colpaert 339eeca73c [FIX] stock: lots handling correction when taking entire quant with no lot 2015-10-01 00:31:24 +02:00
Fabien Pinckaers 7b61d6c14a [IMP] Typo 2015-09-30 14:21:49 -07:00
Josse Colpaert 3c0be6b60a [FIX] sale: onchange on sale order line to set customer lead time
This would lead delivery orders not to be too late by default
and a correct scheduled date on the procurement
2015-09-30 20:54:47 +02:00
Simon Lejeune c3c2281a4d [FIX] ir_qweb: add id to ir.attachment mock
fixes #8762
2015-09-30 17:48:48 +02:00
Martin Trigaux 04cebbd537 [IMP] hr_payroll: remove broken field total_wage
This field is broken since 230e12b in 2011 (return value to inexistant 'basic'
key). As it was never used and not working, remove it.

Closes #8781
Closes #8785
2015-09-30 17:23:22 +02:00
Nicolas Lempereur 7c67091a96 [FIX] web_editor: correct typo translation simple html widget
fixes #8698
2015-09-30 17:21:51 +02:00
Xavier Morel c950224ef7 [IMP] auth_crypt: update to Passlib 1.6
Debian Jessie provides Passlib 1.6 so we're not bound to 1.5 anymore.

Use 1.6's "deprecated=auto" feature: will automatically mark any hash
other than the default as "to update" rather than having to list all of
the supported hashes to deprecate (and remember to update in lockstep
with the schemes list).

When not specified explicitly, the default hash is the first one in the
schemes list.
2015-09-30 17:16:10 +02:00
qdp-odoo 4181dcafd2 [FIX] account_analytic_default: fixed the selection of default analytic account that was broken since sale-pocalypse, i suppose 2015-09-30 17:13:38 +02:00
Josse Colpaert 98d18d767f [FIX] stock: when transferring (action_done), do several links for the same operation and move at once
As the link between moves and operations is done for every quant,
we can do all links between a same operation and move at once.

Besides helping in performance, this fixes problems to handle all the lots
at once for one operation.

The views for pack operation lots are also refined.
2015-09-30 16:55:18 +02:00
Yannick Tivisse 757ababa68 [FIX] account,sale,purchase: Take country format address in email templates
In qweb reports, the address is displayed according the standards of the
country where it belongs. In the email templates, the company address was
always displayed in the same way, no matter the country of the address.
2015-09-30 16:45:22 +02:00
Yannick Tivisse 411c806887 [IMP] project: Remove date_start and date_end on project_task tree view and filters
as it as already been removed by fp on the form view
2015-09-30 16:42:19 +02:00
Yannick Tivisse 4bbeacf813 [IMP] base: Set correct thousand separators for en_us language
Set a thousands separator ',' each 3 characters, and a decimal point '.'
2015-09-30 16:42:18 +02:00
Yannick Tivisse 844d5381bd [FIX] typo: Replace 'Expiry Date' by 'Expiration Date'
fp request
2015-09-30 16:42:18 +02:00
Yannick Tivisse 071cd6275d [FIX] mrp,purchase,sale: 'N°' is not english, replaced by '#' for en_us
The translations have been updated too
2015-09-30 16:42:18 +02:00
Yannick Tivisse cd500c290b [IMP] stock: Display warehouse and locations settings if 'group_stock_manager' 2015-09-30 16:42:18 +02:00
Yannick Tivisse 1682c8fac0 [FIX] project: typo 2015-09-30 16:42:18 +02:00
Yannick Tivisse 04384fc92f [FIX] hr_recruitment: missing image in module description 2015-09-30 16:42:18 +02:00
Yannick Tivisse 47a82a8e9c [REM] Remove useless button in some module descriptions 2015-09-30 16:42:18 +02:00
Yannick Tivisse d600f86181 [IMP] web_settings_dashboard: Display a cursor on the big clickable icon 2015-09-30 16:42:17 +02:00
Yannick Tivisse 4c13b11230 [IMP] stock: menuitems displayed twice
Rename 'Serial Numbers' menuitem into 'Serial Numbers / Lots'
Move Ugly Unpack button on the header in stock.quant.package form view
Remove doublon menuitem for action 'product_uom_form_action'
2015-09-30 16:42:17 +02:00
Yannick Tivisse 5b910a783b [FIX] event: typo 2015-09-30 16:42:17 +02:00
Josse Colpaert 8380d88b68 [IMP] mrp: source location on manufacture pull rule can be used to set raw material location 2015-09-30 16:34:58 +02:00
Raphael Collet f739c38d58 [IMP] mail: trigger garbage collection of attachments from model ir.autovacuum 2015-09-30 16:29:59 +02:00
Christophe Matthieu 6784b1af78 [FIX] website_event_sale: don't display event ticket discount in cart 2015-09-30 16:24:45 +02:00
Christophe Matthieu a04dcd8b26 [FIX] ir.qweb: display the tail of node with 'groups'
Issue: tail of the node with groups disappears if the user dont have access to the node
2015-09-30 16:24:25 +02:00
Nicolas Lempereur 7163d1692b [FIX] website: delay tour start till editor is loaded 2015-09-30 16:20:17 +02:00
Fabrice Henrion d2faba51f8 [FIX] im_odoo_support: typo
Closes #8093
2015-09-30 16:18:29 +02:00
Josse Colpaert 5edd024e3a [FIX] point_of_sale: pickings should be transferred the new way
Also for returns, make sure the picking gets the correct
locations already.
2015-09-30 16:18:05 +02:00
Nicolas Martinelli aed154b6bb [FIX] point_of_sale: display glitch 2015-09-30 15:21:39 +02:00
Martin Trigaux 18132e5eef [FIX] sale_stock: typo
Courtesy of Kris Krnacs
2015-09-30 14:46:30 +02:00
Miku Laitinen c9163c5403 [FIX] gamification: Made gamification badge descriptions translatable
The badge name is already translatable but the description was not,
Regenerate .pot file for these modules.

Closes #8399
2015-09-30 14:44:35 +02:00
qsm-odoo f72e9b9919 [FIX] web: reintroduce ChangePassword template
The template had been previously dropped by mistake.
+ the validation buttons were not correctly handled and so changing
his password was not possible (these buttons must be in the modal
footer).
2015-09-30 14:36:36 +02:00