Commit Graph
106440 Commits
Author SHA1 Message Date
qsm-odoo 404ed0f788 [FIX] web_editor: do not propagate event communication between
background and color snippet options

The background and color snippet options communicate so that if a
color is set while a background is already set, the backgrond is
removed. The problem is that the event propagation was not stop
so if a snippet had a background and one of its child set a color,
the background was removed.
2016-08-31 15:28:15 +02:00
Jeremy Kersten 80d65ab350 [IMP] website_payment: show payment method in footer
Xpath has been altered and logos displayed in right column or portal.

The pupose of these logos is to know when you arrive on the website (ecommerce)
 with which payment method you can paid.
2016-08-31 15:28:10 +02:00
Denis Vermylen (dve) 3d53a74052 [FIX] theme_*: restore category to theme
category was changed to "Website" so it'd appear under the website
category in the store, but it needs to be "Theme" otherwise it doesn't
appear in the "Choose your theme" menu after installing website.
2016-08-31 13:32:11 +02:00
Jeremy Kersten 5c0de8f00a [FIX] event: fix get_range_str and add tests
Fix format_tz call
Fix week and month computation
Add test wich tests change month and year !
2016-08-31 13:23:14 +02:00
Jeremy Kersten 7bcf255355 [FIX] payment_stripe: execute test on nightly only
Avoid runbot red with:
  ConnectionError: HTTPSConnectionPool(host=api.stripe.com, port=443):
  Max retries exceeded
2016-08-31 13:23:14 +02:00
Jeremy Kersten 7346eeb590 [REF] website_sale: tokenization - improve desgin
Update design for registered cards

@courtesy of @fhe-odoo
2016-08-31 13:23:14 +02:00
Nicolas Lempereur 3d3f9ed980 [FIX] tools: fix guess_mimetype coming from libmagic
Since 5a9e1af64 our guess_mimetype accepted a `default` named argument.

This commit fix the use of library used instead of our implementation, so
we don't get an error from an unexpected argument when having python-magic
installed on a given server.

Since python-magic functions always return a default mimetype:

- empty content: application/x-empty
- text content: text/plain
- binary content: application/octet-stream

the guess_mimetype default argument is not used with python-magic
implementations.

closes #13343
opw-687354
2016-08-31 13:11:45 +02:00
Raphael Collet e481cfce72 [FIX] base: make constraint on ir.model.fields.relation_table more robust
The constraint checks the table name with a regexp, and the latter crashes when
the field has value `False`.
2016-08-31 11:58:56 +02:00
Nicolas Martinelli 372395c745 [FIX] stock: owner of quants
When an owner is defined on a quant, the current behavior is to to allow
only the owner to use it. This is restrictive for internal transfers:
when a quant is owned by Partner A, only a picking with owner Partner A
can select it.

The fix is to make things a bit less restrictive: when a quant is owned
by Partner A, a picking without owner or with Partner A as owner can
select it.

opw-687207
2016-08-31 11:51:49 +02:00
Yannick Tivisse a10fe123e7 [FIX] project: ir.model.access rules
2 rules were defined with the same id thus only one was loaded in
database, resulting in missing read access on model
'project.task.history.cumulative'.

This patch fixes the ids of these rules and clarify their names
2016-08-31 11:22:32 +02:00
Damien Bouvy ccc9dae47e [FIX] account: return correct values for default call
In the new API, default calls are supposed to return recordset
(even empty recordset), not bool values for relationnal fields.

If the table for this model was already present and if no l10n_x
was installed, no default value could be computed correctly for
existing entries. This caused a crash on install.

opw-683470
2016-08-31 11:13:03 +02:00
Nicolas Martinelli 7b93e1dc7b [FIX] l10n_be_intrastat: skip EXTXVAL=0
An entry with EXTXVAL=0 should not be included in the Intrastat
declaration, otherwise it is rejected.

opw-686201
2016-08-31 11:02:48 +02:00
Jeremy Kersten b717f3c4be [FIX] event - fix delta date compute
Before this commit 1st September is not Tomorrow of 31 August
2016-08-31 10:36:10 +02:00
Pierre Masereel 78f4cf0e3c [FIX] project: history cumulative bad compute inherit
When we were trying to delete a stage in project where there were
some tasks, an error was raised because of the 'project.task.history.cumulative'
records that inherit 'project.task.history' which have a compute method on
on end_date.
To fix this, we set the 'compute' attribute to 'None' and the readonly
'attribute' to 'True'.
2016-08-31 10:19:52 +02:00
Simon Lejeune 402ac6b91c [FIX] project_issue: issue: correctly set stage_id during onchange project_id
If you create an issue when `default_project_id` is set, the stage_id
is initialized at the lowest sequence of the stages of the project,
which is normal. However, when you change the project of the task,
the stage_id was not correctly reset. If you save at this time, you
add the selected stage in the project.

