Commit Graph
3482 Commits
Author SHA1 Message Date
Simon Lejeune f9d2f0b509 [FIX] various: slug of a non-existing record
better patch for rev e9b649b555

* also fixes website_event which present the same issue (depends
  on a function that slugs)
* raise an exception when slug is called with wrong arguments
  instead of returning None (which was unclear)
* before calling slug in a function where we got a depends, check
  that the record is actually created
2016-08-22 19:48:16 +02:00
Simon Lejeune e9b649b555 [FIX] website, website_slides: slug of a non-existing record
When you execute the slug method on a virtual record (not yet
saved, virtualid/newid) the slugs obviously fails as it needs
an id and a display_name.

This issue happens when there's a depends on a function field
using the slug method: just after the create and during the
onchanges, they'll raise.

This patch makes the slug method returns None in these case,
anyway the depends are re-triggered after the write and at
this time they have an id and everything is working fine.
2016-08-22 15:19:05 +02:00
Csaba Fazekas 1ede17978b [IMP] website: improve dashboard design 2016-08-22 13:48:49 +02:00
Martin Trigaux a35e9bdb88 [I18N] fetch new master terms from Transifex 2016-08-22 11:52:03 +02:00
Christophe Simonis 235ed4b2c1 [MERGE] forward port branch saas-12 up to 9ad5f26 2016-08-20 18:08:19 +02:00
Christophe Simonis 9ad5f26b3f [MERGE] forward port branch saas-11 up to 3a2147d 2016-08-20 17:18:31 +02:00
Christophe Simonis 3a2147d95c [MERGE] forward port branch saas-10 up to bc1a0a3 2016-08-20 16:57:36 +02:00
Fabien Pinckaers 2e9374d00a [IMP] mrp: App MRP --> Manufacturing (consistency between app and menu)
[IMP] website: better dialog when clicking on a menu in edit mode
	(less options is easier)
2016-08-19 16:11:03 -07:00
Jeremy Kersten 1feaee1daa [IMP] website_sale: show number of product found
Now you have the option to show the number of product found after one search.
2016-08-19 19:33:21 +02:00
qsm-odoo b4cfe36b05 [IMP] *: replace snippet sections menu by a title
* web_editor, website, mass_mailing

This menu allowed to scroll to the snippets sections by clicking on
their corresponding icons. It was useless as the sections are not
taking a lot of height. This also appeared buggy as clicking on the
last icon highlighted only the second one as this second one was still
the first section visible on the screen when the last section was
fully visible.

This also added fours buttons to the interface which contains already a
lot of them. Now this is replaced by a title "Add blocks" which makes
the editor cleaner and also improved the performance to enter the edit
mode.
2016-08-19 17:44:28 +02:00
qsm-odoo d316dbd95c [IMP] website: rename "NEW/EDIT PAGE" buttons into "NEW/EDIT"
It is better because it then proposes to add a page, a product, a blog,
a forum, a job offer, ... (not only a page).
2016-08-19 17:44:28 +02:00
qsm-odoo 1d54874c13 [IMP] website: propose edition of company data in frontend
When clicking on the logo or the company adress in the website edit
mode, the user can now choose to be redirected to the form view of
the company so that it can edit the data.
2016-08-19 17:44:27 +02:00
qsm-odoo 3c98c78fc7 [IMP] website: allow to navigate through menus in edit mode
Now, when clicking on a menu item while being in edit mode, a modal
opens asking if we want to go to that page, edit that page, edit the
menu or do nothing (it only allowed to edit the menu item before).
2016-08-19 17:44:27 +02:00
qsm-odoo 0ab08050b9 [FIX] web_editor,website: stop closing web_editor dialog two times
This commit fixes two problems:

* Clicking on the save button of a web_editor dialog closed the dialog
two times because the button was created with the flag "close: true"
and binded to a handler which closes the dialog. This also prevented
to extend this handler by placing the this._super call in a deferred.

