Commit Graph
107816 Commits
Author SHA1 Message Date
Christophe Matthieu 8285ff7012 [IMP] website_sale: use env with new context for performance
The products don't need to use with_context because the pricelist and partner is already in the context; this change allow to use the cache.
2016-08-29 15:32:43 +02:00
Christophe Matthieu 166a9d26e3 [IMP] website_sale: create a new compute field to use prefetching and increase performance 2016-08-29 15:31:44 +02:00
Nicolas Martinelli 7d7cb96c72 [FIX] stock: processed_boolean renamed is_done
The field `processed_boolean` has been renamed to `is_done`.

opw-686941
2016-08-29 13:43:10 +02:00
Christophe Simonis 4c9978e758 [FIX] subscription: use an @api.model method for cron
Since the cron engine has been migrated to use the new-api (4ddc323139),
cron methods should be defined as `@api.model`
2016-08-29 12:36:48 +02:00
Odoo Translation Bot 671fa0c7d4 [I18N] Update translation terms from Transifex 2016-08-29 11:48:02 +02:00
Denis Ledoux 311f041f7f [FIX] auth_oauth: pass reset, remove auto redirect when only one provider
Even if there is only one provider,
you could still use the internal login rather than
this oauth provider to sign in,
and therefore you need to remain on the regular
login page if you would like to reset your internal password
2016-08-29 11:46:35 +02:00
Odoo Translation Bot e9bd2aad98 [I18N] Update translation terms from Transifex 2016-08-29 11:14:01 +02:00
Christophe Matthieu 621a7c92b0 [FIX] qweb: wrong result when use the value defined by the t-set
When use t-set the value is replaced by an empty list and can't be use inside the t-set.

Issue: <t t-set="bibi"><t t-raw="bibi"/> other</t> => ["\n "] other
2016-08-29 10:33:45 +02:00
Christophe Matthieu 00f18312bd [FIX] qweb: display a warning when try to use profiling without astor module 2016-08-29 10:33:22 +02:00
Christophe Matthieu 4fd99a9aae [FIX] qweb: wrong profiling result because the calls are not ordered 2016-08-29 10:33:02 +02:00
Raphael Collet 83042027fe Revert "[FIX] website: add missing module dependency base_setup"
This reverts commit d269eb0eb6.
The issue has been fixed in 61f2c90d50.
2016-08-29 09:57:21 +02:00
Raphael Collet d269eb0eb6 [FIX] website: add missing module dependency base_setup 2016-08-29 09:49:23 +02:00
Nicolas Martinelli 6e05eee828 [FIX] sale_service: create only one task
If a SO is confirmed, cancelled, set to draft then confrimed again, 2
tasks are created for the same SO line.

opw-686613
2016-08-29 09:26:21 +02:00
Nicolas Martinelli 2fda62ebd8 [FIX] website, website_{*}: Google Maps API Key
Partial backport of c82b65c855

opw-686510
2016-08-29 08:48:09 +02:00
Nicolas Martinelli 61f2c90d50 [FIX] website: Google Maps API Key
Move the key field to the website config
2016-08-29 08:32:12 +02:00
Fabien Pinckaers c34346934c [IMP] website: minitour to install contact form on contact us page (usability: people think there is no contact form) 2016-08-29 01:30:48 +02:00
qsm-odoo 8729cad821 [FIX] openerp.tests: clear correct localstorage path when using phantomJS v2 2016-08-28 22:43:39 +02:00
qsm-odoo 0bcf978920 [IMP] sale,sale_crm: activate the sale_tour test 2016-08-28 22:43:39 +02:00
qsm-odoo b7791e57e9 [FIX] web_tour: use visible elements in run method
When checking for a DOM element in a run method thanks to the action
helper, visible elements are now considered first, then, if none is
found, we take the first invisible one.
2016-08-28 22:43:39 +02:00
Fabien Pinckaers 621a97dd44 [IMP] website: missing dependency with base_setup, traceback 2016-08-28 16:33:24 +02:00
Fabien Pinckaers bb98f38d95 [IMP] im_livechat: typo Quit --> Leave 2016-08-27 17:04:09 +02:00
Simon Lejeune 1871b33dbf [IMP] web: export: keep compatible fields when switching export type
Previously all the fields were removed when switching export type, even
if they are available in the newly selected export type. This commit
fixes that.
2016-08-26 18:16:35 +02:00
Christophe Simonis f4738e7bb5 [MERGE] forward port branch saas-12 up to 78e9c7f 2016-08-26 18:06:17 +02:00
dut-odoo be3fbd20e2 [FIX] website_portal_sale: fixed archive domain
* Archive isn't working properly because doesn't show elements of
  last day of the month in the wrong month
  Change the domain to take the good days.
