Commit Graph
103218 Commits
Author SHA1 Message Date
Martin Trigaux fa4b170a31 [FIX] account: typo 2015-09-28 17:49:40 +02:00
Xavier Morel 24a20cd3fb [FIX] website: looks of 500 Internal Error page
Kinda. Link to CSS had been broken, replace by asset calls.

Dump the assets in debug mode just in case.
2015-09-28 17:44:15 +02:00
Yannick Tivisse f0db109741 [IMP] account: update translations 2015-09-28 17:34:42 +02:00
Yannick Tivisse 077098ea13 [FIX] account: planner, multiple typos and wrong turns of phrase 2015-09-28 17:30:17 +02:00
Thibault Delavallée b14ed9a5eb [IMP] crm.lead: lost reason improvements
- now possible to archive lost reasons. Indeed some reasons may become
  unrelevant after some time.
- updated access rights on lost reasons: manager can create / update them
  salesmen can only use them
- add archived filter
2015-09-28 17:27:07 +02:00
Richard Mathot 7ac04d409e [FIX] delivery: invoice actual shipping cost
Since commit 78cc0b95f4, there was no more
way to invoice the actual price of a shipping (after the transfer).

In order to make that available again, we introduce a new field on the
sale order. This field automatically detects whether a sale order
contains a "delivery" line or not, at sale order confirmation
(action_confirm).

When the delivery order is processed, the actual shipping cost is thus
repercuted on the sale order if and only if the shipping price was not
"forced" at the sale order confirmation.

(and a few refactoring to avoid copy-pasting code lines)
2015-09-28 17:25:44 +02:00
Richard Mathot bb78aecc29 [IMP] product: add some demo weights
It is easier to demonstrate the shipping connectors
2015-09-28 17:25:43 +02:00
Richard Mathot 8091997e74 [IMP] base: state/country for default demo company
It is very annoying to set them every time you want to demonstrate a shipping provider...
2015-09-28 17:25:43 +02:00
Richard Mathot fb39656bb6 [FIX] delivery: hide carriers search_more 2015-09-28 17:25:42 +02:00
Martin Trigaux 3498f2287a [IMP] account: better label 2015-09-28 17:24:29 +02:00
Martin Trigaux 70c93bf6d2 [FIX] OpenERP -> Odoo
In description source module
2015-09-28 17:21:26 +02:00
Raphael Collet 67ff58ade0 [REM] base/ir_ui_menu: remove unused field needaction_enabled 2015-09-28 17:19:06 +02:00
Leonardo Rochael Almeida 1005299955 [FIX] YAML: !menuitem tag handling
The fetched ID was the one of the parent instead of the ID of the imported menu.
2015-09-28 17:15:38 +02:00
Leonardo Rochael Almeida 39745a4290 [FIX] YAML: Add support for reference fields in YAML
YAML import was missing support for loading values into fields
where `field.type == 'reference'`.
2015-09-28 17:15:38 +02:00
Leonardo Rochael Almeida 11886f4d9f [FIX] YAML: typos 2015-09-28 17:15:37 +02:00
Leonardo Rochael Almeida 5760a5d547 [IMP] YAML: Better Error message for bad xml_id
Use the original xml_id, which is present in the file, instead of the
checked one.
2015-09-28 17:15:37 +02:00
Josse Colpaert 7f9e6993a7 [IMP] sale_stock: Better sale_id implementation 2015-09-28 16:10:06 +02:00
Denis Ledoux fa17b86a9f [FIX] project: multi-company security rules in Tasks Analysis
This change avoid to display the tasks
that a user is not permitted to see
in the reporting view 'Task analysis'

Closes #4399

Courtesy of jkei
https://github.com/jkei
2015-09-28 15:58:15 +02:00
Martin Geubelle 5946623d3f [FIX] website, web_planner: shared help comportement in frontend/backend
Help has been moved to web_planner, but only in backend. The comportement needs to be defined in website also so it is now shared in frontend and backend (mixin in common)
2015-09-28 15:42:44 +02:00
Ronald Portier (Therp BV) 65d4b25565 [FIX] tools: i18n_extra loading, backport of 7c2795ca
In case of different directory for stroing po and pot files than 'i18n'
(e.g. 'i18n_extra'), a po could be linked to a wrong pot file.
Use the same folder as the po file to look for pot.
Closes #4323
2015-09-28 15:38:39 +02:00
Nicolas Martinelli a4bc3c23aa [FIX] website_slides: fullscreen and previous/next
This solves 2 issues:

