Commit Graph
98656 Commits
Author SHA1 Message Date
qsm-odoo 1574f1c506 [FIX] web: listview editable tab key to go to next line
This was not working if the last field of the line was a DOM element
without any descendant (example: a simple input element).
2015-09-29 15:14:39 +02:00
qsm-odoo 51a923a734 [FIX] web_kanban: colorpicker shouldn't break
The colorpicker in a kanban record was sometimes breaking over 2 lines.
2015-09-29 15:14:39 +02:00
qsm-odoo 91ffe91f7d [IMP] web_calendar: calendar dimension/scroll/resize
The calendar has now a minimum height so that it appears bigger in
mobile. In mobile the height cannot be computed to maximum because
the webclient has not 100% fixed height. The height has been set
so that in appears maximum on a 720p android mobile on chrome at
the time of this commit.

The calendar is now also resizing itself correctly after a window
resize.

Before this commit, it was impossible to scroll the calendar
horizontally if needed. Notice that the solution breaks the full
calendar layout and require JS scrolling so that the events are
still positionned correctly.
2015-09-29 15:14:39 +02:00
Martin Trigaux ea446a69e7 [IMP] sale: better selection label 2015-09-29 15:13:41 +02:00
Josse Colpaert 9d662e4798 [FIX] stock: add extra tests for lots and fix problem subtracting remaining qties
In this test, we set the incoming picking type not
to require any lots.  The outgoing picking requires lots
and should convert the stock without lot into stock with lot.
2015-09-29 15:09:00 +02:00
Nicolas Lempereur 142a3e4176 [IMP] web_editor: rename and delete summernote files 2015-09-29 14:47:37 +02:00
Nicolas Lempereur d33086c03f [IMP] web_editor: update summernote up to 2015-08-31
update summernote library up to revision:
 https://github.com/summernote/summernote/commit/a0f26e300

see https://github.com/summernote/summernote/ for history

closes #8704
2015-09-29 14:47:24 +02:00
Martin Trigaux e9ac1bff8b [I18N] add l10n_sa to .tx/config 2015-09-29 14:42:09 +02:00
Martin Trigaux e0eaaee2db [I18N] add l10n_sa and pos_cache terms + reexport
One last export before v9!
2015-09-29 14:40:59 +02:00
Raphael Collet 20da3a3915 [IMP] fields: enable grouping of fields that are computed together
Do not convert the value of `field.compute`, as this conversion prevents the
grouping of fields that have the same `field.compute` otherwise.
2015-09-29 14:14:48 +02:00
Raphael Collet 50f19afd9e [FIX] models: process the new-API fields to recompute in batch
When a new field has to be computed for the first time on existing records,
mark that field as todo, invalidate it in cache, and perform all recomputations
at once at the very end.
2015-09-29 14:14:48 +02:00
Christophe Matthieu 0156513809 [FIX] website_event: click on edit badges. open the page in edit mode instead of readonly mode 2015-09-29 14:14:04 +02:00
Thibault Delavallée 81e39b70d5 [IMP] crm: lead: followup filter
This filter is based on activities, and filter leads having a date_action set to today
or before.
2015-09-29 12:01:22 +02:00
Thibault Delavallée f0733edeb2 [FIX] web_settings_dashboard: token when inviting users
A context key was missing, leading to incorrect token sent to users when adding
users through the settings dashboard.

Also removed unused imports.
2015-09-29 12:01:22 +02:00
Thibault Delavallée b626bdc68d [FIX][CLEAN] crm: next actions form view + code
The display of next actions has been slightly cleaned. Indeed some links were
displayed only in edit mode, and the order was strange.

Also moved code beloging to crm.team into the right file instead of having
2 overrides in the same module. Also cleaned its code.
2015-09-29 12:01:22 +02:00
Xavier Morel 8475ee13d6 [FIX] website: 500-error template
Fix template markup so CSS correctly applies and nav is correctly
bordered and doesn't take half the page height.
2015-09-29 11:15:58 +02:00
Josse Colpaert 3230b6a4d3 [IMP] stock: post message on original picking when no backorder 2015-09-29 10:28:56 +02:00
Joren Van Onder 6267ce8cff [FIX] point_of_sale: fix dutch translation
Missing space.
2015-09-29 10:07:27 +02:00
pvy 932748d97b [FIX] l10n_sa is back, compliant with the new accounting 2015-09-29 09:58:36 +02:00
Nicolas Martinelli 0126c59dd3 [FIX] point_of_sale: remove remaining references to POS loyalty 2015-09-29 09:06:52 +02:00
Josse Colpaert 80fab986a9 [IMP] stock: deactivate picking types instead of using 2 security groups for not showing internal picking types in kanban
Instead of using 2 security groups to make sure
internal pickings are not shown in the dashboard
when not in multiple locations,
picking types are deactivated when the warehouse
is one step in/out and not in multiple locations.

That way it will work the same for other kanban views.

The colors of the kanban view are also changed.
2015-09-28 21:25:02 +02:00
Simon Lejeune 2fa34fcfef [REF] report: remove css parsing from get_pdf
Useless now that rev f26988c allows the use of asset.
Also, it was partly used to retrieve the content of the
`report.style` template that was removed by rev c9492f8.

The preferred way to add local style and stylesheets is to add them
directly in the assets.
2015-09-28 18:17:16 +02:00
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
Josse Colpaert 7f9e6993a7 [IMP] sale_stock: Better sale_id implementation 2015-09-28 16:10:06 +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
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
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
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