Commit Graph
99326 Commits
Author SHA1 Message Date
Thibault Delavallée b52069754d [IMP] mail: notification template
The template used for notifications is updated. The general layout
is now

header: logo -- action buttons, contextual actions
separator
body
signature
Sent by company using Odoo
2015-11-02 11:50:14 +01:00
Thibault Delavallée 15b362fde9 [IMP] website_slides: update action and access
Action and access button in notification emails are added. Override
mail_thread methods to add a specific link + an access buttons to
everybody if the slide is published.
2015-11-02 11:49:40 +01:00
Thibault Delavallée fa0bdec3ea [TMP] mail: temporarily deactivate keep_url
This makes every template holding images crash. As this feature will shortly be
fixed in 9, let us temporarily comment its use and wait for the forward port of
the fix.
2015-11-02 11:49:40 +01:00
Ravi Gadhia 9bfb738b04 [IMP] base: res.lang form view layout, add "Active" filter in search view 2015-11-02 10:57:18 +01:00
Ravi Gadhia 7507b18b5d [FIX] web: hide "Create" button for editable tree views with create="false"
Make it such that the buttons "Save" and "Discard" are still visible.
2015-11-02 10:57:18 +01:00
Ravi Gadhia cb835f8a3b [IMP] web: display message to edit translations when translated fields have been modified 2015-11-02 10:57:18 +01:00
Ravi Gadhia 4b768b3ba0 [IMP] base: open dialog with editable list view for record translations 2015-11-02 10:57:18 +01:00
Raphael Collet f72594bcc6 [IMP] web: add a generic notification feature inside form views
The notification box remains on the form until either:
 - the user closes it explicitly, or
 - the user edits the record, or
 - the form view is refreshed (switch to another record, or refresh form).

Add a method `once` to `EventDispatcherMixin`, as it is convenient.
Make `FormView` trigger events `to_view_mode` and `to_edit_mode`.
2015-11-02 10:57:18 +01:00
Martin Trigaux 7d220a1eeb [FIX] typo and rephrase 2015-11-02 10:31:03 +01:00
Martin Trigaux db1538269b [IMP] project: better planner message 2015-10-30 16:36:32 +01:00
Martin Trigaux 07448cfe99 [FIX] English terms 2015-10-30 16:29:55 +01:00
Martin Trigaux 7328267a85 [IMP] all: missing spaces or line return in help message 2015-10-30 15:43:29 +01:00
Martin Trigaux b07d95a7ea [IMP] website_slides: improve help message 2015-10-30 15:31:21 +01:00
Martin Trigaux 9c425f3111 [FIX] fetchmail: missing space 2015-10-30 14:52:38 +01:00
Raphael Collet fe4872f10c [IMP] api: add a decorator for old-API methods that take records as parameters
The decorator transforms old-API calls like

    model.method(cr, uid, records, args)

into

    records.method(args)
2015-10-30 14:37:04 +01:00
Martin Trigaux 98d5673277 [FIX] web_planner: help message on active field 2015-10-30 14:36:11 +01:00
pvy a588fbf8dc [ADD] account: new action to get to an action move list view 2015-10-30 11:03:01 +01:00
Olivier Dony ff2069eb69 [MERGE] Forward-port 9.0 up to 9a3e9291ffa1509f4afa0f35f9d8d71b6e0932d1 2015-10-30 10:47:13 +01:00
Thomas Groutars 9a3e9291ff [IMP] crm: Add name attributes in lead search view to ease inheritance
Closes #9312
2015-10-30 10:19:25 +01:00
Joren Van Onder b1735c7f64 [FIX] point_of_sale: get rid of paymentlines with an amount of 0
Since c04065abd8 (introduction of
accounting v9) bank statement lines can not have an amount of zero
anymore. So when we validate an order in the POS client we need to get
rid of paymentlines with an amount of zero.
2015-10-30 10:00:37 +01:00
Nicolas Lempereur fb872f84f1 [FIX] web: no accesskey for x2m pager
The fix in 665bc1c solved the issue for pager of some X2Many widget x2m
which would shadow the accesskey to go to previous/next page of the top
view's  current model.

But in the case a web.Pager (used in community for a X2Many kanban
widget) the fix had no effect.

