Commit Graph
99161 Commits
Author SHA1 Message Date
Christophe Simonis 856cb6fcb0 [FIX] models: distribute ORDER BY direction 2015-08-14 15:42:37 +02:00
Christophe Simonis dac52e344c [FIX] models: "ORDER BY" on many2one fields
When ordering results on a many2one fields, results are ordered by
order of the target model. The code was wrongly assuming that this
`_order` attribute only contains `_classic_read` fields (that can be
directly read from the table in database). Now correctly generate the
"ORDER BY" clause using the current table alias.

`res.users` can now be sorted by name.
2015-08-14 15:42:37 +02:00
Christophe Combelles 11cd8ba06c [FIX] web_kanban: access gravatar with current scheme
When Odoo is accessed in https, inserting the gravatar
image using the http protocol leads to a security
alert in most browsers.

Closes #3042
2015-08-14 15:35:48 +02:00
Christophe Matthieu 7c10cb47f1 [FIX] web: readonly fields not transferred from dialog to 2many field
Transfer options to 'data_create' and 'data_update'
Add tour to check the fix
2015-08-14 15:34:58 +02:00
Raphael Collet e0cd26376c [FIX] web: make the web client process the new output format of onchange
The dataset implementation has been improved to handle the result of a `read`
on ids that are already modified in the dataset: the lists `to_create` and
`to_write` are updated properly.
2015-08-14 15:09:04 +02:00
Raphael Collet 9f81c6d651 [IMP] models, fields: change output format of method onchange for x2many fields
Use `field.convert_to_onchange` to format the output of method `onchange`.  By
default it behaves like `convert_to_read`.  This is useful for the many2one
case, as the client automatically receives the display name of the record.

For the *2many case, we return a list of dicts values, in recordset order, with
all the known fields in the view:

    [{id: 42, name: "Existing record"}, {name: "New record"}, ...]

Each dictionary contains the values of all known fields in the view.  The
client is responsible of determining which fields are dirty by computing the
difference with former values.

Since the method `onchange` now uses `field.convert_to_onchange`, the method
`field.convert_to_write` has been simplified, as it no longer needs its extra
parameters `target` and `fnames`.
2015-08-14 15:09:04 +02:00
Thibault Delavallée 36ffa5bc69 [IMP] res_partner_title: simplify model
Titles are now just for contacts (people), not for companies
anymore. For that purpose directly adding the suffix (Ltd, ...)
in the name is sufficient.

The domain field is therefore removed.

Updated data, demo, views, code and res.partner model accordingly.
2015-08-14 15:06:36 +02:00
Nicolas Martinelli 71503be1d8 [FIX] account: check price in on_change_unit_amount only if product_id
If no product is defined, there is no need to get any amount or
pricetype. Moreover, variable unit was not defined.
2015-08-14 14:16:10 +02:00
qsm-odoo 532d4243a6 [IMP] web, website: Split base.xml into base.xml/base_common.xml
This allows to always have the templates in base_common.xml in the
frontend.
2015-08-14 13:56:51 +02:00
qsm-odoo ef2df79c66 [IMP] base: Load web_icon_data for root menus
The enterprise frontend appswitcher needs to load the icons for the
root menus too
2015-08-14 13:56:50 +02:00
qsm-odoo 07c020d7e5 [IMP] website: PDFJS lib - GitHub import
* Import src, web and external directories from PDFJS GitHub repo
2015-08-14 13:54:49 +02:00
qsm-odoo 70719843bf [IMP] web_kanban: provide session user context
* Kanban templates now have access to the object "user_context" which
contains the current uid, lang and timezone
2015-08-14 13:54:49 +02:00
Damien Bouvy 033c0a03e2 [FIX] hr_holidays,base,calendar,portal: missing groups on menuitems
I do not think portal users need to log the holidays or the see the list of installed modules
Also, I got tired of the generic cube icon for portal in the new design; feel free to change it if you find something more meaningful
2015-08-14 13:40:20 +02:00
Antony Lesuisse 4feb82dd49 [REM] website: kanban helper
website_project has been removed and this helper is now useless.
2015-08-14 13:33:31 +02:00
Damien Bouvy ad4679176f [FIX] project_timesheet,project_issue_sheet: groups in view: when the doc says list, it means list; not list 2015-08-14 13:32:12 +02:00
Antony Lesuisse 3286dc2ec7 [MERGE] project_issue: website portal
- Remove portal_project move rules to project
- Add issues in the /my/home frontend portal
- Remove website_project, task access is backend only
2015-08-14 13:19:31 +02:00
Damien Bouvy 60514d0d0d [REM] website_project: this half-finished module does not make sense anymore since public projects have been removed 2015-08-14 13:19:04 +02:00
Damien Bouvy 6ca900ab01 [IMP] website_rating_project_issue: remove public projects
- remove public project
- some data was depending on demo data, moved it to demo
- add website_published mixin on projects
- remove project members from frontend view