Also, the stage_id was not correctly cleared if you remove the project.
2016-08-30 18:15:34 +02:00
Simon Lejeune 48f370c6ce [FIX] project_issue: default stage on issue
If you create an issue directly, the key `default_project_id` is not set
in the context. This key is used to compute the default stage of the
created issue. It is done by creating a domain. Unfortunately, the
domain is always filled with `[('fold', '=', False)]` and thus it
always returns a result that makes no sense when `default_project_id`
is not set. Worse, if you actually create the issue, the found stage
that was not in your project is now a part of it.

The fix is to return no result if the `default_project_id` is not set
in the context.
2016-08-30 18:15:34 +02:00
Simon Lejeune 3041efb655 [FIX] project: task: correctly set stage_id during onchange project_id
If you create a task when `default_project_id` is set, the stage_id
is initialized at the lowest sequence of the stages of the project,
which is normal. However, when you change the project of the task,
the stage_id was not correctly reset. If you save at this time, you
add the selected stage in the project.

Also, the stage_id was not correctly cleared if you remove the project.
2016-08-30 18:15:33 +02:00
Jeremy Kersten 890cb5dba1 [FIX] website_sale: multi-image, fix group assignation in res_config
Old code introduced an error, because every body was public user and
so the menu e.g. login appears even when you was logged in.

Courtesy of @kangol
2016-08-30 17:50:44 +02:00
Jeremy Kersten 0152f3c157 [IMP] website_sale: imprrove / refactor some templates
Make bill_to generic, and callable
Use Json synthax and not Dict synthax (even if it was compatible) fot t-field-option
Replace deprecated t-field-options by t-options
2016-08-30 17:50:44 +02:00
Jeremy Kersten 6f03ab45a8 [IMP] website_sale: allow to use payment.token to pay on eCommerce
This commit add as (sub) payment method all (owns) tokens from this acquirer.

Tested with Ogone with success
2016-08-30 17:50:44 +02:00
jpr-odoo 40c0d542d4 [FIX] website: sign_up page resize
The less code that was resizing the login and sign up form container
in v9 was moved to the login form, but not to the sign up form.
Adding the sign up form class to the less code fixed the size.

It has been done in rev https://github.com/odoo/odoo/commit/5b65befcd889139152c590490fb8965c9f4b5279
2016-08-30 17:27:49 +02:00
Simon Lejeune 742c81e1ff [FIX] project: default order of task type
Before this patch, the order of a project's task type (its columns)
were defined by a sequence. However, when you quick-create columns,
they have the same sequence value: 1 by default. This results in
weird behavior when you edit a task type (for example, by changing its
tooltips), the column is moved at the end.

By ordering by sequence and id, the behavior is more intuitive
as the colum doesn't move when you edit it.
2016-08-30 17:18:59 +02:00
Fabien Pinckaers 8999f4c04d [IMP] hr_recruitment: better stats on pivot view 2016-08-30 17:06:22 +02:00
Nicolas Lempereur b28cd9034e [FIX] stock: typo report picking operations
Number of columns may have not been equal to the number of columns
headers which would cause an column mismatching since saas-11' 977d1ac.

opw-687147
2016-08-30 16:15:32 +02:00
Jignesh Rathod 1bdca992c1 [IMP] MRP : Improve bom cost report.
Use HTML version instead
2016-08-30 16:00:08 +02:00
Thibault Delavallée 02c748be59 [IMP] tools: sanitizer: add and clean sanitize options
Now having

 * sanitize: run the sanitizer to clean the html (removing javascripts,
   unwanted tags, ...)
 * sanitize_tags: only a subset of tags is allowed in html content.
   Unwelcomed tags are remove dand their content stripped.
 * sanitize_attributes: only a subset of attributes is allowed.
 * sanitize_style: only a subset of style attributes is allowed. Style
   attributes are parsed to keep only a white list.
 * strip_style: all style is removed. It bypasses sanitize_style as there
   is no need to sanitize something that is removed.
 * strip_classes: remove class attributes