opw-652888
2015-10-30 08:40:09 +01:00
Géry Debongnie 329552b78e [FIX] web,account,website_links: update nvd3 to last version
This commit was necessary to fix weird problems in 9.0-nightly.
Phantomjs and the old nvd3 implementations did not play well together.

* transitionDuration() replaced by duration()
* tooltips() & tooltipContent replaced by tooltip.enable and tooltip.contentGenerator
* remove useless less for tooltip

Thanks to mge for his help
2015-10-29 22:15:44 +01:00
Nicolas Martinelli 55535a6f61 [FIX] website_sale: keep pricelist when creating new SO
The call to onchange_partner_id resets the pricelist. Now, SO is created
with correct values right away.
2015-10-29 16:08:11 +01:00
Nicolas Martinelli 1684ae41e7 [FIX] website_sale: currency in line with pricelist selected
Before this fix, inconsistencies arise in the prices displayed in a
multi-currency environment. For example, let's consider these 2
pricelists:
- Public Pricelist, in USD
- Benelux Pricelist, in EUR with 10 % discount

When the Benelux Pricelist is selected, the strikethrough price is in
USD, the price is in EUR, and the currency displayed is $. The reason
is that the pricelist used is stored in request.session, but the
templates are still using the pricelist linked to the partner.

We link website.pricelist_id to the currency stored in request.session,
which is more logical. We also use the currency related to this
pricelist in the templates, which avoids the inconsistencies mentioned.
2015-10-29 16:08:10 +01:00
Goffin Simon 0366ae16a9 [FIX] warning: onchange_partner_id
The function _onchange_partner_id must be triggered when the field 'company_id'
is modified like with function _onchange_partner_id in addons/account/models/account_invoice.py
In this way, the account_id is set in 'account.invoice when the 'company_id' is changed.

opw:652918
2015-10-29 15:58:44 +01:00
Joren Van Onder 87a3fe92de [FIX] point_of_sale: forward port of 35e9fa5c41
Non-trivial port because 9.0 has rescue sessions that kind of try to
solve the same problems, however:

- they do not automatically put orders into a compatible, newly opened
  session because it explicitly searches for rescue sessions. So if
  you open a new session and create a new order in a POS associated to
  a closed session you will end up with two open sessions (one rescue,
  one regular).

- they throw exceptions with cash control enabled

- they're a bit more complicated because they introduce the idea of
  'rescue' sessions, which the 8.0 fix does not (it just uses regular
  sessions).

So this reverts bed409322d without
changing the database and while still ensuring that databases with
existing POS rescue sessions don't break.
2015-10-29 15:56:25 +01:00
Denis Ledoux 05381a8bed [FIX] res_company: parent company field mis-aligned
The `parent_id` field was mis-aligned in the `res.company`
form view, making the input away for its label.

We moved the field to the General information tab, to not
overcrowd the headers.

opw-653373
2015-10-29 15:42:47 +01:00
Christophe Matthieu 5b5f89e2be [FIX] web_editor: select default text of the snippet when click on the text 2015-10-29 15:31:42 +01:00
Christophe Matthieu 8ebe4b2d56 [FIX] web: can remove record in many2many kanban view
Wrong underscore method called.

Issue: go on customer form view, remove a contacts in the many2many kanban view and save. The record is not unlink.
2015-10-29 15:31:42 +01:00
Christophe Matthieu c8e7e1dc5b [FIX] web_editor: don't remove char after a selection when click on delete
Issue: click on an image or create a text selection and click on delete, the char after the selection is removed
2015-10-29 15:31:42 +01:00
Christophe Matthieu dbce114ba6 [FIX] web_editor: remove useless duplicated code 2015-10-29 15:31:42 +01:00
Joren Van Onder 23d7caa8d5 [FIX] point_of_sale: forward port of 35e9fa5c41
This gets rid of rescue sessions entirely by reverting
0ea31c272c and
bed409322d.
2015-10-29 15:27:41 +01:00
Nicolas Lempereur 1da79c54a1 [FIX] web{site,_editor}: gallery upload image
* when getting the src of an uploaded attachment we have to use src which
  is by default url,

* in a MediaDialog the pager is shared between the document and image
  dialog, but when changing page, it was done for both (even if not
  displayed),

