Commit Graph

55 Commits

Author SHA1 Message Date
Jeremy Kersten 8be29c33fa [IMP] website_crm: allow medium_id and section_id field to be overwrited by form 2015-02-05 09:50:36 +01:00
Yannick Tivisse ecb4638a70 [FIX] website_crm: 2 fixes commit, yeah
- admin is not follower anymore of all leads created through the
contact form. The famous no_subscribe key is added in the context
for that purpose.
- fixed medium and sales_team of the contact form leads. A bad
xml_id + bad use of get_object_reference + bad use of try/catch
prevented from having any of those. It now works correctly
even if the medium and/or sales team has been deleted.

Courtesy of Use Merge: Yannick Tivisse.
Reviewed by Use Merge: Thibault Delavallée.

I think this commit message is waaaay longer than the commit
itself, although I think I will never beat Olivier or
Martin. Those two are able to write 3 pages of commit messages
when doing a one-line fix. Well, this fix can be tricky
to understand but, hey, I am not writing stupid things just to
gain some characters. Not my style.

Have a good day.
2015-01-12 10:17:31 +01:00
Christophe Simonis 3e2eca45cb [FIX] website_crm: contactus: do not polute lead creation values 2014-11-21 15:05:48 +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 0f6146ff2f [FIX] website_crm: remove useless request from params, anyway it's a global var 2014-10-15 17:54:25 +02:00
Jeremy Kersten 651d5748e3 [IMP] website_crm: allow the response from crm thanks page to be overridable 2014-10-06 14:34:29 +02:00
Jeremy Kersten 1a9f4471b6 [FIX] website_hr_recruitement: typo 2014-09-15 15:50:16 +02:00
Jeremy Kersten e049e56b3f [IMP] website_crm: keep the new id from the created lead to allow another function which override this one to get the new lead. 2014-09-12 15:58:59 +02:00
Christophe Simonis fd4fd35e32 [MERGE] forward port of branch saas-5 up to e4cb520 2014-07-30 20:52:14 +02:00
Christophe Simonis e4cb5202a0 [MERGE] forward port of branch saas-4 up to fa07bc8 2014-07-30 20:30:14 +02:00
Jeremy Kersten d63ef168a8 [IMP] website_crm: allow to specify a view_from and view_callback for a form. That will allow to redirect the user on another thanks page depending form the form. We add also a preRenderThanks method with allow to updates the values used by the thanks page rendering. 2014-07-28 14:41:48 +02:00
Olivier Dony ef53a831c6 [MERGE] Forward-port saas-5 up to a5f7891 2014-07-23 16:58:00 +02:00
Jeremy Kersten 5ae0b900f7 [IMP] website_crm - add kwargs into create_lead function. That allow to get some fields which will be already join in the description from values to custom the behavior from create_lead function 2014-07-23 15:43:59 +02:00
Denis Ledoux a5f7891b68 [MERGE] forward port of branch saas-4 up to 5739aebfb1 2014-07-23 13:18:30 +02:00
Jeremy Kersten a0ebd2c88e [IMP] website_crm: allow creation of the lead to be overrided. That avoid people to rewrite all the routine of the form if they want to change the default behavior at lead creation when form is submitted. 2014-07-23 11:15:07 +02:00
Christophe Simonis f654a7719b [MERGE] forward port of branch saas-5 up to 73d39a0 2014-07-10 22:49:53 +02:00
Christophe Matthieu 6183fb105e [FIX] website_crm: the path '/crm/contactus' have an error if you does'nt use the website contact form or if you reload the page, insead of redirect to contact form. 2014-07-09 10:45:35 +02:00
Jeremy Kersten faba7cd5aa [IMP] Crm: Add tracking mixin to manage utm campaign and add this mixin to mass_mailing, crm_lead and sale_order 2014-07-08 17:33:00 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Olivier Dony d9cda97cf4 [MERGE] Forward-port saas-4 up to 5ceded9 2014-07-05 01:28:19 +02:00
Olivier Dony 5ceded9d69 [MERGE] Forward-port saas-3 up to 4fa30f5 2014-07-05 01:04:19 +02:00
Jeremy Kersten b647795d73 [IMP] website_crm - cherry pick from 29ad0216e3 - Improve contact_us to fill in all fields from the model crm_lead posted in the form except a blacklist of fields. 2014-07-03 22:49:34 +02:00
Jeremy Kersten 72678c6551 [IMP] website_crm - cherry pick from 29ad0216e3 - Improve contact_us to fill in all fields from the model crm_lead posted in the form except a blacklist of fields. 2014-07-03 21:39:19 +02:00
Jeremy Kersten 3214dde029 [IMP] website_crm - cherry pick from 29ad0216e3 - Improve contact_us to fill in all fields from the model crm_lead posted in the form except a blacklist of fields. 2014-07-03 21:33:53 +02:00
Christophe Matthieu afc495a99e [FIX] website_crm: when there is an error in required field, user_id=False in the controller overwrite the user_id browse record to display the contact form template. 2014-06-06 09:56:40 +02:00
Christophe Simonis a756b82372 [MERGE] forward port of branch saas-4 up to revid bb26dea 2014-05-20 20:19:55 +02:00
Fabien Meghazi 35efb5bf5f [MERGE] upstream 2014-05-19 12:12:46 +02:00
Fabien Meghazi e6e5ac048b [FIX] broken routes for pages 2014-05-14 12:11:24 +02:00
Thibault Delavallée a1e70ea0a4 [IMP] website_crm, website_sale: have only one salesteam to handle ecommerce and contact form.
The xml_id is now based on website.
2014-05-13 12:09:24 +02:00
Fabien Meghazi 8eed143112 [IMP] Invert multilang logic in route decorator. True by default, can be set to False explicitlty 2014-05-13 11:35:45 +02:00
Xavier Morel cc9d056711 [FIX] website_crm, website_event_sale: remove stray prints
also do some trivial cleanup/simplification of website_crm while at it:

* Initialize a dict directly via literal
* Use straightforward dict copy instead of whatever that convoluted crap was
* Use gencomp for set creation
* Lift a pair of keysets to the original dict creation
2014-05-13 09:56:28 +02:00
chm@openerp.com 0e062e61b2 [IMP] website_crm: designer can add input type file in form view. All files create an ir.attachment linked with the created lead
bzr revid: chm@openerp.com-20140408144110-4j9aljn2kgjt0adk
2014-04-08 16:41:10 +02:00
chm@openerp.com 697b72befc [IMP] website_crm: prefill form with query strig value
bzr revid: chm@openerp.com-20140311102946-l4razug7j701mska
2014-03-11 11:29:46 +01:00
chm@openerp.com b77521ae7f [FIX] website_crm: update post value and not values object
bzr revid: chm@openerp.com-20140310164204-q0nm93jmq10aa20x
2014-03-10 17:42:04 +01:00
chm@openerp.com 9aa0baf7dd website_crm: contact form improvement
get argument are processed and set into input fields + hidden fields
save some datas from http headers
controller should save all the submitted vars

bzr revid: chm@openerp.com-20140310162626-libizyxlycvuwo7h
2014-03-10 17:26:26 +01:00
Denis Ledoux 18532330d4 [FIX] *: replace urllib calls by werkzeug calls, as werkzeug handles utf-8 encoding while urllib doesnt
bzr revid: dle@openerp.com-20140130112408-8pdju26jnkyxvlw2
2014-01-30 12:24:08 +01:00
Denis Ledoux 905e92d81c [FIX] website_crm: contact us form create lead without salesteam and with channel 'Website'
No sales team is assigned because:
1. This is not cleary explained anywhere that the sales team which will have the lead should have "Website" in its code.
2. Assigning the leads coming from the website to one specific sales team is not enough generic and does not cover all cases. For instance, assignation can be done on the customer country/language, not that it comes from the website.
3. The actual way to filter leads coming from the site is to assign the channel "Website" to the lead

bzr revid: dle@openerp.com-20140129134114-686ytvsck8osrzr9
2014-01-29 14:41:14 +01:00
Christophe Matthieu 33eeff4448 [IMP] website_crm, website_sale: add a Website sale team and new lead and order to this sale team
[FIX] website_sale: remove auto assignation to administrator from website lead and order

bzr revid: chm@openerp.com-20140124114224-w80wd2ea0bx20ldk
2014-01-24 12:42:24 +01:00
Fabien Meghazi 14bb6060d7 [REM] Removed @website.route() decorator
Need trunk-website-al Rev#5151

bzr revid: fme@openerp.com-20140120153733-ve3dn2kwvha7n3yl
2014-01-20 16:37:33 +01:00
Christophe Matthieu 8d26804796 [FIX] website_crm: contact-us form
bzr revid: chm@openerp.com-20140107145400-32j6hgx8176llwxw
2014-01-07 15:54:00 +01:00
Thibault Delavallée fabe8d7208 [IMP] website_crm
- added error management in contact us form, using a new error argument in the view;
- improved thanks template, to display more like contactus with company description;
- extracted company description in website to be able to re-use it in thanks template
- added optional company_name in contactus form, used to flil partner_name in lead

bzr revid: tde@openerp.com-20131002114818-y369gu6u32uxry1m
2013-10-02 13:48:18 +02:00
Thibault Delavallée 726cda367e [FIX] website and all derived addons: fixed imports broken when moving
website.py to models/ directory in website (revision 9491 revid:xmo@openerp.com-20130930145358-qh7xdicgg21prsk4).

bzr revid: tde@openerp.com-20131001085739-hoczgpqrv2nrr6lb
2013-10-01 10:57:39 +02:00
Fabien Meghazi ad42063349 [IMP] website_crm multilang
bzr revid: fme@openerp.com-20130926145845-pym8hr4atb6el9kn
2013-09-26 16:58:45 +02:00
Fabien Meghazi 0e82448ed8 [IMP] Refactor code + WIP multiwebsite
bzr revid: fme@openerp.com-20130910134133-esdgbhbtt8eguapk
2013-09-10 15:41:33 +02:00
Fabien Meghazi d2e90f0621 [BREAK] request.context everywhere
some stuff broken will be repaired by chm

bzr revid: fme@openerp.com-20130905151803-7d17us7rn9yubnb2
2013-09-05 17:18:03 +02:00
Fabien Meghazi 6621c1275b [IMP] Refactoring using `webcontext`
bzr revid: fme@openerp.com-20130904153236-gc78bs8pxeprktkr
2013-09-04 17:32:36 +02:00
Christophe Matthieu 5b83f20086 [IMP] website_crm: remove non used code
bzr revid: chm@openerp.com-20130830140858-hqku5ync7gxxzcb2
2013-08-30 16:08:58 +02:00
Christophe Matthieu dec8c40c11 [IMP] rename website_google_map; add demo for event
bzr revid: chm@openerp.com-20130830134026-88luqb16o6ny6voy
2013-08-30 15:40:26 +02:00
Christophe Matthieu 26fb3758e7 [IMP] website_crm_partner_assign: new module for display worldmap for list of partner. Call the template in an iframe (with get options: partner_id, width, height, partner_url).
bzr revid: chm@openerp.com-20130827102353-htupokzt9nmaiyeu
2013-08-27 12:23:53 +02:00
Fabien Meghazi af08367290 [ADD] Added website osv object + refactoring
bzr revid: fme@openerp.com-20130805161600-abms35e0vk47f3i1
2013-08-05 18:16:00 +02:00