summaryrefslogtreecommitdiff
path: root/addons/website_form/models/models.py
AgeCommit message (Collapse)Author
2019-04-19[IMP] wesbite_form: add mechanism to allow default atttibutes to formJigar Patel
That way, it is possible to add the template, fields and success page to different type of form. Next commits will use what has been done in this commit. task-32212
2018-09-27[REF] *: adapt code to new related default behaviourAdrian Torres
This commit adapts the business code to changes introduced by the parent commit in order to keep the same behaviour as before. All readonly=False fields will have to be checked afterwards to confirm that the business case requires write access to the source field.
2018-09-21[IMP]website_*: Improvement in model descriptionNimesh Jethva
Purpose of this commit is to give description more "business oriented" because those descriptions appears in Odoo Studio which is supposed to be used by end users, not only by developers. Related Task ID : 37311
2018-08-24[REF] website*: revamp res_config_settings for websiteRomain Derie
Reorder res.config.settings for website Make website_id in no create in most view Revamp res.configsetting and view Form simplified Transform old 'useless' stored field for presentation by computed field. We can consider that if there are not key, feature is disable. Co-authored-by: rde-odoo Co-authored-by: jke-odoo
2018-06-11[FIX] website_form: metadata recordingDavid
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-07-07[MERGE] forward port branch saas-16 up to 0f2b2c4e2b9Christophe Simonis
2017-07-04[MERGE] forward port branch saas-15 up to 10cb34bcaccChristophe Simonis
2017-07-04[MERGE] forward port branch saas-14 up to 97258040d80Christophe Simonis
2017-07-04[MERGE] forward port branch 10.0 up to 657e3289032Christophe Simonis
2017-06-30[FIX] website_form: send email with subjectNicolas Martinelli
- Use the form builder to send an email - Customize the snippet to include the subject and the body - Send a mail => The subject is not included in the email This is because the subject is filtered out and considered as a blacklisted field. It happens because `mail.mail` inherits from `mail.message`. The field property `website_form_blacklisted` is set to: - `True` for `mail.mail` - `False` for `mail.message` Since we go through all inherited models, the property on `mail.mail` is overriden by the property on `mail.message`. It is actually not necessary to go through all inherited models, since in the case of `inherits`, we copy the fields of the inherited model to the target model. The check is simplified by only checking the fields of the current model. Based on work of @nla-odoo opw-748926
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-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-02-22[REF] base: refactor the API of model, field, constraint and relation reflectionRaphael Collet
Simplify the API as much as possible, and delegate all the implementation details to the models `ir.model`, `ir.model.fields`, `ir.model.constraint` and `ir.model.relation`.
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-09-02[FIX] all: remove external ids fakely from baseMartin Trigaux
Several modules defines records with the external ID `base.foo_bar` while it is created inside this module (typically menus and groups). While there is no technical reasons to do so but this may introduce issues: - these records will not be deleted during uninstall - if a language is loaded before the installation of the module, it won't be translated The uninstallation will only remove the records with an external id linked to this module (these would only be removed when removing base). Installing a language before the module will drop the translations not linked to an existing external id (as it can not be resolved). This commit correct all the external ids tagged as from base or other incorrect modules.
2016-08-20[MERGE] forward port branch saas-12 up to 9ad5f26Christophe Simonis
2016-08-11[MIG] complete migration of special methods like `init`Raphael Collet
2016-08-10[IMP] various: use odoo for imports instead of openerp and update class namesThibault Delavallée
2016-08-09[FIX] various: fix fields index parameter in new API still called selectThibault Delavallée
2015-12-01[MERGE] forward port of branch 9.0 up to 00ee6e7bMartin 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-17[FIX] EnglishMartin Trigaux
Typos, unclear, rephrase, harmonise terms. Thanks Transifex reporters!
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.