Commit Graph
94556 Commits
Author SHA1 Message Date
Denis Ledoux 54eff11470 [FIX] event: send event mails for registration without date_open
date_open is not a required field of event.registration.
There is therefore very likely that this field could
not be defined. We should therefore not rely on the fact
it is always defined.

When trying to sent an event mail for an event registration
with a date_open not set (false), the email wasn't sent,
and it prevented the rest of the event mail queue to be
sent as well.

opw-632549
2015-04-10 17:31:47 +02:00
Jeremy Kersten efbe6ae880 [IMP] website: Split loading of asset to load css before js
"An external CSS files were included after an external JavaScript file in the document head.
To ensure CSS files are downloaded in parallel, always include external CSS before external JavaScript."
-- Chrome analyzer --
2015-04-10 11:43:46 +02:00
Jeremy Kersten 67c40a50fa [FIX] assets : clean typo and useless script 2015-04-10 10:55:58 +02:00
Christophe Matthieu 368ea9d614 [FIX] website: summernote: don't need to add a white space when delete a selection if the string is not fully erase 2015-04-09 16:09:07 +02:00
Christophe Matthieu c35f8a7b48 [FIX] summernote: when the editor create a link, we need to use deleteContents with the flag to_write as true to insert the link at the same place. 2015-04-09 16:07:12 +02:00
Christophe Matthieu 3d8ac2e3df [FIX] website: snippet editor: if a snippet is dropped near a text node with a previous click, need to get the parent node to trigger the history 2015-04-09 15:14:20 +02:00
Denis Ledoux 2ec254549c [FIX] website_event_sale: there is not self.pool in controllers
There is no such thing. request.registry must be used instead
of self.pool.

opw-632408
2015-04-08 16:40:32 +02:00
Jeremy Kersten 4aa2e52b3d [FIX] website: allow to rename a website page.
Code from delete_page has been spliited (functions, templates, ...)
to be re-usable by rename_page

Change default input type from website.prompt.
Old default value 'text' had no sense, there are no tag <text>.
2015-04-08 13:40:11 +02:00
Aaron Bohy d1056939ad [FIX] Web: pager for ListView in One2Many fields
The pager was not displayed in One2Many List views. This fix applies the
same behavior as in One2Many Kanban views, which is probably not the
best way to do it, but which works fine.

The issue was caused by 2 things:
   - The One2Many.FormView template removes the condition around  the
     buttons/pager divs of the FormView template. However, it was using a
     selector that does not seem to be used anymore. We thus removed it
     and the buttons/pager divs are now in the rendered One2Many List View
   - The rendered pager was appended to this.options.$pager whereas it
     should be appended to the corresponding div in its own template.

This commit should not be forwardported
2015-04-08 10:48:50 +02:00
Denis Ledoux 2661a6c0cd [REVERT] e089f296d2
This revision completely breaks the reports
having long content in cells

To reproduce, just create a sale order with a long
line description, and print the sale.order report
before and after this revision, then see the difference.

opw-632317
2015-04-07 17:23:50 +02:00
Christophe Matthieu c2c093d6b8 [FIX] website.editor: remove javascript exception when the user close the modal after add a question in website_forum 2015-04-07 16:28:19 +02:00
Frédéric van der Essen 10f5001c25 [IMP] pos_restaurant: allow to print bill with web printing 2015-04-03 18:12:41 +02:00
Frédéric van der Essen 6f451d99ad [IMP] point_of_sale: receipt printing improvements:
- The receipt printing screen is shown both with the web and posbox
   printing
 - Both method can now reprint receipt
 - The Change is shown on the receipt screen to help the cashier give
   back the change after the cashbox is open.
2015-04-03 18:12:40 +02:00
Samus CTO 752a07c503 [FIX] res.partner.find_or_create() should match using =like
Otherwise john@connor.com may match sarah.john@connor.com
2015-04-03 17:24:49 +02:00
Josse Colpaert 421a5b3ce5 [IMP] stock: two different reports for picking with move lines and picking with pack operations instead of one
It is confusing to show once pack operations and once move lines without the user being aware.
As sometimes the pack operations don't get updated the report would not show all the products available for example.
2015-04-03 13:52:20 +02:00
Jeremy Kersten 018450752d [FIX] utm* - Allow to customize the cookies name 2015-04-02 22:50:41 +02:00
Samus CTO 55a569e970 [FIX] prevent exception to be raised during exception handling
Prevent this kind of exception to happen:

  File "/odoo_src/saas-6/openerp/service/wsgi_server.py", line 123, in xmlrpc_handle_exception_string
    fault = xmlrpclib.Fault('warning -- ' + e.name + '\n\n' + e.value, '')
