Commit Graph
99161 Commits
Author SHA1 Message Date
Josse Colpaert 729c1fbec1 [FIX] sale: onchange for sale_delay/customer_lead not needed as it is in sale_stock 2015-10-01 13:05:56 +02:00
Nicolas Martinelli 59ab9bd25e [FIX] hr_expense: typo in report 2015-10-01 12:55:24 +02:00
Jérome Maes 8e63088dbc [FIX] im_livechat : web.session defined twice
On website page, in debug mode, error 'web.session already defined' appears in the console. This was due to the fact the namespace web.session was redefined a second time to bind the session on the server_url param for the livechat to work. On website page, this is already done by the native web.session (session_instance.js). Define a session in the bundle is required when livechat is intergrated on external page, so fetching the bundle is done through /im_livechat/loader/, and generating a web.session can be conditional.
2015-10-01 12:41:35 +02:00
Jérome Maes ea4dc68087 [FIX] im_livechat : clean cookie managment
Update the cookie after changing conversation state
Deleting the conversation cookie when closing the conversation window
Force open the conversation if a cookie is found (even if the state is closed)
2015-10-01 12:41:26 +02:00
Jérome Maes 3304b31938 [FIX] im_livechat, website_mail : message author avatar visible
To display author avatar to public user, using the /web/image url with res.partner returns the placeholder since public doesn't have access. Using the url on mail.message will display the avatar according to the access right defined on res_model/res_id of mail.message. However this executes mush query to fetch the avatar image (1 per message, against 1 per partner).

Maybe this wasn't a bug, but since it is a regression, this deserves to be fixed ...
2015-10-01 12:41:18 +02:00
Jérome Maes a9148a9f2e [FIX] im_livechat : assets controller was broken
The commit 6327cda0a7 introduce mock_attachment object, replacing ir.attachment. This new object doesn't not have id attribute : accessing it crashes. livechat controller needs to search on the mock url to generate the status, headers and content of the response via binary_content() method.
2015-10-01 12:41:08 +02:00
Jérome Maes 19452f2109 [FIX] mail : email_send should be False for chat and livechat channel
Chat and livechat channel should not send emails. The field is however editable, so it was added to the form view of mail.channel
2015-10-01 12:41:00 +02:00
Adrien Dieudonne 7d7a73241b [FIX] enterprise settings upgrade widgets 2015-10-01 12:01:10 +02:00
Mack 3f31c378fa [CLA] MackZxh sign the CLA
closes #8783
2015-10-01 11:58:13 +02:00
qdp-odoo 622b96957d [FIX] account: set the input account on vendor bills/refunds when the company is in anglo saxon mode. Fixes #8811 2015-10-01 11:31:23 +02:00
Arthur Maniet abbd635470 [REVERT] changes wrongly added to a0ea75e5f1 2015-10-01 11:30:26 +02:00
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
Goffin Simon cf87d9b5a3 [FIX] website_sale, website_sale_options: product_variant_ids in website_sale.modal
To show the website_sale.modal, the product_variant_ids must be in the DOM
because all the prices are computed with the product_variant_ids.
From commit 0ff26cf

opw:650167
2015-10-01 09:25:51 +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
Odoo Translation Bot 78450f2769 [I18N] Update translation terms from Transifex 2015-10-01 00:32:02 +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
Goffin Simon e9f1ee4d4a [FIX] website: edit mailto link
In function bind_data of website.editor.js, either href is a mailto link
or an url link but not both.

The function convert_links must not convert mailto links.

opw:650443
2015-09-30 21:25:17 +02: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
Thorsten Vocks e0f4f8a710 [CLA] Big Consulting GmbH
Signed through OPW 650573
2015-09-30 18:13:53 +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