1) When the slide is set to fullscreen, on Firefox, the image was
stretched and the aspect ratio not respected. This is the default
behavior of Firefox for a canvas. By choosing the parentNode instead (a
div tag which only contains the canvas), the aspect ratio is respected.

2) Arrow key up/down has now the same behavior than arrow key
left/right.

opw-650174
2015-09-28 15:29:06 +02:00
Christophe Matthieu d459359e87 [IMP] web_editor: Convert font-awsome into picture before convert class into style to remove unnecessary style attributes 2015-09-28 15:23:35 +02:00
Christophe Matthieu bdf58adb46 [FIX] web_editor: send mail to outlook and keep image size
Office Outlook doesn't take into account the [style] attribute, and it
doesn't manage width/height in percent value.

This commit set width/heigth attribute in pixels and also always set the
width/height in style attribute (keeping them in the original unit and
setting them to auto if not present).
2015-09-28 15:23:35 +02:00
Christophe Matthieu 6ebcc06152 [FIX] web_editor: remove 'lang' from the context to save master website xml 2015-09-28 15:23:35 +02:00
Christophe Matthieu 8c9cf9eb38 [FIX] web_editor: can upload a product image with the editor and save it (without 'out of range error' because new web controller /web/image/). 2015-09-28 15:23:35 +02:00
Christophe Matthieu 9e428ae849 [FIX] web_editor: media trigger content_changed when change the media 2015-09-28 15:23:35 +02:00
Arnaud Pineux 44bfb2bf44 [FIX] base_import_module: special chars in error messages
use ustr() instead of str() to avoid traceback with translations

Closes #4272
2015-09-28 15:21:24 +02:00
Raphael Collet f9679d80c7 [FIX] expression: partial implementation for binary fields stored in attachments
Implement conditions `('image', '=', False)` and `('image', '!=', False)`.
2015-09-28 15:19:47 +02:00
Raphael Collet 3f374d54f8 [IMP] models: do not create a column for a binary field stored in attachments 2015-09-28 15:19:47 +02:00
Raphael Collet 284d2914f1 [FIX] test_new_api: rewrite test_related to avoid changing binary fields
In the former test, a stored binary field was recomputed.  Changing its value
meant changing an attachment, and the latter was deleting a file in the
filestore, because that file was not used by another attachment.  The problem
was: that operation is rolled back from the database (test transactions are not
committed), but not from the filestore!
2015-09-28 15:19:47 +02:00
Raphael Collet 5a6e136172 [IMP] addons: adapt binary fields to store images in attachments 2015-09-28 15:19:47 +02:00
Raphael Collet 5232fb9e24 [IMP] base: adapt binary fields to store images in attachments 2015-09-28 15:19:47 +02:00
Raphael Collet 1bb61c970e [ADD] fields: add option to store binary fields into attachments
Such a field is declared as:

    image = fields.Binary("Image", attachment=True)

With this option, the value of a binary field F is stored in an attachment with
`res_field=F`.  When attachments are stored into the filestore, binary fields
are consequently stored in the filestore as well.  Note that the option does
not work on old-API function fields.

By default searching on `ir.attachment` filters out attachments for binary
fields: the condition `res_field=False` is added to the domain unless a
condition on field `id` or `res_field` is already present.  The client uses
`search_read` with a domain like `[('id', 'in', ids)]` for reading the data on
a form view.  In that case, we should not filter out attachments that store
binary fields.

Also, do not filter search results for the superuser.
2015-09-28 15:19:47 +02:00
Denis Ledoux 9671ae2a2d [FIX] models: onchange warnings concatenation
This revision is related 420e198aa5.