TypeError: cannot concatenate 'str' and 'NoneType' objects
2015-04-02 14:28:36 +02:00
Thibault Delavallée f4f9ab5062 [FIX][IMP] website_event_sale: if the user buys only free tickets
redirect directly to the website_event confirmation view and confirm
the sale order instead of going to the checkout process.
2015-04-02 11:56:58 +02:00
Thibault Delavallée 49f7cc231c [FIX][IMP] website_event, website_event_sale: register process
- email is now required when buying tickets, to avois having subscription
that we cannot email with event information
- 'not yet started' message should be linked to the event state, not to the
fact that the event has tickets or not. A confirmed event without configured
tickets is just displayed on the website, but not set as unconfigured.
2015-04-02 11:29:43 +02:00
Christophe Simonis 16f23dd43a [MERGE] forward port of branch 8.0 up to 8ad1105 2015-04-01 19:31:22 +02:00
Christophe Simonis 8ad11055bb [MERGE] forward port of branch saas-3 up to 12f600c 2015-04-01 19:13:25 +02:00
Christophe Simonis 12f600cec9 [MERGE] forward port of branch 7.0 up to 35077af 2015-04-01 19:07:59 +02:00
Rucha Dave cb3034bdb0 [FIX] stock: prevent deleting lot linked to existing quant
Fixes #4458
2015-04-01 18:01:07 +02:00
Martin 46ad2ac70f [IMP] point_of_sale : display change amount after print if not 0 2015-04-01 16:55:23 +02:00
Nicolas Lempereur 35077af57d [FIX] opportunity: salesperson not in followers
Previously, when updating subscribers of a mail.thread, the default_{key}
arguments could override a {key} in the values.

e.g: for an new opportunity, the salesperson was overrided by the default user_id

This fix gives the priority to the values over the default_ in context.

opw-631741
2015-04-01 16:37:01 +02:00
Rucha Dave 2596f39eef [FIX] crm: meeting time in user timezone
With UTC in <time> element in bonus.
opw 621772
2015-04-01 15:53:09 +02:00
Denis Ledoux 433feb5a38 [FIX] account: partner ledger with currency.
In the partner ledger wizard, you can check
a boolean to display the amount within the
currency the amount has been invoiced.

This feature was simply no more working
in Odoo 8.0.

opw-630268
2015-04-01 15:36:40 +02:00
Nicolas Lempereur 32bc9fcb3a [FIX] customer: sale order number with child
The number of sale order on a partner form view only counted the given customer
and not the ones of eventuals child_ids. Hence when clicking on the widget, the
result sale order tree view (which take account of child_ids sale order) is
inconsistent.

This fix adds the sale order of a child company to the sale_order_count.