2016-08-26 18:04:38 +02:00
Christophe Simonis 78e9c7f567 [FIX] website_event: use new t-options attribute in qweb vie 2016-08-26 17:29:15 +02:00
Christophe Matthieu 755e1f4533 [FIX] web_tips: fix a memory leak
Before this commit, the web_client slows down because callbacks are added
many times without ever being removed.
2016-08-26 17:02:29 +02:00
Christophe Simonis de0d503421 [MERGE] forward port branch saas-11 up to f0c8224 2016-08-26 16:59:45 +02:00
Pierre Masereel c855126069 [FIX] website_portal: remove keep_query on archives
It was impossible to pass from  an archive to another because of
the keep_query in the url generated that set multiple times the
same argument in the url. Removing this allow to have a 'date_begin'
and a 'date_end' corresponding to the selected archive.
2016-08-26 16:32:07 +02:00
Simon Lejeune 4a5c3499e5 [FIX] stock: picking report
The message telling you to click on the "reserve" button was not displayed
when it should.
2016-08-26 16:22:13 +02:00
Jeremy Kersten 49b705e862 [IMP] web: allow to custom button_boolean widget
eg:
    <field name="active" widget="boolean_button"
         options="{
            'terminology': {
                'string_true': 'Published',
                'hover_true': 'Unpublish',
                'string_false': 'Unpublished',
                'hover_false': 'Publish'
             }
          }"
    />
2016-08-26 15:21:09 +02:00
Jeremy Kersten 9a01be1265 [IMP] website_sale: add multi image on product template. 2016-08-26 15:21:09 +02:00
Martin Trigaux f0c8224175 [FIX] update saas-11 translations by merging 9.0 and master
using the --uses-first parameter on msgmerge this time
2016-08-26 15:19:04 +02:00
Simon Lejeune 03aae0d3d5 [FIX] mass_mailing, website_mass_mailing: "group_website_popup_on_exit" group
This group was defined in the mass_mailing module but is only working when
you install website_mass_mailing. What this group does is allowing to insert
a newsletter snippet in the page, thus it has nothing to do in the mass_mailing
module which doesn't depend on website. Also, the snippet itself was already
defined in website_mass_mailing.

Moved all the things to website_mass_mailing.
2016-08-26 15:18:36 +02:00
Christophe Simonis 717a4a51a5 [MERGE] forward port branch saas-10 up to 7a4116c 2016-08-26 14:57:43 +02:00
Simon Lejeune 4733c8727e [FIX] base: ir.ui.view: traceback during create from the backend
If you create an ir.ui.view from the backend, it'll everytime
show a traceback (Keyerror arch).

The field we write to in the form view is `arch_base`. Writing in
`arch_base` will indirectly write on `arch`.

The issue is that the `create` function or ir.ui.view is overriden
in order to compute the `type` column. For this to be done, we parse
the `arch` content and the type is the string of the root tag.

The issue is that we parsed the `arch` field instead of `arch_base`.
However, during the creation of the db, convert.py will write to
the `arch` field when inserting the views in database.

Another thing is that we'll get a traceback if the parse fail for
any reasons (an invalid xml string for example). To workaround
that, we chose to catch the issue and do nothing with it as the
constraint on `ir.ui.view` will detects this issue among others and
will raise a proper ValidationError.

Lastly, the actual code only clears the `arch_fs` field if we write
on `arch`. This patch also clears it when writing on `arch_base`.
2016-08-26 14:51:46 +02:00
Martin Trigaux 84cd253c77 [IMP] remove translations for empty modules 2016-08-26 14:46:23 +02:00
Christophe Simonis 7a4116cd03 [MERGE] forward port branch 9.0 up to 1b15aa5 2016-08-26 14:43:03 +02:00
Christophe Simonis 57972b8754 [FIX] point_of_sale: group pos entries by tax
Forward-port of dc975f3b0b which have
been forgotten during previous commit
2016-08-26 14:37:55 +02:00
Simon Lejeune c55c15aef3 [FIX] packaging: Backport of efe37469 to 8.0
[FIX] packaging: debian: update-python-module is no more

The command is not installed by default. It was available in the
python-support library which we didn't depend on and now this library
is no more in debian jessie/ubuntu xenial.