* Some web_editor dialog extended the save callback but forgot to use
the this._super, which prevents the "saved" event to be triggered
(currently not used anywhere but useful for custo and master).
2016-08-19 17:44:27 +02:00
Aristobulo Meneses 814eae1fbd [FIX] website: avoid redirect to website after login
When logged in a user was redirected to the website instead of the backend.
This was due to a wrong group verification, at that point:
- request.uid = ID of the user authenticating (e.g. admin)
- request.env.uid = ID of the user that rendered the page (public)

As public does not belong to `base.group_user` group, the user was redirected to
the website.

Introduced at fd09ddb6 during migration.

Fixes #13203
Closes #13204
2016-08-19 17:16:30 +02:00
Christophe Simonis bc1a0a32ca [MERGE] forward port branch 9.0 up to 58cbcba 2016-08-19 16:59:29 +02:00
Martin Trigaux 99215a02c6 [I18N] update saas-11 translations by merging 9.0 and master
1. export saas-11 sources terms into .pot files
2. msgcat odoo-9 .po & odoo-master .po into saas-11 .po files
3. msgmerge saas-11 .po with saas-11 .pot files to keep relevant terms
2016-08-19 13:54:31 +02:00
Christophe Simonis f571ba373a [MERGE] forward port branch saas-6 up to 826472d 2016-08-19 12:56:08 +02:00
Christophe Simonis e5371329f7 [MERGE] forward port branch 8.0 up to 08ed48e 2016-08-19 12:07:14 +02:00
qsm-odoo 7a77209149 [FIX] web_editor,website: stop closing web_editor dialog two times
This commit fixes two problems:

* Clicking on the save button of a web_editor dialog closed the dialog
two times because the button was created with the flag "close: true"
and binded to a handler which closes the dialog. This also prevented
to extend this handler by placing the this._super call in a deferred.

* Some web_editor dialog extended the save callback but forgot to use
the this._super, which prevents the "saved" event to be triggered
(currently not used anywhere but useful for custo and master).
2016-08-19 09:07:40 +02:00
Martin Trigaux 2331bbf4b0 [I18N] update saas-10 translations by merging 9.0 and master
1. export saas-10 sources terms into .pot files
2. msgcat odoo-9 .po & odoo-master .po into saas-10 .po files
3. msgmerge saas-10 .po with saas-10 .pot files to keep relevant terms
2016-08-18 16:47:23 +02:00
Martin Trigaux c73b2bd079 [I18N] export master source terms 2016-08-18 11:01:50 +02:00
Jeremy Kersten 4cfd86edaa [IMP] website: rename xml_id website.info to website.website_info
After this commit, the end user will be able to create the page /page/info.
2016-08-17 10:24:59 +02:00
Raphael Collet 38e7a1318a [REM] most uses of self.pool 2016-08-16 09:55:46 +02:00
Odoo Translation Bot 71594f5958 [I18N] Update translation terms from Transifex 2016-08-14 03:04:34 +02:00
Odoo Translation Bot 842bf793f5 [I18N] Update translation terms from Transifex 2016-08-14 00:38:20 +02:00
Thibault Delavallée efd55ab8a5 [REF] various: rename openerp node to odoo in xml files 2016-08-10 15:48:10 +02:00
Thibault Delavallée 3f2539bc60 [MIG] website: migrate server actions to new API 2016-08-10 15:48:09 +02:00
Odoo Translation Bot 0606247a8b [I18N] Update translation terms from Transifex 2016-08-07 03:07:40 +02:00
Odoo Translation Bot 8a3a620404 [I18N] Update translation terms from Transifex 2016-08-07 00:38:49 +02:00
Martin Trigaux d56b03465f [I18N] Update translation terms from Transifex
Last one before dropping a few non-active languages
2016-08-05 16:12:06 +02:00
Jeremy Kersten 7f6c669530 [FIX] website: /website/info use website.info xmlid
When a user try to create a new page info, he is redirected
to the /page/info because the xmlid already exists...

