Commit Graph
103218 Commits
Author SHA1 Message Date
Alexandre Fayolle 0b74fbed74 [FIX] ir.ui.view: pass context as a kwarg
otherwise when a method such as fields_get is overridden
using the new API, self.env.context is an empty directory,
and the translations cannot be performed correctly

Closes #7911
2015-08-07 02:52:19 +02:00
Antony Lesuisse e248886e5e [MERGE] split website_portal and generic chatter template
- website_portal define a basic /my/home controller
- website_portal_sale extend it to display orders
- website_mail add a generic template to display chatter and post messages on pages
2015-08-07 02:14:35 +02:00
Damien Bouvy 0d3b7d672f [IMP] website_sale: use website_mail generic chatter 2015-08-07 01:47:46 +02:00
Damien Bouvy 4aa3658adb [IMP] website_quote: use website_mail generic chatter 2015-08-07 01:47:06 +02:00
Damien Bouvy ad081b0da1 [IMP] website_mail: generic chatter implementation
A new generic chatter template is available in website_mail
This template allows access rights escalation when some kind of token or uuid
is available on the model or if you use the object_shasign function in the
main controller of website_maill to generate a cryptographic signature to allow
commenting on any object.

To use this chatter, you need to make a t-call to website_maill.thread in your
template after having set the following variables:
- chatter_object: the browserecord of the mail_thread object (mandatory)
- token: if you use a token system  (optional)
- token_field: name of the field that stores the token on your object  (optional)
- sha_in: if you use a shasign to allow public comment  (optional)
- nosubscribe: set False if you want the partner to be set as follower of the object  (optional)
- message_type, subtype: see message_post in mail_thread.py
2015-08-07 01:47:06 +02:00
Damien Bouvy 5f48cb992e [REF] website_portal => website_portal, website_portal_sale
Split of website_portal into a generic (and mostly empty) website_portal and a sales-related website_portal_sale (sales order, quotes, invoices)
This allows other modules to extend website_portal without depending on sales
2015-08-07 01:47:06 +02:00
Antony Lesuisse 1e90257e58 [IMP] tags: add unique constraints
- remove tags translatability
- add unique constraints
- res.partner.category is kept until we remove the parent_store test.
- hr remove tag parenthood
- hr remove unsed views and menu
2015-08-07 00:51:14 +02:00
Antony Lesuisse 4cfa5c1a68 [FIX] calendar: remove useless code for virtual ids
- remove rml report service virtual id support
- remove useless ir.model wrapper ir.model has never used virtuel ids even in
  2009
2015-08-06 23:37:41 +02:00
Christophe Simonis 6e59ea5db9 [FIX] tests: explain why we ignore phatomjs return code 2015-08-06 21:27:03 +02:00
Christophe Simonis 12b7e0e875 [IMP] http: name of temp files in session store
When storing files send in POST in session_store, store them with a
name based on the name of the session file itself (ease matching sessions
and files for debugging purpose)
2015-08-06 21:24:40 +02:00
Olivier Dony 77868ec4f9 [FIX] base, auth_openid: wrong implementation of API by auth_openid
Authentication modules are supposed to override res_users.check_credentials()
in order to plug in their own mechanism, without actually modifying the
behavior of res_users.check(), res_users.authenticate() or
res_users._login().

auth_openid was incorrectly overriding check() instead of
check_credentials(), and unnecessarily accessing private
attributes of res_users. Fixing the implementation of auth_openid
to follow the API means we can completely make those attributes
private.
2015-08-06 19:21:12 +02:00
Olivier Dony 54e06907c0 [FIX] base, auth_openid: wrong implementation of API by auth_openid
Authentication modules are supposed to override res_users.check_credentials()
in order to plug in their own mechanism, without actually modifying the
behavior of res_users.check(), res_users.authenticate() or
res_users._login().

