Commit Graph
40 Commits
Author SHA1 Message Date
Christophe Simonis 4e9f0f617c [MERGE] forward port branch saas-17 up to 983aafc3d57 2017-09-14 17:48:01 +02:00
Xavier Morel e3ae92e35c [FIX] website_form_editor: don't duplicate email_to field
website_form_editor does not depend on project but apparently just
assumes it's been installed and the form construction tour uses it to
change the "action" selection to issues then (back to?) sending an
email.

This ends up triggering two additional "change" events on the email
option, which adds a new email_to field every time, blocks the
submission of the form (since they're all required and only one is
filled) and breaks the tour.

On "toggle_email_to", only add an email_to field if it's not already
present.
2017-09-14 15:38:22 +02:00
Xavier Morel c216ccda98 [FIX] website_form_editor: don't duplicate email_to field
website_form_editor does not depend on project but apparently just
assumes it's been installed and the form construction tour uses it to
change the "action" selection to issues then (back to?) sending an
email.

This ends up triggering two additional "change" events on the email
option, which adds a new email_to field every time, blocks the
submission of the form (since they're all required and only one is
filled) and breaks the tour.

On "toggle_email_to", only add an email_to field if it's not already
present.
2017-09-14 13:28:18 +02:00
qsm-odoo 1085fdd8be [REF] website_*: adapt to complete website refactoring
* calendar, crm_score, enterprise, form_editor, helpdesk, subscription,
  version

Adaptation to https://github.com/odoo/odoo/commit/2972976962617d4b8a0113bae58c640ab41cdff8
2017-08-16 11:14:56 +02:00
Kishan Gajjar e1eb0c048e [IMP] website_*: suggest installation of form editor in snippet menu
* enterprise, form_editor

See commit https://github.com/odoo/odoo/commit/aaeef14903d4a3f359fcd6dd61a4f8ee41c947a4
2017-07-04 12:02:46 +02:00
dbh 7f65942e51 [IMP] website_form_editor: fields' labels are now left-aligned in xs 2017-06-28 14:54:16 +02:00
dbh a6e95c3acb [IMP] website_form_editor: rename option label
'Add a model field' -> 'Add an existing field'
2017-06-28 14:53:43 +02:00
dbh 03c673a735 [IMP] website_form_editor: improve thank you page field
- Suggest website pages when setting the value
- Label should not be bold
2017-06-28 14:52:07 +02:00
xmo-odoo abb92cb854 [FIX] implicitly relative imports 2017-04-28 09:07:28 +02:00
Géry Debongnie 7203e57608 [REF] *: simplify our rpc system
In web. we changed the way rpc works, this commit is necessary to adapt
all calls to the new API.
2017-04-11 19:42:23 +02:00
Géry Debongnie 5c6818eecf [REF] *: remove calls to old rpc methods
the performModelRPC methos has been deprecated, this commit replaces all
call to that method by calls to the new _rpc method.
2017-04-11 19:42:23 +02:00
Aaron Bohy b82cef84b9 [FIX] website_form_editor: this.rpc not available
... in the tour environment. We have to use ajax instead, with
the rpc.query helper.
2017-04-11 19:42:23 +02:00
Aaron Bohy 0f844ed483 [FIX] website_form_editor: search_read result
The new RPC API calls the '/web/dataset/search_read' route for a
search_read instead of '/web/dataset/call_kw/model/method'. The
first one returns an object with keys count and records, whereas
the other one only returns the records.

