Commit Graph
101253 Commits
Author SHA1 Message Date
qsm-odoo 8f2be0d61b [IMP] web: update Dialog class
Update Dialog class with enterprise version.
2016-02-23 13:40:17 +01:00
Ravi Gohil 7eab8e26d3 [MIGR] base: migrate base/res to the new API
- `ir.property`, improve API of method `get_by_record`
- `res.bank`, `res.partner.bank`
- `res.company`
- `res.config`, `res.config.installer`, `res.config.settings`, fix usage of methods `get_default_`
- `res.country`, `res.country.group`, `res.country.state`
- `res.currency`, `res.currency.rate`
- `res.font`
- `res.lang`
- `res.partner`, `res.partner.category`, `res.partner.title`
- `res.request.link`
- `res.groups`, `res.users`, `res.users.log`, change password wizard
2016-02-23 12:06:25 +01:00
Yannick Tivisse 1490e430e6 [IMP] base: rename duplicated menu
Rename the menu 'Apps' by 'Local Modules'

Fixes #9009
Closes #11017
2016-02-23 11:25:53 +01:00
Richard Mathot 9bfa205082 [IMP] survey: correct English 2016-02-22 08:31:58 +01:00
qdp-odoo 8dd9b25a62 [MOV] account: moving reports from account_extra_reports to account 2016-02-19 17:37:46 +01:00
Fabien Pinckaers 773fb17ccb [IMP] support@ --> help@ 2016-02-19 12:47:01 +01:00
Joren Van Onder 22b93174af [FIX] point_of_sale: fix forgotten method rename
pos_order.onchange_qty was renamed to pos_order._onchange_qty during the
migration to the new API.
2016-02-19 10:23:02 +01:00
Joren Van Onder 92badf048f [IMP] point_of_sale: automatically set customer fiscal position
This makes it so that when you set a customer in the POS frontend it
will automatically apply the fiscal position associated to the customer
on the order.

If the customer has no set fiscal position or if the fiscal position is
not available in the POS nothing will happen.

opw-668155
2016-02-18 15:48:16 +01:00
Joren Van Onder d5dfeb9dac [IMP] point_of_sale: allow clearing a set fiscal position
This was not really possible before. This prepends a dummy undefined
fiscal position to the selection list that'll clear the current fiscal
position when selected.

Also considered was using the "Cancel" button of the selection widget to
clear the fiscal position, but that doesn't make a lot of sense from a
UI point of view. Pressing a "Cancel" button shouldn't change anything
in the underlying model, it should just get rid of the dialog window.

opw-668155
2016-02-18 15:48:16 +01:00
Joren Van Onder d9891a5bbe [IMP] point_of_sale: display the current fiscal position name on button
Before this, seeing the current set fiscal position on an order was not
really possible.

opw-668155
2016-02-18 15:48:16 +01:00
Christophe Simonis a7c1f37197 [IMP] module loading: show name and progress of loaded modules 2016-02-18 15:06:26 +01:00
Antony Lesuisse e1020e9a3f [IMP] hr_timesheet is now based on projects and tasks 2016-02-18 02:21:57 +01:00
Antony Lesuisse 8c6ab96f53 [REM] project_timesheet: moved to hr_timesheet 2016-02-18 01:35:06 +01:00
Tanguy Charlier 16bf40f7c4 [IMP] hr_timesheet: Timesheet entries are now related to projects
- Hide account_id field and add a required project_id field on timesheet entries
- Remove is_timesheet field: as project_id is only required for timesheet entries and not for other analytic lines, it can be used to determine wether a line is a timeheet entry or not.
- Remove project_timesheet module as all its functionalities are moved to hr_timesheet
- Replace timesheets on contract option on products by timesheets on project
- Small fixes and improvements in timesheets and projects views and groups
2016-02-18 01:25:55 +01:00
Tanguy Charlier f3a9f83ff1 [MOV] Move project_timesheet files to hr_timesheet before refactoring 2016-02-18 01:23:40 +01:00
Christophe Simonis a5df5e85e4 [MERGE] forward port of branch saas-9 up to eb9e591 2016-02-17 19:23:20 +01:00
Christophe Simonis eb9e5913c9 [MERGE] forward port of branch saas-7 up to 519dd27 2016-02-17 19:23:08 +01:00
Christophe Simonis 519dd27358 [MERGE] forward port of branch 9.0 up to d5f28f4 2016-02-17 19:22:45 +01:00
Christophe Simonis d5f28f4a64 [FIX] base: do not force image when creating delivery/invoice partner
Let the default values choose the correct image by setting correct
value in context
2016-02-17 19:20:28 +01:00
Christophe Simonis 60c9cac46b [MERGE] forward port of branch saas-9 up to 87a01c7 2016-02-17 18:07:21 +01:00
Christophe Simonis 87a01c75ef [MERGE] forward port of branch saas-7 up to 5be43b8 2016-02-17 18:01:11 +01:00
Christophe Simonis 5be43b8d9a [MERGE] forward port of branch 9.0 up to 27058c4 2016-02-17 17:48:03 +01:00
Christophe Simonis 27058c4763 [IMP] delivery: Add "Archive" button on carrier view
Also allow to search on archived carriers easily.
2016-02-17 17:44:54 +01:00
Martin Trigaux 4ecba34944 [MERGE] migration of point_of_sale to the new API 2016-02-17 17:31:38 +01:00
Darshan Kalola 90d406b567 [FIX] pos_mercury: adapt to new signature method
add_payment is no longer an api.model so self represent the current order
2016-02-17 17:12:49 +01:00
Darshan Kalola 62040dea69 [REF] point_of_sale: converted yml test cases to python unit test 2016-02-17 17:12:45 +01:00
Darshan Kalola 32b5515a8f [REF] point_of_sale: migrate to new api 2016-02-17 17:10:03 +01:00
Martin Trigaux e741de8b0c [IMP] point_of_sale: remove some reports
- report.transaction.pos
- report.sales.by.user.pos
- report.sales.by.user.pos.month
These reports where not called anywhere and have been replaced by pivot views