auth_openid was incorrectly overriding check() instead of
check_credentials(), and unnecessarily accessing private
attributes of res_users. Fixing the implementation of auth_openid
to follow the API means we can completely make those attributes
private.
2015-08-06 19:19:17 +02:00
Christophe Simonis 47f6b1bb32 [MERGE] forward port of branch saas-6 up to 081f21e 2015-08-06 17:44:09 +02:00
Christophe Simonis 081f21eeec [MERGE] forward port of branch 8.0 up to d8d9c72 2015-08-06 17:24:33 +02:00
Jeremy Kersten 1478a5958d [FIX] website: fix color switcher
Typo nodes vs node
Allow to switch color from text after that user click on img and come back
 on text field
2015-08-06 17:21:29 +02:00
Christophe Simonis d8d9c7277e [FIX] phantomjs test: phantom variable is undefined inside page. 2015-08-06 17:20:37 +02:00
Christophe Simonis 95ac2cfd10 [MERGE] forward port of branch saas-6 up to be58335 2015-08-06 16:09:19 +02:00
Jitendra Prajapati f62cfd2980 [FIX] survey: token was lost when user had to log in first 2015-08-06 15:25:38 +02:00
Josse Colpaert fa1842cb1d [FIX] stock: add procurement group for extra moves in picking
When pack operations generate extra moves, they should
take the same procurement group as those of the picking.

That way, when invoicing, they will be put on the same
invoice when there is a different invoice address on the
sale order.
2015-08-06 14:55:44 +02:00
Nicolas Lempereur be58335f7f [FIX] web: notebook first page and invisible
When two first notebook pages are invisible, the shown page will be the
second invisible one.

With this fix, all oe_form_invisible classes are added in the init stage
of the NotebookInvisibilityChanger object.

opw-646740

note: good for saas-6 but not next versions, see opw-639595
2015-08-06 14:17:22 +02:00
Jainik Patel 37351983ed [IMP] calendar: usability improvements 2015-08-06 13:58:23 +02:00
Goffin Simon 5831aca505 [FIX] account_followup: contact with type = "invoice"
In "Payment Follow-up" when clicking on "Send Overdue Email"
if contact with type = "invoice"  and an email exists in the childs then
the email will be send to this contact else the normal behavior
is kept. When the overvue email is sent to a contact who is not the commercial
partner, a message is written in the chatter of the commercial partner to inform him
that the email has been sent to the "invoice" contact.

Closes #7870
opw:646149, 646575
2015-08-06 13:04:49 +02:00
Arthur Maniet a54975fc00 [FIX] account: wrong field name used in 'checks to print' action domain 2015-08-06 12:39:17 +02:00
Martin Trigaux ec47601045 [FIX] website_event: demo data description
The title of the events states 5 days training while the full description
explains the plan of a 3 days training on Odoo

Courtesy of Mathias Neef
2015-08-06 12:27:50 +02:00
Martin Trigaux 4532ca6196 [IMP] account: help message
Prof-forma status message was not very clear.
Courtesy of Charline Louis
2015-08-06 12:19:54 +02:00
Christophe Simonis 3d26eb02ab [MERGE] forward port of branch 8.0 up to d3e9bde 2015-08-06 11:54:32 +02:00
Martin Geubelle 00fa979264 [IMP] hr: improve hr_employee kanban view
Mainly fixes for the follow button and move css to less
2015-08-06 11:40:07 +02:00
Martin Geubelle eb2f2071df [IMP] hr_recruitment: improve kanban view
Tags were in the middle of the kanban record and now placed at the top to fill the design
2015-08-06 11:40:07 +02:00
Martin Geubelle 49aa70ebe8 [IMP] project_issue: improve kanban view
Make Issues kanban view looks more like Tasks kanban view, with tags at the top and priority field (stars) next to the message icon, on the left
2015-08-06 11:40:06 +02:00
Christophe Simonis d3e9bde738 [MERGE] forward port of branch saas-3 up to 2ab698b 2015-08-06 11:02:24 +02:00
Christophe Simonis 2ab698b4b1 [MERGE] forward port of branch 7.0 up to d2d81ca 2015-08-06 11:01:47 +02:00
Richard Mathot dca43ecd4d [FIX] delivery: store estimated delivery price 2015-08-06 10:35:17 +02:00
Valerie Pirenne 22a3c08af7 [IMP] web_tip: tip display using breathing point 2015-08-06 10:14:27 +02:00
Aaron Bohy 1d8cbf8a19 [IMP] account_asset: buttonwidget: invisible case
Instead of adding the classname oe_form_invisible to hide it, simply don't render
the button if it shouldn't be displayed.
2015-08-06 10:14:27 +02:00
Aaron Bohy 441449673a [IMP] web: classnames update for new design compatibility
The DOM structure and elements's classnames diverge in community and enterprise
editions. Tips must work perfectly with both editions, obviously.

