summaryrefslogtreecommitdiff
path: root/addons/website_form/controllers
AgeCommit message (Collapse)Author
2019-04-19[IMP] wesbite_form: change custom fields title for mail.mailJigar Patel
task-32212
2018-11-15[MERGE] forward port branch 11.0 up to 468dab6748aChristophe Simonis
2018-11-09[FIX] website_form: custom file -> mail attachmentsNicolas Lempereur
There was a code that on: - a form that sent a mail - with a custom file field would set the file as attachments, but the code was dead because of a typo in `if` statement order. opw-1906883 closes #28525
2018-05-23[MERGE] forward port branch 11.0 up to 02ee3fd88efChristophe Simonis
2018-05-23[MERGE] forward port branch saas-15 up to 1b81f1a5c9dChristophe Simonis
2018-05-23[MERGE] forward port branch 10.0 up to 682ae1cc64eChristophe Simonis
2018-05-23[FIX] website_form: set meta fieldDavid
Before this commit, if you enable website_form_enable_metadata, that will crash with a "KeyError: 'meta'" This commit closes #24848
2018-03-07[MERGE] forward port branch 11.0 up to d67b410dfcdChristophe Simonis
2018-03-07[MERGE] forward port branch saas-15 up to cb87388d727Christophe Simonis
2018-03-06[FIX] website_form: public user can send attachmentChristophe Matthieu
Issue: An additional information page is part of our shop process to allow additional information to be submitted. If this form is left blank, then selecting the next button allows the process to continue. However, if data is added to the form the form freezes and the process will not continue when 'next' is selected. Why: Public user can not read the field 'model' of 'ir.model' (to save the attachments) opw-1818592
2017-11-27[MOV] base: move ir_* models into models/Thibault Delavallée
2017-10-25[IMP] website_form: name of submitted attachmentsDeep Patel
In case of custom field 'upload file', the attachement name will be the technical name of the input tag of the form (aka 'attachments'). It is more user friendly to have the name of the uploaded file.
2017-09-14[FIX] website_form: custom field thing blows up in P3Xavier Morel
Custory reading seems to denote that field names are probably already text in the normal case, and thus should not need decoding? It only blows up in a tour so...
2017-08-20[FIX] P3: remove pycompat.{keys,items,values} helpersOlivier Dony
Now that we're closer to switching to P3 for good, these helpers have outlived their usefulness, and mostly add noise. All remaining dict.iter*() or dict.view*() must be converted to the normal keys(), values() or items() calls. Whenever the result is likely to be used for more than the scope of a loop, or when the dict needs to be modified during iteration, the calls must be wrapped in a ``list()``, to protect the new P3 semantics. Those cases are very exceptional. Also removed some dead code or improved the API to remove unnecessary conversions.
2017-05-16[MERGE] Forward-port saas-16 up to 5afe894f440eff3b58134d14fa7c9b43b19fe88bOlivier Dony
2017-05-16[MERGE] Forward-port saas-15 up to 878fbc75ff9ebade92f43748500e64350367a824Olivier Dony
2017-05-16[MERGE] Forward-port 10.0 up to 1545995b393a1d347c6c1988da03dd1c6f1ea037Olivier Dony
2017-05-10[FIX] P3: list -> iterable builtins (#16811)xmo-odoo
In Python 3: * various builtins and dict methods were changed to return view/iterable objects rather than lists * and the separate Python 2 view/iterable builtins and methods were removed altogether This is problematic when using these items as list (which the happens repeatedly in Odoo), but more viciously when iterating *multiple times* over them (which also happens, which I've messed up multiple times while writing this, and which is a pain to debug even when you've just created the issue). Convert all code using these to semantics-matching cross-version helper functions to get the LCD behaviour between P2 and P3, and forbid the builtins via lint. issue #8530
2017-05-09[FIX] website_form: do not subscribe administrator to all records from ↵Thibault Delavallée
website form As administrator is used to create all records from website form he is also put into followers. This creates a lot of unnecessary notifications and/or emails depending on the system configuration. Using the magic context key this behavior is modified. Administrator will not follow every records created through the website form anymore.
2017-04-28[FIX] Various P3-related import changesxmo-odoo
* LDAP import: python-ldap is not python3-compatible, pyldap is Warning: only supported from debian Stretch (current testing)? https://packages.debian.org/search?searchon=names&keywords=pyldap * implicitly relative imports * imports of moved or removed stdlib modules issue #8530
2017-04-11[#8530] convert exception handlers to except..as syntaxXavier Morel
Futurize fixers: * lib2to3.fixes.fix_except
2017-03-17[MERGE] forward port branch saas-15 up to c8f01e3b62fChristophe Simonis
2017-03-15[FIX] website_sale: fix extra-stepDenis Vermylen
truly fix 328a5a7ea393b8a3cc60ca36b2b41d606e2110e8 sudo() was applied at the wrong step. mea culpa
2017-03-10[IMP] website_form, website_hr_recruitment: improve thankyou pageJeremy Kersten
Improve thank page after the application to a job. Stop duplicate Magic field, using global fields Add helper method on website to retreive the last created record
2017-01-20[FIX] base: restrict read access to `ir.model` and `ir.model.fields` to ↵Raphael Collet
employees
2017-01-17[FIX] base: access rights of `ir.model` and `ir.model.fields`Raphael Collet
This partially reverts commits 5d746d0ac663232d656bb57e82fec290bb5d82fd and 73de86c7682a1433da7a755c3092dcb38fba3fd8. The tightening of access rights was too strong: regular users need to be able to read models and fields (to create an email templace, for instance.) [FIX] ir_values: in `get_actions`, exclude field `code`
2017-01-03[IMP] base, *: tighten `ir.model` access rightsRaphael Collet
Remove unrestricted "read" access. To make code internally using `ir.model` work, add a private method `_get` on `ir.model` to retrieve the record corresponding to a model name, without access rights issue. Change signature of method `get_authorized_fields` to make it use a model name instead of a model id. This removes the necessity of a search on `ir.model`.
2016-08-20[MERGE] forward port branch saas-12 up to 9ad5f26Christophe Simonis
2016-08-20[MERGE] forward port branch saas-11 up to 3a2147dChristophe Simonis
2016-08-19[MERGE] forward port branch 9.0 up to 58cbcbaChristophe Simonis
2016-08-17[FIX] website_form: traceback when sending an attachmentNicolas Martinelli
The form builder offers the possibility to add a "Custom File Upload" field. When the user clicks on "Send", an error occurs ("An error has occured, the form has not been sent."). This is because we try to send a mail linked to "mail.mail", which doesn't make sense. The case was actually taken into account in the code, there was just an oversight in the code. opw-684040
2016-08-10[IMP] various: use odoo for imports instead of openerp and update class namesThibault Delavallée
2016-07-04[MERGE] forward port of branch saas-11 up to d4d09dfChristophe Simonis
2016-06-30[FIX] http, website_form: preserve form input values orderDenis Ledoux
By default, werkzeug doesn't preserve the order of the parameters sent to routes. As stated in the werkzeug documentation: ``` parameter_storage_class the class to use for args and form. The default is an ImmutableMultiDict which supports multiple values per key. alternatively it makes sense to use an ImmutableOrderedMultiDict which preserves order or a ImmutableDict which is the fastest but only remembers the last key. It is also possible to use mutable structures, but this is not recommended. New in version 0.6. ``` For some of our use cases, it makes sense to keep the order of the route parameters. e.g. In the website builder, when building a form with a bunch of inputs values that will be concatened in a lead note, the user expects the answer to be displayed in the same order than the form inputs. This change is seen as a bit risky as it could lead to performances issues in the http routes processing, and this is the reason we do not merge this in stable 9.0 at the moment. If needed, it could be back ported later to 9.0, after several weeks/months of testing in this release(saas-10 atm). opw-677508
2016-06-14[IMP] base ir.qweb: compile template (and use ast) to improve rendering speedChristophe Matthieu
* The compiled templates are cached per user, lang, inherit context values * ir.ui.fields: attributes method return an dict, and record_to_html return only the content value of the field * all rendered text use build_text and all attributes use build_attribute * t-esc-options is removed and replace by format_value method * AssetsBundle receive the list files and remains
2016-04-21[MERGE] Forward-port 9.0 up to 74d8cbc190d1a93ef699ee254b1efbc88d2a1e26Olivier Dony
2016-04-20[FIX] website_form: handle date & datetimeDenis Ledoux
Adding date & datetime inputs in the website form builder couldn't work, because the posted values for these input types were not treated at all, and they were not in the format the date/datetime were stored in database. opw-672674
2015-12-22[FIX] typo, EnglishMartin Trigaux
2015-11-30[ADD] form builder whitelisting: ACL checkXavier Morel
Only users who can edit the website's structure should be allowed to whitelist fields.
2015-11-30[IMP] form builder fields blacklistingXavier Morel
* blacklist all fields by default * don't use blacklist in get_authorized_fields which is called to see if a field can be added to a form, instead only use it afterwards to see if the field can be written to by the formbuilder. That way formbuilder can whitelist fields which are actually added to forms on-demand resulting in a more secure interaction
2015-11-18[IMP] website_form: don't remove newlineNicolas Lempereur
In some instance, the mail content of a sent form would only be text formatted. This could lead to a message with no newline, thus making it illegible. This fix has to be ugly since body_html field of a mail.mail is of type text.
2015-11-18[FIX] website_form: be consistent when concatenating stringNicolas Lempereur
In the form builder, custom field name could contain special char but the get key values are of the type str whilst the value are in unicode type. Thus when concatenating them, one should be converted so they are uniform and don't lead to an encoding error. opw-656745
2015-09-15[IMP] website_form: various improvementsDavid Monjoie
- Fixed the module name and category in manifest - Fixed website_form_blacklisted being ignored - Unauthorized readonly and magic fields - Reset the form on successfull submit - Added missing date field - Added date and datetime validation
2015-08-26[ADD] website_form: generic form controllerDavid Monjoie
Contains a new ajax post function that comes from mdo's original code and that I was not able to get rid of.