* select the image after uploading it in the ImageDialog.

closes #9284
opw-653061
opw-653167
2015-10-29 13:25:27 +01:00
Christophe Matthieu a71caede2d [FIX] web_editor: keep the javascript reference to globalSelector object for odoo javascript module
related to #9284
opw-653061
opw-653167
2015-10-29 13:25:26 +01:00
Nicolas Martinelli 1f43fa9dfe [FIX] web: do not write twice when updating value
The issue occurs for example in the Sale dashboard, when the user
changes the target amount. If the user changes the value, then directly
clicks outside of the field, the method on_change_input will be called
twice: the first time because of the event 'change input', the second
time because of the event 'blur input'. This makes an unnecessary write,
which can cause an error due to concurrent access.

This prevents the execution of the write related to the event 'change
input' in this case. If the user changes the value but clicks on
'Enter', the focus is still on the field so the update is done
correctly.

Courtesy of Quentin Smetz (qsm@odoo.com)

opw-653086
2015-10-29 12:44:07 +01:00
Christophe Simonis d7b0a56f34 [FIX] website: add /website/image compatibility routes 2015-10-29 12:39:10 +01:00
Olivier Dony 6aa27e644f [FIX] im_livechat: match_rule() expects an ID, not a record 2015-10-29 08:58:11 +01:00
Nicolas Martinelli efbdac1efb [FIX] sale: do not crash if no value set
If the user does not set any value, the conversion of an empty string to
a float generates a traceback.
2015-10-28 17:07:01 +01:00
Nicolas Lempereur 665bc1c935 [FIX] web{,_kanban}: too much and too little shortcuts
When several accesskey with the same key,  are defined on elements, the
last one (even if not displayed) is the one which will be actioned and
the key sequence is pressed.

This caused an issue since the "Pager" template is shared between all
elements, even the x2many relational widgets.

Also there was shortcut for Create/Save/Discard on the form view, but
those shortcuts should also be enabled in the list and kanban view.

closes #9267
opw-652888
2015-10-28 15:32:31 +01:00
Martin Trigaux 9593c08673 [FIX] im_livechat: typo 2015-10-28 14:33:56 +01:00
Nicolas Martinelli de8f3f70fd [FIX] website_quote: support of 2 routes to accept quote
Complement of commit d9c2d03. We should still support the old route, in
case users do not update the template.
2015-10-28 14:33:07 +01:00
Martin Trigaux deb094db18 [FIX] im_livechat: typo 2015-10-28 14:32:02 +01:00
Denis Ledoux dcd8d65fd1 [MERGE] forward port of branch saas-6 up to 6a306a03be 2015-10-28 14:01:10 +01:00
Denis Ledoux c8d6b36632 [MERGE] forward port of branch saas-6 up to a0c64bebe6 2015-10-28 12:01:30 +01:00
Christophe Simonis c0066c600e [FIX] website_forum: tags should be unique per forum 2015-10-28 11:55:53 +01:00
Christophe Simonis b89bbf18c4 [FIX] crm: tags are globals
Do not show the related sales team as it is not used to filter tags.
2015-10-28 11:49:09 +01:00
Goffin Simon b3bf69f860 [FIX] account_asset: no_create in invoice_id field
It cannot be possible to create a new invoice from the asset.

opw:652774
2015-10-28 10:48:44 +01:00
Nicolas Martinelli d9c2d03532 [FIX] website_quote: fix Sign & Confirm
Commit 7636b51 modifies the route from JSON to HTTP by mistake. Indeed,
the route /quote/accept is called from an ajax.jsonRpc request, not from
the `method="POST" t-attf-action="/quote/accept` which can be found in
website_quotation.xml.

The t-attf-action is actually only used to recover the order_id and the
token in website_quotation.js.

opw-652874
Closes #9227
Fixes #9226
2015-10-28 08:02:24 +01:00
qsm-odoo 58be02b927 [IMP] website: theme customization assets recomputing
Assets are now split in multiple files and there is not a route which
always leads to the last version of an asset. This commit adapts theme
customization (without reloading) to these new features.
2015-10-27 16:32:35 +01:00
qsm-odoo 7329a7fc55 [FIX] website: theme customization modal overflow 2015-10-27 16:14:14 +01:00