Remove order reports that can be easily replaced by use of the pivot view of
report.pos.order
Add a session_id field and a filter on report.pos.order to make it equivalent.
The invoice report is only useful when called from the pos UI so keeping the
report but not added in the print menu
2016-02-17 17:09:59 +01:00
Darshan Kalola 62406fa4bf [REM] point of sale: removed useless wizard and code
Never called or not used
2016-02-17 17:04:26 +01:00
Martin Trigaux 7d93f9904e [IMP] point_of_sale: remove complete_name and iface_fullscreen
complete_name is actually the existing orm field display_name
field iface_fullscreen is never used, cf TODO
2016-02-17 17:04:26 +01:00
Martin Trigaux 8ab5b8664a [IMP] point_of_sale: remove unused action
Never called
2016-02-17 17:04:26 +01:00
Darshan Kalola fcdd43010a [REF] point_of_sale: split files per model 2016-02-17 17:04:22 +01:00
Christophe Simonis 32378529e1 [IMP] ir.attachment: do not prefetch content
For textual attachments (like assets), the indexed content is the
content itself. Avoid prefetching this potential huge field.

When deleting attachments, only delete files once.
2016-02-17 16:44:41 +01:00
Christophe Simonis 01d5ddd993 [FIX] ir_qweb: handle duplicated preprocessed assets
Previous implementation was expecting exactly the same number of
attachments than the number of assets in a bundle. However it's
possible that duplicated assets are created due to concurrent first
generation.

This duplication cannot be avoid, but is cleaned upon next bundle
regeneration.

Joint work with @sle-odoo and @odony
2016-02-17 16:44:41 +01:00
Christophe Simonis d1a79ec704 [MERGE] forward port of branch saas-6 up to 9363372 2016-02-17 16:28:56 +01:00
Martin Trigaux d1c3c6518d [REF] point_of_sale: move files to appropriate folders 2016-02-17 16:28:27 +01:00
Christophe Simonis 9363372efe [MERGE] forward port of branch 8.0 up to 0f46e6a 2016-02-17 16:20:23 +01:00
Christophe Matthieu 41d3c9b165 [FIX] web_kanban_gauge: max_value can be null 2016-02-17 16:06:57 +01:00
Joren Van Onder 207f4df992 [FIX] point_of_sale: expose ClientListScreenWidget
Allow easy modification of ClientListScreenWidget by other modules. If
you get creative you can actually get to it without this, but it's not
clean and needlessly complicated.

opw-669686
2016-02-17 16:06:29 +01:00
Denis Ledoux afb8ae0b69 [FIX] product: pricelist item delete cascade on pricelist deletion
On deletion of a pricelist,
the pricelist items were not deleted.

Meaning, if you deleted a pricelist,
and this pricelist was used in the product pricing,
the line with the pricing remained, but without any
pricelist set. Besides, as the field is required
in the view, this prevented to edit anything without
correcting the pricing line first.