Backported for #13302
2016-08-26 14:24:30 +02:00
Richard deMeester 1b15aa590b [FIX] account_budget: reset correctly result variable
If a budget line has no analytic account id, the code is intentional
about returning a value of 0 for it.  It is possible, that in some
cases, depending on the order of lines processed, the routine returns
the previous value, as it does not initialise an important
variable on each iteration of the loop.

Closes #13303
2016-08-26 14:19:57 +02:00
qsm-odoo 142119ae3c [MERGE] web,test_new_api: convert x2many tour and move it out of web
- Convert x2many tour to new web_tour.tour system
- Move x2many tour out of web (as web is not duplicated in enterprise
anymore and the new tour system allow to define edition-only steps)
2016-08-26 13:51:03 +02:00
Christophe Matthieu 5828558137 [IMP] test_new_api: convert widget_x2many tour to use web_tour 2016-08-26 13:50:38 +02:00
Christophe Matthieu 4302dda5a4 [IMP] web/test_new_api: move widget_x2many tour into test_new_api 2016-08-26 13:50:38 +02:00
qsm-odoo b9c52e740a [MERGE] web_tour, *: new registration system + run as non superuser
* crm, project, website, website_event, website_blog, website_forum,
website_sale, web_editor

- Allow to properly extend tours with new registration system
- Allow to properly launch tours as non superuser
2016-08-26 13:43:39 +02:00
Christophe Matthieu ec85e6ecd3 [IMP] web_tour: add keydown action helper
(used by web_editor tours)
2016-08-26 13:39:55 +02:00
qsm-odoo 933949085d [FIX] web_tour,web_editor: allow running tour in every context
Previous implementation allowed to run tour as a non-superuser but
this was only working in the backend where the static file tip.xml
is always loaded. In the frontend or in other non-backend context,
this file has to be loaded just before trying to launch the tour as
a non superuser (indeed, previous implementation loaded the file in
the frontend only if the user is a superuser).
2016-08-26 13:39:55 +02:00
qsm-odoo f9a84b5ebc [IMP] web_tour, *: allow to properly extend tours
* crm, project, website, website_event, website_blog, website_forum,
website_sale

Eg: the tour 'shop_buy_product' is extended by the website_sale_options
addons to add a step to close a modal.

The current solution was requiring the module that defines the tour
to extend, then add/remove steps in the "step" key of the tour
definition.
Some of the problems with this method were:
* The "register" method calls the "update" method to immediately
search for tip to place once registered (as register may be called
after the DOM is ready). So extensions of tours were happening after
the tours were started (and the tours were not restarted).
* The addition/removal of steps was happening after they were filtered
according to the "edition" key.

To allow extension, the system is changed as follow:
* The "register" method now only saves the steps and options without
modifying them and does not call the "update" method.
* Once the DOM was ready, the tour service started listening to DOM
mutations and called the "update" tour method. Now, this "update" call
is replaced by a "_register_all" call, on DOM ready and at the end of
the current call stack (which makes sure all modules are loaded). This
"_register_all" method marks the registered tours as ready after having
filtered the steps according to the "edition" key and initialized the
current step to trigger.
* Also, tours can now define a "wait_for" option which allow them to
be marked as ready for run and update after the given deferred. Those
tours can now also be extended without having to wait for the deferred.
PhamtomJS must wait for the "ready" key to be true to run the tour.
2016-08-26 13:39:55 +02:00
Thibault Delavallée 012270b59d [REV] "[FIX] product: avoid search returning two times the same product"
This reverts commit c34972a296.

Please check what you are doing or stop committing in official branches.
2016-08-26 13:11:07 +02:00
Jeremy Kersten 8a6ce978ff [FIX] website_crm_partner_assign: fix traceback when save 'Edit Opportunity'
Add label for usability, didn't understand what was the date field e.g.

Fix bug when no priority, 'priority' field was not submitted -> save function crash
Fix bug textarea, if title_action is False, not textarea, so no field
title_action submitted -> save function crash

After this commit, we can click on save and it should work...

No priority or 0 => 0
No title or "" => ""
2016-08-26 13:05:07 +02:00
Jeremy Kersten 925b480aa9 [FIX] website_blog: link send by mail crash
/mail/view?model=blog.post&res_id=1

crash in 'res_id': self.id

AttributeError: 'blog.post' object has no attribute '_ids'
2016-08-26 13:05:07 +02:00