Commit Graph

2466 Commits

Author SHA1 Message Date
Olivier Dony 495ec92251 [I18N] Update translations from Launchpad 8.0 branches 2015-01-21 15:36:54 +01:00
Olivier Dony 39f00b3637 [I18N] Update translation templates with latest terms
Total new terms: 270
Total deleted terms: 82
Total identical terms: 19653
Old total number of terms: 19735
New total number of terms: 19923
2015-01-21 15:31:22 +01:00
Jeremy Kersten 9d89b179c4 [FIX] website: search a matching route with http method POST
When url_for was looking for a route which match, it was only looking for GET route.
So routes which were restricted to be used only with a POST method, were never found.

The result was that urls in website for route post (form in most cases) was never prefixed with the lang.
So the request.lang was always the default lang from website...

If you was creating a sale order (in ecommerce), the lang used in sale order was wrong and the description not in the current lang.
2015-01-15 23:16:33 +01:00
Christophe Matthieu 255f50d0b9 [FIX] website: layout of the snippet list for large screen 2015-01-08 11:00:14 +01:00
Jos De Graeve 544eefdd32 [FIX] website: add missing decorator for better guess type
The definition of the render method was guessed as cr_uid_context instead of
cr_uid_ids_context, making calls in the new api breaks
Fixes #4401
2014-12-23 14:29:59 +01:00
Christophe Matthieu 177a08832c [FIX] website_mass_mailing: snippet animation does not toggleClass for subrscribe button. When the user click on edit snippet editor does not start animation with editable_mode true 2014-12-17 12:43:33 +01:00
Denis Ledoux 2bebba76d0 [FIX] website: image_url fallback when no write_date 2014-12-12 13:09:07 +01:00
Denis Ledoux 6f21306dba [FIX] website: responsive images in table for Firefox only
It looks there is a bug in Firefox concerning responsive images in table. See bugzilla https://bugzilla.mozilla.org/show_bug.cgi?id=975632
Bootstrap advises to use width: 100% for .img-responsive as workaround were needed.
The @moz-document is to apply this for Mozilla only.

opw-617582
opw-618659
2014-12-01 18:28:18 +01:00
Martin Trigaux b3060f2771 [FIX] website: can not change website name
The website name is by default "localhost" (used in the page title in the format
"Current Page | Website Name") but there were no way to change it.
Fixes #3493
2014-12-01 16:50:51 +01:00
Denis Ledoux b499eac2ed [FIX] website: the attachment creation improvment of a3e578068e must be done on res_model
instead of type
2014-11-25 19:26:13 +01:00
Denis Ledoux a3e578068e [FIX] website: improve performance for attachment creation
website introduces two new stored function fields, which depend on the attachment data
The thing is, these two fields are pertinent for website attachments only
Therefore, we avoid to read the datas field when the attachment is not a website attachment(when not needed), as this is the most costly field to read
2014-11-25 14:39:54 +01:00
Jeremy Kersten 4617f665b9 [FIX] website_editor: smallest pictogram was unselectable. 2014-11-21 18:23:22 +01:00
Olivier Dony a6d24db305 [I18N] Update translations from Launchpad 8.0 branches 2014-11-19 17:49:12 +01:00
Jeremy Kersten eb2e53276a [FIX] layout - use company name for attribut alt of company logo 2014-11-14 16:19:33 +01:00
Jeremy Kersten f469e8e09f [FIX] layout: add alt on logo for seo 2014-11-14 11:13:38 +01:00
Christophe Simonis c825d0552d [MERGE] forward port of branch saas-3 up to ec27773 2014-11-05 21:46:42 +01:00
Christophe Simonis ec277732fe [MERGE] forward port of branch 7.0 up to 3e3e35e 2014-11-05 21:10:15 +01:00
Christophe Simonis fbd3041c55 [FIX] website: correct padding of footer 2014-11-05 17:44:34 +01:00
Jeremy Kersten 738a895dba [FIX] ir_qweb, website_blog: Allow to pass inline style as an option for the widget image. And change some img from blog to use this widget 2014-11-05 11:11:26 +01:00
Raphael Collet f2e4a10e1a [IMP] use model._fields instead of model._all_columns to cover all fields
The old-api model._all_columns contains information about model._columns and
inherited columns.  This dictionary is missing new-api computed non-stored
fields, and the new field objects provide a more readable api...