This rev. updates some classnames in the community edition for the tips's selectors
to match in both editions.

The following classnames have been renamed/introduced:
	- oe_form_buttons_view renamed to o_form_buttons_view
	- oe_form_buttons_edit renamed to o_form_buttons_edit
	- oe_form_invisible renamed to o_form_invisible
	- oe_list now also has classname o_list_view
	- header tag in form views now has classname o_form_statusbar_buttons

Other changes like these might be required later if other tips are introduced...
2015-08-06 10:14:27 +02:00
Thibault Delavallée f6a246045f [FIX] mail: mail_followers:
- fix indentation
- fix a method not returning its deferred for the call
2015-08-06 10:06:18 +02:00
Thibault Delavallée 9f844c570f [REM] mail, calendar: removed dead code (unused method and its
override, unused variables; duplicated code; commented code)
2015-08-06 10:06:18 +02:00
Thibault Delavallée 11908c367e [FIX] hr_equipment: fix the write
- fix multiple write causing a loop and unnecessary condition check.
just reset the kanban stage when changing the stage, like in tasks
or issues. Rely on the call to super() to perform the write itself.
- fix wrong field use and cleaning code about auto subscription
2015-08-06 10:06:18 +02:00
Denis Ledoux 5cd1235b06 [FIX] purchase: Purchase invoices stat button group on partner form
The group applied on the purchase invoices stat button
was "Accountant", while "Invoicing & payments" is enough.

That way, the customer and purchase invoices stat buttons
have the same group applied, which makes sense.

opw-646748
2015-08-06 10:05:01 +02:00
Richard Mathot 4b3f16e0d1 [FIX] website_sale_delivery: do not publish carriers by default
But enable a few ones as demo data, so that e-commerce testing tours can
use them.
2015-08-06 10:04:08 +02:00
Josse Colpaert d789ac7793 [FIX] stock: No rereserve visible if pack operations have been generated already fixes #7725 2015-08-06 09:48:18 +02:00
Olivier Dony d2d81ca9d8 [FIX] crm_partner_assign: search_geo_partner() should not pick deactivated partners 2015-08-06 09:20:24 +02:00
Richard Mathot a43c0c1108 [FIX] lunch: some users run systems localized in other languages than English
%A returns the localized name of the weekday, so we prefer use the
%numeric code.
2015-08-06 09:05:36 +02:00
Antony Lesuisse 4a3a3e5f3a [FIX] payment: Move website_published field to website_payment
We have to keep website_published defined in payemnt so that demo data publish
only payment_transfer for the website_sale tour.
2015-08-06 00:14:24 +02:00
Yannick Tivisse ed4137495c [FIX] website: website_publish_button toggle when no url can be found 2015-08-05 21:40:57 +02:00
Yannick Tivisse eed69de936 [FIX] website_sale: add wrapper for call_kw for inherits on product.product 2015-08-05 21:21:53 +02:00
Yannick Tivisse 2cbb244f73 [FIX] website_sale_delivery: duplicate website_published 2015-08-05 21:20:51 +02:00
Goffin Simon 4f6eebf698 [FIX] account: tax sign
Division by 0 introduced by c525c6712a
2015-08-05 19:03:15 +02:00
Richard Mathot 66e8cddf64 [FIX] website_sale_delivery: mute crash when an external shipping provider is not configured properly 2015-08-05 16:44:08 +02:00
Richard Mathot 271ab79666 [FIX] delivery: do not always recompute estimated shipping price
When a SO is not in draft AND uses an external shipping provider, it
does not make sens to re-poll the provider for the price (and this is
quite slow)
2015-08-05 16:43:15 +02:00