Fields parameters have also been updated to match the sanitize options. Html
fields by default are sanitized with sanitize_tags activated but without any
further options. All addons have been updated to match the new options
according to their previous behavior.
2016-08-30 15:54:56 +02:00
Thibault Delavallée 97425bfe3f [REF] various: make mako mail templates more xml compliant
As we will soon improve the sanitizer we will be able to sanitize email
templates body. However this implies some cleaning in the templates to
be sure mako is not considered as invalid html / xml and therefore removed
from the template body.
2016-08-30 15:54:55 +02:00
Simon Lejeune 7d3f9ac9b9 [FIX] project: default stage on task
If you create a task directly, the key `default_project_id` is not set
in the context. This key is used to compute the default stage of the
created task. It is done by creating a domain. Unfortunately, the
domain is always filled with `[('fold', '=', False)]` and thus it
always returns a result that makes no sense when `default_project_id`
is not set. Worse, if you actually create the task, the found stage
that was not in your project is now a part of it.

The fix is to return no result if the `default_project_id` is not set
in the context.
2016-08-30 15:45:15 +02:00
Josse Colpaert 104ef28a8d [IMP] mrp: unbuild should only show lot when product does lot/serial number tracking 2016-08-30 14:16:09 +02:00
Josse Colpaert 5f39f7ca89 [IMP] mrp: scrap's normal form view should also have production_id and workorder_id fields 2016-08-30 14:16:04 +02:00
Josse Colpaert d7595a674e [IMP] mrp: use decoration-danger for not available raw materials even if it gives the same color as when you consume more than foreseen 2016-08-30 13:59:53 +02:00
Josse Colpaert 11c7a87044 [IMP] mrp: products in boms, ... should be stockable by default 2016-08-30 13:59:53 +02:00
Josse Colpaert 17be15fd61 [IMP] mrp: routing of phantom boms in bom
When the routing of the phantom bom is the same as the parent BoM,
the phantom BoM should not recreate the work orders, but use the same
work orders as the parent BoM.  That way, you can create one master
routing and the "consumed in operation" of the phantom bom can be used
linking to the master routing.

If the phantom bom has no routing or the same, it can also use
the "consumed in operation" of his parent bom line if none is defined.
2016-08-30 13:59:53 +02:00
Josse Colpaert d985fa796e [IMP] mrp: Put back field 'priority' to avoid migration problems 2016-08-30 13:59:53 +02:00
Josse Colpaert cc719412d9 [IMP] attachment: binary does not need save as button in widget 2016-08-30 13:59:53 +02:00
qsm-odoo b4a159d261 [IMP] web, website(_*): use web.layout for every web page
The web modules defines a "layout" template which is only used by the
login default page. Now the backend template "web.webclient_bootstrap"
and the frontend template "website.layout" both use the "web.layout"
template as base.

Some parameters can be passed to customize the default "web.layout"
template:
- "head": content will be placed at the end of the <head> tag of the
page
- "title": to set the title of the page (the <title> tag should not be
placed "by hand")
- "x_icon": the url for the page icon
- "html_data": dictionnary whose key-value pairs will be placed as
attribute-value for the <html> tag
- "body_classname": the classname to set on the <body> tag

Note: xpath expression on the website.layout template can now only find
the #wrapwrap element and its children. An expression "//body" will not
have any result. If something has to be added in the body element but
not in the #wrapwrap element, simply change the xpath
<xpath expr="//body" position="inside"> with
<xpath expr="//div[@​id='wrapwrap']" position="after">
2016-08-30 13:57:32 +02:00
qsm-odoo a7930e51ec [MERGE] *: adapt tours to new web_tour.tour system 2016-08-30 13:54:56 +02:00
Christophe Matthieu c41e85ae12 [IMP] website_sale_options: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu dff1b6cc03 [IMP] website_sale: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu 48fccec1f2 [IMP] website_hr_recruitment: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu d39fbea9ad [IMP] website_forum: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu 3fe48f7f49 [IMP] website_event_sale: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu 21e26f6009 [IMP] website_crm: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu ea1c061e11 [IMP] website: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu 0f8f68dfa7 [IMP] web_editor: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu 4ba425583e [IMP] survey: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu 427bc242fb [IMP] point_of_sale: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Yannick Tivisse 6c4163967c [IMP] sale: Improve the onboarding and clean the views 2016-08-30 13:23:10 +02:00
Yannick Tivisse 61c2867e39 [IMP] sale: reorganise res config settings 2016-08-30 13:20:23 +02:00
Yannick Tivisse 58eb07782d [IMP] sale: typo 'Sale Order/Report' -> 'Sales Order/Report' 2016-08-30 13:20:23 +02:00