Since public projects do not exist anymore, project.project objects now have the website_published mixin; any project with the rating activated and published on the website will be visible in the "Project Customer Satisfaction" link for public users
The frontend template has also been modified to remove the team members photo since project members have disappeared as of 9398fe9 by our dear @tde-banana-odoo
2015-08-14 13:19:04 +02:00
Dharmraj Jhala 56c5d0afeb [IMP] website_project_issue: frontend view for issues under My Account page of website, and removed link to the backend and its related files
[ADD] website_project_issue_sheet: link module between website_project_issue and project_issue_sheet
Frontend integration of issues:
    - issues details
    - chatter integration
    - timesheets
2015-08-14 13:19:04 +02:00
Damien Bouvy 8bd6074f03 [IMP] project,project_issue,project_timesheet,project_issue_sheet: project visibility and access rights modifications
[REM] portal_project: move ALL the things
- move portal access rights from portal_project  and website_project_issue to project and project_issue
- move portal menuitems back to their respective module
- remove public visibility of projects
- adapt demo data to have a 'Demo Portal' project
- add correct access rights for account.analytic.line for portal users
- small view tweak (do not display 'timesheet' tab if one can't see antyhing in it anyway)
2015-08-14 13:19:03 +02:00
Damien Bouvy 8db80880a6 [FIX] project_issue: missing api.returns decorator on project_issue.message_post() 2015-08-14 13:19:03 +02:00
Christophe Matthieu f8357a1a60 [FIX] report: update data with options for backward compatibility; Remove empty website_report module. 2015-08-14 12:00:02 +02:00
qdp-odoo 60003c44b0 [FIX] l10n_fr: fixed wrong xml reference 2015-08-14 11:30:53 +02:00
Fabrice Henrion d1be52cbde [FIX] point_of_sale: config options typos 2015-08-14 11:18:46 +02:00
Joren Van Onder d8c5299dc0 [FIX] point_of_sale: posbox_create_image fixes
- don't add comments in posbox ld.so.preload, it causes the second line to be
  interpreted as a library.
- allow image creation in headless environment. This checks whether or not X is
  running and runs qemu-system-arm with or without graphics.
2015-08-14 11:08:51 +02:00
Ronak Baxi 4943877068 [IMP] base,base_setup: new light multi company group 2015-08-14 10:51:08 +02:00
Denis Ledoux d98ac716c1 [FIX] account: account type of account created on bank account creation
When creating a new bank account
e.g. Accounting > Configuration > Accounts >
Setup your Bank Accounts

When the user leaves the journal blank,
a journal, and an account associated to this
journal, are automatically created.

The account type of the account created could be wrong,
as it used the account type of the parent of the first
account of internal type `Liquidity`, which
could not be an account of account type Cash or Bank, but of
account type 'View', and such an account type does not
have the right delivery forward method, in order to report
correctly the amounts when closing a fiscal year.

Instead of using the account type of the parent,
it should actually uses the account type of the sibbling,
which have a correct delivery forward method

opw-647311
2015-08-14 10:46:05 +02:00
qdp-odoo d0775a624b [FIX] l10n_fr is back, compliant with the new accounting. The custom reports for BS and PL are still disabled, though... we'll have to investigate more to decide if we fallback on the default ones or need to reactivate them 2015-08-14 10:24:40 +02:00
qdp-odoo 30b39ec497 [FIX] l10n_co is back, compliant with the new accounting 2015-08-14 10:24:40 +02:00
Martin Geubelle 48ab50ed0d [IMP] point_of_sale: new pos.config dashboard
This dashboard has implied some refactoring:
 - the wizard pos_session_opening has been deleted and all the methods have been put inside pos_config
 - new fields in pos_config to display some useful informations (closing balance, closing date, etc.)
2015-08-14 10:22:39 +02:00
Dharmraj Jhala 67a74ebe2b [IMP] website_hr: usability improvements
- Added module description
- Added public_info field to employee form view
- Fixed bootstrap columns height issue on About Us page
2015-08-14 10:22:39 +02:00
Gaurav Panchal 36e6292466 [FIX] web: radio horizontal
The widget was completely broken when usign the horizontal display.
It has been fixed, hopefully in a way that lessen the xml and
css.
2015-08-14 09:48:19 +02:00
Thibault Delavallée 19a252d578 [REM] account: unnecessary code
Removed a code that allows to write a message, using a subtype that
does not exist. This is probably critical for some business, but
as I don't know which ones, let's remove it.

Chatter is sufficient.
2015-08-14 09:48:19 +02:00
Raphael Collet 44383c5502 [IMP] fields: improve API and implementation of resolve_all_mro
Make the function traverse the class hierarchy upwards, retrieve the value of
the attribute, and stop when the value does not satisfy the given condition.
2015-08-14 08:56:24 +02:00
Denis Ledoux bed9178fd9 [FIX] stock: barcode print in stock reports.
During 32fcfa6, `ean13` was massively renamed to `barcode`.

Nevertheless, the barcode controller (/report/barcode)
doesn't accept `barcode` as a valid barcode type, it's
actually `ean13`.

In the report printing barcodes,
(in report_stockpicking.xml)
this `ean13` shouldn't
have been renamed to `barcode`.

The `barcode` in report_stockpicking_operations.xml
is not due to this revision, but is probably the
result of a copy/paste.

opw-647263
2015-08-13 18:08:49 +02:00
Yannick Tivisse 7f4b719a66 [IMP] point_of_sale : add modules res_config for pos_reprint and pos_mercury 2015-08-13 17:29:44 +02:00
Yannick Tivisse 9231d10295 [IMP] sales_team : cannot create a sales team in dashboard. 2015-08-13 17:23:22 +02:00
Yannick Tivisse 114d8f1199 [FIX] stock: Wrong definition of menuitem Warehouse Management 2015-08-13 17:23:22 +02:00
Yannick Tivisse 0d4cceced6 [IMP] crm: modifying a new option into a selection field + radio button 2015-08-13 17:10:21 +02:00
Yannick Tivisse 9f6f564ed9 [IMP] stock : settings organization improvements 2015-08-13 17:10:21 +02:00
Yannick Tivisse df5f810794 [FIX] Stock : Remove Operations Types menuitem, as the Picking Types menuitems was displaying the same thing 2015-08-13 17:02:39 +02:00
Yannick Tivisse b408013329 [IMP] lunch : Amazing Im Feeling Lucky Button 2015-08-13 16:54:57 +02:00
qdp-odoo 62c3653685 [FIX] purchase: added embedded form view for purchase.order.line since the yaml files trigger the onchanges only from embedded form view (not the editable tree views) 2015-08-13 16:17:26 +02:00
Denis Ledoux bae0a775e1 [FIX] hr_evaluation: remove group by survey
`survey_id` is a related field, non-stored.
This isn't possible to apply a group-by on a non stored field.

opw-647303
2015-08-13 15:26:39 +02:00
Christophe Simonis 2922f70de3 [MERGE] forward port of branch 8.0 up to 09ceb9c 2015-08-13 15:24:57 +02:00
Christophe Simonis 09ceb9cb8a [MERGE] forward port of branch saas-3 up to 4b1496f 2015-08-13 15:18:26 +02:00
Nicolas Lempereur cdb9000449 [FIX] website, base: escaping and unescaping html
When saving a template in version 8.0, html would be saved as it should
be displayed once on the site. In particular, if some text should be
escaped once send to the browser, it will be saved as such.

But when rendering, a text node content is unescaped two times:

* for translation which seems wrong since we already use .text of a node
  which already escaped it, doing it one more time is bad,

* when rendering the template, since the html template is stored in xml,

This commit remove superfluous unescaping for translation, and add an
escaping when saving the changed template content.

closes #7967
opw-646889
2015-08-13 15:15:24 +02:00
Christophe Simonis 4b1496fdd3 [MERGE] forward port of branch 7.0 up to 937b957 2015-08-13 15:14:16 +02:00
Goffin Simon 60d1c69a88 [FIX] website: hide modal
When dropping the snippet "Newsletter Popup", a modal appeared to choose
the newsletter. Once the button "Continue" was clicked, the modal was not
hidden and then it was impossible to scroll.
2015-08-13 13:20:20 +02:00
Nicolas Martinelli 8827789ff2 [FIX] stock_account: remove traceback introduced by f2108e9
invoice_vals['name'] may not be defined yet.
2015-08-13 12:46:22 +02:00