This commit contains the following changes:

 - adapt several methods of BaseModel to use fields instead of columns and
   _all_columns

 - copy all semantic-free attributes of related fields from their source

 - add attribute 'group_operator' on integer and float fields

 - base, base_action_rule, crm, edi, hr, mail, mass_mailing, pad,
   payment_acquirer, share, website, website_crm, website_mail: simply use
   _fields instead of _all_columns

 - base, decimal_precision, website: adapt qweb rendering methods to use fields
   instead of columns
2014-11-04 13:47:57 +01:00
Jeremy Kersten a3e2fe2c03 [FIX] website: main layout - title more flexible for customization. (additionnal_)title was overwritted by website_meta_title or main_object.name 2014-11-04 11:20:56 +01:00
Fabien Meghazi 3e07eaa308 [FIX] Regression in image resize helper (Fixes #2529)
Commit 57ad514b makes the function preserve the aspect ration of the
original picture. Error of mine because the expected behavior was to
lose it for kanban view purpose.

For backward compatibility sake, this commit will keep the old behavior
by default.
2014-10-27 17:55:08 +01:00
Christophe Matthieu 7ce3961693 [FIX] website: update jQuery.transfo lib + adapt code 2014-10-27 10:24:13 +01:00
Martin Trigaux d5235f7326 [IMP] website: google maps url
Use the protocol as the current page to avoid warning with mixed content (loading map in http inside an https page)
2014-10-23 12:38:31 +02:00
Fabien Meghazi aabec55125 [FIX] move google analytics js snippet at the bottom (Fixes #3222) 2014-10-21 17:14:23 +02:00
Denis Ledoux 08f222d707 [FIX] website: use dom element instead of jquery class to click input file
For some reasons, the browser will prevent to open the system file browser when clicking the input file with javascript using the jquery class element, but it works when using the standard js dom element.
2014-10-17 15:29:00 +02:00
Jeremy Kersten bc38c36503 [FIX] website: fix snippet banner, else when a video is dropped (using a div), the video is moved outside of the span col-md-6 by the editor and so become invisble 2014-10-16 22:15:35 +02:00
Denis Ledoux 639174bc53 [FIX] website: prevent editing contact address with qweb contact widget
Because, currently, it copy the whole address in the contact name. The address is therefore duplicated
2014-10-16 18:39:37 +02:00
Olivier Dony 8ec725e5e5 [FIX] website: editor: preserve label and color for link buttons targeting a page
When selecting a page target rather than a static
URL the style and label information were ignored/lost.
2014-10-14 16:27:43 +02:00
Christophe Matthieu f30ab4a990 [FIX] website.snippet: can't edit content of the banner. (+ better fix for backward compatibility) 2014-10-14 09:17:01 +02:00
Jeremy Kersten c8e14f301f [FIX] GeoIP - allow to specify the path to GeoIP in the server config.
--geoip_db='the_path'  which can be used via openerp.tool.config['geoip_database']
2014-10-13 16:47:12 +02:00
Olivier Dony 7439421ad2 [I18N] Update translations from Launchpad 8.0 branches 2014-10-08 17:52:25 +02:00
Fabien Meghazi 6c779e736a [FIX] dict notation for js reserved words in options (Fixes #2957) 2014-10-08 12:33:56 +02:00
Xavier Morel d5e3d121e3 [ADD] qweb: call directive's body
* __content__ can't be used in Python implementation because safe_eval, so use
  ``0`` from Python implementation instead
* remove postfix from t-call tests because due to implementation details all
  whitespace crap following a t-name is added to rendered template in Python
  impl, and don't want to normalize whitespace.
2014-10-06 19:13:45 +02:00
Xavier Morel 2ffcff8fa9 [ADD] qweb: handling of t-att=mapping
Changed render_att_att to return an iterable of pairs instead of a pair, and
dispatched t-att on whether its result is a Mapping.

Also changed qweb test runner so it uses ordereddict for JSON mapping in
params, otherwise iteration order (and thus order of attributes in output) is
unpredictable and results don't/can't match expectations (as both are
strings).

Note that this relies on JS implementation details wrt iteration order of
mappings. Tests would probably be somewhat less brittle if rendering output
was parsed to XML... if that's possible (?)
2014-10-06 19:13:44 +02:00
Denis Ledoux 6d509c0c6b [REF] website*: set spinner style in class, instead of inline
This fix is related to:
8298cf6510
51e399d9ac
9056c58cb8
2014-10-02 20:33:53 +02:00
Simon Lejeune 6e8b678667 [FIX] web: manual update of select2 lib to 3.5.1 version
The previous version of the lib seemed to be in an inconsistent state.
This fix the select2-offscreen class when the page is larger than
10 000px (this situation happens when importing a file with lots
of column).
2014-10-02 15:41:55 +02:00
Christophe Matthieu 5175cc34e3 [IMP] website: add snippet for floating picture 2014-10-02 12:39:49 +02:00
Olivier Dony c76297c4f8 [FIX] website: editor: ignore spurious changes for editable content
Changes to contentEditable or attributeEditable attributes
should not cause the corresponding section to be marked
as dirty (oe_dirty). This would otherwise cause an extra
editor save() for those, wrongly marking untouched
templates as `noupdate`, and possibly triggering access
right errors.
2014-10-02 10:27:30 +02:00
Christophe Matthieu f8d5a6727d [FIX] website: repair compatibility with 8.0rc1 carousel (banner) snippets that may be present in existing pages 2014-10-01 18:46:41 +02:00
Fabien Meghazi 5da813785e [FIX] Non printable character 0x07h in website's german .po (Fixes #2688) 2014-09-29 17:40:51 +02:00
Olivier Dony 6f64325225 [FIX] website: restore compatibility with RC1 templates for commit 77c41cc5cb 2014-09-29 10:18:11 +02:00
Christophe Matthieu 77c41cc5cb [FIX] website: 'Display Editor Bar on Website' group stopped working at commit a2ef044c47
The Edit button never appeared anymore for these users.
The idea was that they should see an edit button with
limited editing capabilities depending on their other
access rights.
For example, someone with only Sales Manager access and
'Display Editor Bar on Website'
would be able to edit online quotes from the website_quote
module, but not change the actual website pages or menus,
for instance.
2014-09-26 16:50:34 +02:00
Ajay Patel 8950153555 [FIX] website: prevent t-field on selection fields
This quick fix avoids a buggy behaviour in version 8.0 that could
confuse users.

A future version should implement properly selection fields in t-field.

(closes #2490)

(cherry picked from commit fe3cac30e4c5c132da1de02576d4aa325979ccd9)
2014-09-25 10:43:55 +02:00
Olivier Dony b74d830eb2 [I18N] Update translation templates with latest term changes 2014-09-23 19:13:50 +02:00
Olivier Dony 1c5b5e4290 [I18N] Update translations from Launchpad 8.0 branches
server: rev. 26 rev-id launchpad_translations_on_behalf_of_openerp-20140923072744-tkfs0yinu8msjh09
addons: rev. 39 rev-id launchpad_translations_on_behalf_of_openerp-20140923072715-5j7qvnuvmmb1zzy1
web: rev. 23 rev-id launchpad_translations_on_behalf_of_openerp-20140923072757-jvh9l6r2x0vfcyhb
2014-09-23 13:42:05 +02:00
Olivier Dony 53aa92d3c9 [I18N] Update translations from Launchpad branches 2014-09-18 11:47:16 +02:00
Fabien Meghazi 51477fb4f6 [IMP] Brought back /website/image route w/filename hinted in headers
Also added support for this route in widget Image#from_html()
2014-09-17 16:54:08 +02:00
Fabien Meghazi 8d08e06758 [FIX] Bundlification remains (Fixes #2463) 2014-09-17 14:50:12 +02:00
Fabien Meghazi cf3e517b58 [FIX] website.image_url() access rights 2014-09-16 21:32:37 +02:00