opw-669652
2016-02-17 16:00:38 +01:00
Richard Mathot 59ffd288b8 [FIX] website_sale_delivery: missing explicit dependency
1e936c9df4 assumes that website_sale_stock
is installed.

As website_sale_delivery depends on website_sale and delivery (that
depends on sale_stock), website_sale_stock should be auto-installed, but
not always BEFORE website_sale_delivery.
So we mark this dependency as explicit.
2016-02-17 15:57:28 +01:00
Xavier Morel a4ee8e5723 [IMP] base_import: use mimetype guessing
Rather than trust the user-controlled mimetype or extension of imported
files which may be incorrect (because the user is lying, because the
system is misconfigured, because software is not installed, because
software is registering non-standard mimetypes, etc...), start by trying
to guess the mimetype *then* fallback on trying the type/ext.

Of note: CSV is becoming less and less great as it's nigh impossible to
guess for it.
2016-02-17 15:45:11 +01:00
Xavier Morel 078da0badd [IMP] move guess_mimetype to tools and improve it
* move guess_mimetype from ir_attachment to a misc submodule so it can
  be used outside of attachments (in base_import in this case)
* fix the broken detection of zip and OpenDocument files (would all be
  detected as msword files)
* correctly implement detection of OOXML files (including returning the
  right MIME type)
* attempt to correctly detect OLECF Excel files (.xls)
* add PPT detection (untested)
* remove duplicate patterns in GIF detection
2016-02-17 15:45:11 +01:00
Xavier Morel 97d2b758fe [FIX] catch exception on incorrect mime type
If the user provides a known mimetype which doesn't actually match the
file as far as we're concerned, warn and fallback on extension rather
than blow up.

This comes up when a user installs Excel on Windows: it associates CSV
files with itself and sets their mime type to application/vnd.ms-excel,
which is not correct and leads to us trying to load a CSV with xlrd (an
excel-parsing library).

Fixes #9779
2016-02-17 15:45:11 +01:00
Richard Mathot 1e936c9df4 [IMP] website_sale_delivery: tracking number on customer portal 2016-02-17 15:28:38 +01:00
Nicolas Martinelli 6999a862fd [FIX] base: translation window
DO NOT FORWARD-PORT TO MASTER

When the user wants to edit the translation of a view, a JS traceback
appears. The reason is that the `WebClient.DebugManager.View` tries to
access `view.controller.fields_view.view_id` before the fields_view_get
is actually resolved.

The issue is that the DebugManager is loaded when the dialog is opened.
However, the dialog is opened before its content is actually loaded. The
proper fix would be to open the dialog only when the content is ready.
Since this might imply side effects, this fix will be done in master
branch, not in the stable saas-7.

The workaround is to open the translation window in the current window,
not in a dialog window.

opw-669140
2016-02-17 15:28:12 +01:00
Denis Ledoux b574616203 [FIX] mass_mailing: unsubscribe route without website
The unsubscribe URL is used within the `mass_mailing` module,
e.g. in `_get_unsubscribe_url` & `send_get_email_dict`.

Basically, there is the possibility to add the unsubscription
link in the mass mailings while having only
`mass_mailing` installed.

But, the unsubscription route is defined within
the module `website_mass_mailing`.

Therefore, if you added the unsubscription link
within your mailings while not having
`website_mass_mailing` installed, trying
to follow the unsubscription link leaded to
a `404 Not Found` page.

We therefore define the route within `mass_mailing`
directly, which does the basic stuff (the basic
unsubscribe and confirmation), and override this route
in `website_mass_mailing`, where the advanced stuff is done
(the mailing lists list unsubscription and the better
looking page).

opw-669425
2016-02-17 15:11:05 +01:00
Tanguy Charlier ec1e5c524b [FIX] hr_timesheet_sheet: missing labels in form view. 2016-02-17 14:46:16 +01:00
Géry Debongnie 12d5667830 [FIX] mail: use the domain to determine message to mark as read
The button 'mark all as read' used to mark all messages as read, which
is not usually what the user wants when there is an active filter in the
search view.  This commit make sure that the domain is send to the
server and used correctly.
2016-02-17 14:26:54 +01:00
Géry Debongnie be3f7ea433 [FIX] web: prevent focus issue with autoresize
The copied textarea used in autoresize was a valid target for focus when
using the tab key.  This is a major issue in editable list views,
because when the user leaves a textarea, the list view jumps up, with no
visible focused field.
2016-02-17 14:24:09 +01:00