When converting the code in website_form_editor to this new API,
one forgot to update the handling of the RPC result.
2017-04-11 19:42:23 +02:00
Géry Debongnie ead78e5c2c [FIX] website_form_editor: correct ajax rpc calls
The website_form_editor code was adapted to the new rpc methods, but
this concerns class that do not have the rpc method.  We use the
callback argument to specify a given ajax method
2017-04-11 19:42:23 +02:00
Géry Debongnie 3565a3f44a [REF] *: remove many performModelRPC calls
The performModelRPC method has been deprecated, and replaced by call to
the this.rpc method.
2017-04-11 19:42:23 +02:00
Christophe Matthieu 69bf1c2e38 [REF] web,*: remove 'web.model'
Use performModelRPC instead of Model object or use ajax if performModelRPC
is not available
nb: EventDispatcherMixin include now the custom_events managment instead
of widget[REMOVE] web.dataModel
2017-04-11 19:42:23 +02:00
Martin Geubelle 78104ec04d [IMP] *: clean technical views (usability)
This closes the task #30074.
2017-01-04 12:24:07 +01:00
Raphael Collet 8a01fae314 [IMP] website_form_editor: tighten ir.model access rights
Adapt client code to signature of method `get_authorized_fields`.
2017-01-03 19:19:55 +01:00
Martin Trigaux bee86d5aba [FIX] website_form_editor: correct invalid html tag
span is not autoclosing
This triggers warning on Transifex validator
2016-09-07 16:20:39 +02:00
Olivier Dony 9c20c84d24 [IMP] *: rename manifest files for v10 naming convention 2016-09-05 12:39:50 +02:00
Christophe Matthieu faebb4a1e2 [IMP] website_form_editor: convert test to web_tour 2016-09-02 17:38:12 +01:00
Jainik Patel d4e8529721 [ADD] Add a new website apps icon. 2016-08-18 16:45:54 +02:00
Jitendra Prajapati 13e0cacc63 [MIG] website_form_editor: Migrate to new api 2016-08-02 13:18:57 +02:00
Jitendra Prajapati 4a96622753 [MOV] website_form_editor: Re-organized the directory structure according to new api guidelines. 2016-08-02 13:18:57 +02:00
Christophe Simonis fac734175b [MERGE] forward port of branch saas-9 up to 6154a16 2016-05-17 14:45:37 +02:00
Christophe Simonis 926fbe15ce [MERGE] forward port of branch 9.0 up to 4221f67 2016-05-17 14:44:17 +02:00
Christophe Matthieu a97bf1e3f1 [FIX] website_form_editor: use domain field for m2m form field
Issue: opw-672737
2016-05-17 08:25:09 +02:00
Jeremy Kersten bba692c5b6 [MERGE] forward port of branch saas-9 up to 93aea2c6526e3ad7d27686eaca9ffbe2e6d30e19
Conflicts:
	project_timesheet_synchro/project_timesheet.py
	sale_contract/views/sale_contract_view.xml
2016-04-27 12:13:54 +02:00
Jeremy Kersten 2b56d22f22 [MERGE] forward port of branch 9.0 up to 0dc0d6b7e51537507f80be988c25fdabeafe68f7
Conflicts:
	website_crm_score/models/sales_team.py
2016-04-27 11:45:43 +02:00
David Monjoie de74cd19de [FIX] website_form_editor: prevent users from crazy clicking
Enterprise part of 02fd74a3fa.
2016-04-26 12:12:40 +02:00
qsm-odoo b67ee80a6c [REF] web*: tour update
Selector changes + No need to open the snippet panel anymore.
2016-02-24 15:16:05 +01:00
Martin Trigaux a0eea9a1a6 [MERGE] Forward port of branch saas-7 up to cf7f1045cb 2015-12-21 14:49:45 +01:00
Jeremy Kersten c60b3e46f2 [IMP] website_form_editor: add field blacklisted in ir.model/fields form 2015-12-18 17:34:09 +01:00
Xavier Morel 09ec639661 [ADD] form_editor: whitelisting of fields
Automatically whitelist fields added to a website_form through the form
editor.

Ideally fields *removed* from a form should be removed from the
whitelist, but since we don't/can't keep track of the website's form,
there's no way to know if a field is needed by multiple forms and thus
no way to remove them.

Plus that would require way more source-tracking than just whitelisting
all the form's fields, I don't know if snippet widgets can track the
removal of elements from a page (easily anyway).
2015-12-01 15:59:31 +01:00
Christophe Simonis 19d9c57512 [FIX] website_form_editor: whitelist fields for formbuilder
Since odoo/odoo@2afb5b43ef, fields should
be whitelisted explictly.
2015-12-01 15:25:51 +01:00
David Monjoie 6f77a29e2e [FIX] website_form_editor: relational fields search_read
The fields were mistaken for the domain since 16972b0.
Added new tour step trying to add a relational field.
Also fixed wrong tour step labels.
2015-09-25 13:45:04 +02:00
David Monjoie 24a192b1f5 [IMP] website_form_editor: various improvements
- Prevent user from removing the Submit button
- Renamed Success Page into Thank You Page in the modal
- Destroy the snippet if user closes the very first configuration modal
- Replaced display_name field by subject in tour because the former was readonly
- Changed "Editor" to "Builder" in module name
- Removed field domain, need to fix it later
- Removed lingering console.log
- Require recipient e-mail
- Added missing Date field
2015-09-15 14:03:50 +02:00
Olivier Dony 468f4b9037 [LEGAL] Set Enterprise license for Odoo EE apps 2015-09-08 18:18:56 +02:00
David Monjoie 46bda10e26 [IMP] website_form_builder: tour message when error is due to clean_for_save 2015-09-01 14:16:05 +02:00
David Monjoie 6815b491d6 [ADD] website_form_editor: editor for website_form forms
Contains the new ajax post function introduced by e8d58dd
in the community version of web that comes from mdo's
original code and that I was not able to get rid of.
2015-08-27 09:11:20 +02:00