opw-630249
2015-04-01 15:29:21 +02:00
Martin 974c340993 Merge branch 'saas-6-pos-display-change-and-full-note-mdo' into saas-6 2015-04-01 15:28:50 +02:00
Martin 7862013245 [IMP] point_of_sale : display full note on receipt and display change after print 2015-04-01 15:26:34 +02:00
Christophe Simonis f18b46fcde [FIX] base_import: ignore stripped empty lines
Better fix for commit dab37df04d
2015-04-01 13:22:11 +02:00
Christophe Matthieu 734060f5b1 [FIX] website: can apply color picker to multi-selected areas
Port of commit 4912176a1b9ea1c59babb4d519d03692ad9a6ab2 from website_less
2015-04-01 11:23:02 +02:00
Christophe Matthieu 5c6b175b64 [FIX] website: fixed t-oe cleaning
Port of commit 86c2939dd71b7de711f79f2c2dbb486f86c2e760 from website_less
2015-04-01 11:23:02 +02:00
David Monjoie 286308155c [IMP] website: added routes to resize image attachments
You can already resize the image from the field of a model, why not a field from an xmlid object or an xmlid object itself ?
2015-04-01 11:23:02 +02:00
David Monjoie 67ff2eb92b [FIX] website: fixed element should have a position
Otherwise, it is fixed according to the other elements, here, the wrapwrap element.
So if we add a margin to wrapwrap, the margin is also added to the navbar, which
means it is not really fixed on the top.
This fix avoids this issue so the navbar is always fixed at the top of the page.
2015-04-01 11:23:02 +02:00
Christophe Matthieu 0af0738841 [FIX] website: selection of active background option
Port of commit 91d6af1dcd774e16f72375012288f5fab7574a4d from website_less
2015-04-01 11:23:01 +02:00
David Monjoie 0cda9a7401 [FIX] website: add a scrollbar for customize modal if needed
Port of commit 9d511913f8de469e6980f4fb6b2923245e2e6f48 from website_less
2015-04-01 11:23:01 +02:00
David Monjoie 54e8d225fc [FIX] website: render data-oe-call when website is ready
In master, js files are loaded at the top of the page so we need to call this function only when the website is ready
2015-04-01 11:23:01 +02:00
Christophe Matthieu a4885bf454 [FIX] website: fixed multi_render of data-oe-call
Port of commit 37fa0a416bd323c82d624482e3a3c778bdd54d8e from website_less
2015-04-01 11:23:01 +02:00
David Monjoie 60e5b041d4 [IMP] website: activate bootstrap less by default
It will be activated by default in master anyway and we already need lessc installed on the server in saas-6 because of the planner.
2015-04-01 11:23:01 +02:00
David Monjoie 5a6d2f6e23 [FIX] website: default options are possible to disable by xpath
If we don't do that, the default options get mixed up with theme modules (including our own theme_bootswatch).
Even worse, when installing any theme (including theme_bootswatch), the menu to change these options is replaced by the new theme one, so you cannot disable the broken options.
This trick allows theme modules to disable the default options so they don't conflict, while restoring the user choices when uninstalling the theme.
2015-04-01 11:23:01 +02:00
David Monjoie 0a0caa7b27 [FIX] theme_bootswatch: use proper namespace for themes
Previously, uninstalling theme_bootswatch would not disable the chosen theme, and the user would not have any menu to disable it after that
2015-04-01 11:23:01 +02:00
Denis Ledoux fe31451899 [FIX] hr_timesheet_sheet: timesheet report totals
This rev. is related to rev. 89093a2

If several account analytic lines where defined for a same date
within a same sheet, the report totals were multiplied by
the number of occurences of lines of the same day.

Before the above rev., only `Diff`, `Total`, `Timesheet`, were wrong
After, other totals were wrong as well.

The point of the above rev. was to gain a real performance improvment
when there was a lot of timesheets / analytic lines entered
in database. This rev. keeps this performance improvment.

opw-629857
2015-04-01 11:07:44 +02:00
Cedric Snauwaert 80d3adc1f3 [FIX] web: when converting a node back to xml, correctly escape node content 2015-04-01 11:02:31 +02:00
Denis Ledoux 90f998da0b [FIX] *: alias help message
When going to logged calls through opportunities,
and no logged calls were listed,
the mail alias of opportunities was displayed
within the placeholder help message,
wrongly, as we were in the logged calls list.

This was due to a context propagation, due
to have defined empty_list_help_* keys within
window actions. It was the case in several
modules.

Besides, we do not find the usefulness of the
custom_context passed to the get_empty_list_help
method: indeed, none of the methods get_empty_list_help
overriden in modules need any other keys than
'default_type', which do not require an evaluated
context.

We therefore remove the whole code regarding this
custom_context, and we therefore get rid of this
useless context evaluation thing within one of
the most accessed method of the web client.

opw-630673
2015-04-01 10:52:37 +02:00
Jeremy Kersten dab37df04d [FIX] base_import: strip line while importing
Empty line was already deleted but if you had a line with just a tab (\t)
the line was imported with an exception "list index out of range"
2015-04-01 10:13:02 +02:00
Thibault Delavallée 20eb86a5dd [FIX] crm, project, project_issue, hr_recruitment: fixed override of method not taking the
same parameters as the base method. An argument was missing.
2015-04-01 10:11:30 +02:00
Thibault Delavallée 09992333f3 [FIX] website_event: call method as current user, not superuser
because this makes no sense.
2015-04-01 10:11:30 +02:00
Rifakat Haradwala 7da3854597 [FIX] mrp: reload form when start work orders
Actions button on the work order lines can change the state of the manufacturing
order. As for the product lines, reload the form after actions.
opw 625424
2015-04-01 09:57:19 +02:00
Goffin Simon bd86392f1a [FIX] sale_layout: sale order lines not grouped by section
The sale order lines must be grouped by section when they are added
in a sale order.

opw:630557
2015-04-01 09:41:04 +02:00