The problem is that this view need to be rendered via the
controller /website/info which gives some extra values (version, ...)

The fix for v8 is to redirect /page/info to /website/info.

In V9, the behavior is changed and one page info-1 will be created.
But this fix is also required for direct access to /page/info.

To do in master: maybe use another xml_id that this basic name 'info'?

This commit fix issue #8022
2016-08-05 12:05:24 +02:00
Fabien Pinckaers d73eb2c555 [IMP] website_blog: improved tour 2016-08-04 16:10:13 -07:00
Fabien Pinckaers 44f755579f [IMP] website: tout wording, small improvements 2016-08-04 11:06:30 -07:00
Fabien Pinckaers 7aeb3dfebd [IMP] website: UX detail: divider in content menu 2016-08-04 10:53:25 -07:00
qsm-odoo 156a089a11 [FIX] website: properly duplicate FAQ Roller questions
/!\ This is a backport from saas-10

When duplicating a question in the FAQ Roller snippet, the cloned
question was opening the original answer instead of its own answer.
2016-08-04 15:03:46 +02:00
Jérome Maes 9f6ecb239e [REF] website_*: clean method to override when using 2016-08-04 12:02:14 +02:00
Jérome Maes 8a399930f3 [REF] website_*: remove render method on website
Since saas-3, website controllers use `request.website.render`
to render the template of a web page. This was kept for retro
compatibility. It's time to stop using deprecated stuff.
Same for `_render` method on website.

'json' route don't use `request.render` since
`JsonRequest` has no `render` method.
2016-08-04 12:02:14 +02:00
Ravi Gadhia fd09ddb6f3 [MIG] website: migration to new api
Migration of website module to new API.
The tricky phase is ir_http.py : we need to use `request.env`
only when the authenfication phase is done. Normally by
calling `super` of `_dispatch` method, but website module
required it to be done before. This is important since
`env`is a lazy property of `request` object.

Some hack were kept since this commit is a migration ('RequestUID'
in ir.http, ...)

Some docstrings were added.
2016-08-04 12:02:14 +02:00
Jérome Maes 73749499f0 [MOV] website: split files, reoganize file per models 2016-08-04 12:02:13 +02:00
Jérome Maes 2becc4a59a [MOV] website: module directory organization 2016-08-04 12:02:13 +02:00
Fabien Pinckaers eeee380394 [FIX] website: typo in snippet 2016-08-03 11:11:19 -07:00
Christophe Simonis 53015e11a9 [MERGE] forward port branch saas-11 up to eb83ab2 2016-08-03 16:16:30 +02:00
Christophe Simonis eb83ab236f [MERGE] forward port branch saas-10 up to c956075 2016-08-03 15:29:57 +02:00
Christophe Simonis c956075f5f [MERGE] forward port branch 9.0 up to cadb481 2016-08-03 15:07:24 +02:00
Christophe Simonis 20db912f77 [MERGE] forward port branch 8.0 up to 1213de3 2016-08-03 14:09:30 +02:00
fwi-odoo a32c1d3c8d [MIG] web_editor: migrate to new api 2016-08-03 13:42:25 +02:00
fwi-odoo d4e813b873 [REF] web, *: change deprecated import openerp.addons.web.http to odoo.http
We also remove the mock in web as there is no need for it anymore.
2016-08-03 13:42:05 +02:00
Mohammed Shekha dcd03d778e [FIX] website: repair customize menu for groups restricted views
The id of the user to browse has been omitted
during the below forward port revision:
95a2f8b121

We can see in the original revision that it was
correctly there:
cbb51610ee

This had as wrong side-effect to not display
views with a group set in the customize menu,
as it checked the groups of a null user browse
recordset.

opw-684326
Closes #12895
2016-08-01 11:23:52 +02:00
Odoo Translation Bot 337049baa8 [I18N] Update translation terms from Transifex 2016-07-31 03:07:08 +02:00