onchanges can return "False" as warning value.
In such a case, prevent the concatenation with previous results.
2015-09-28 14:45:29 +02:00
Simon Lejeune 6327cda0a7 [FIX] ir_qweb: assets: write in ir.attachment outside of main transaction
If, in the same transaction, we need to render a template and read its
associated assets, they are unreachable because the writes in
ir.attachment are not yet commited. Workaround this issue by commiting
manually with new cursors.

This issue occurs when you want to print a pdf report for the first
time.
2015-09-28 14:35:26 +02:00
Simon Lejeune 2e16296099 [REF] base, report: preview internal/external qweb reports
Added two dummy reports to print an empty internal and external report
and added direct link to edit header/footers template in the form view
(in technical features) for convenience.

Also moved the 'preview rml report' under the rml configuration and
tried to make the company form as clean as possible but i think it's
failed.
2015-09-28 14:35:22 +02:00
Simon Lejeune 62cd475293 [REF] base_setup: remove rml configuration
Everything has already been moved (read: duplicated) under "company >
report configuration" and only appears in technical features, plus
displaying "Report Font" in "general settings" is really confusing, as
it is a deprecated field.
2015-09-28 14:32:31 +02:00
Simon Lejeune f26988cf7a [REF] report: use assets
Three assets: assets_common for shared assets (html/pdf), assets_editor
for editor styles and scripts, assets_pdf to tweak only the pdf output
2015-09-28 14:32:31 +02:00
Simon Lejeune 0e304bf77e [HACK] report: return html when a pdf is requested with a test cursor 2015-09-28 14:32:31 +02:00
Stefan Rijnhart 5f79cbd029 [FIX] mrp: display lot_id in production wizard if full tracking
Show lot_id on production wizard
if product is fully tracked
(but not marked specifically for production tracking

Closes #4223
2015-09-28 14:19:57 +02:00
Richard Mathot c02ff8aebd [FIX] sale_stock: reintroduce field sale_id on stock.picking
This field has been removed by e57ac16476
(let's break everything, it is more fun!). But some people needeed it...

This patch proposes thus a new-API version of the sale_id field.
2015-09-28 12:44:37 +02:00
Denis Ledoux 420e198aa5 [FIX] models: multiple warnings in onchanges
If multiple warnings were returned by a cascading onchange
call, only the last warning was displayed.

This revision concatenates the warnings in such a case.

opw-649275
2015-09-28 12:06:29 +02:00
Arthur Maniet 4530e5d61c [FIX] account: deleting a bank journal also deletes its bank account
Fixes #8739
2015-09-28 11:40:04 +02:00
Xavier Morel a2388c762e [FIX] gamification: incorrect format breaking challenge acceptation
Reported by @yelizariev

closes #8737
2015-09-28 11:37:46 +02:00
Goffin Simon 9dcb05b148 [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-09-28 11:26:22 +02:00
Leonardo Rochael Almeida bf4b47c94d [IMP] JSONDecodeError > ValueError
JSONDecodeError extends ValueError, and is not available in the Python
Standard Library.
2015-09-28 10:53:53 +02:00
Leonardo Rochael Almeida 60af7cac02 [IMP] replace simplejson with stdlib json
The stdlib version of the json library is more recent than the 3.5.3
version we are pinning in `requirements.txt`

There is no reason to use it.

Closes #6940
2015-09-28 10:53:32 +02:00
Leonardo Rochael Almeida 06b3026bcd [IMP] unittest2 > unittest
The `unittest2` package is simply a backport of `unittest` from the
Standard Library of Python 2.7 to previous versions.

There is no reason to use it any longer.

Closes #6941
2015-09-28 10:37:27 +02:00
Martin Trigaux 864ac67905 [FIX] base: missing spaces in help message 2015-09-28 10:26:13 +02:00
Yannick Tivisse 0f16318f1e [IMP] mass_mailing: Add a setting to enable the popup snippet on the website
[FIX] mass_mailing: Display attachments in a proper way
[IMP] mass_mailing: set default value for popup_redirect_url, as it's sometimes required
2015-09-28 10:19:51 +02:00