Commit Graph

609 Commits

Author SHA1 Message Date
Christophe Simonis 06246bac9a [FIX] crm: set the oldname of field crm.lead.medium_id 2014-11-21 15:03:12 +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 2f1814088f [IMP] crm: Use cookies to save utm instead of session. 2014-09-09 16:51:35 +02:00
Jeremy Kersten a052a72c8a [REF] crm analytics: refactor - lint 2014-07-29 17:10:03 +02:00
Jeremy Kersten 053d32d817 [IMP] crm: Add Campaign source and medium in group by + fix a bug when name_search return a tuple and not only the id. 2014-07-29 14:46:45 +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
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Prashant Panchal (OpenERP) 138ffedbf0 [MERGE]: Merged with addons 2014-05-09 18:47:56 +05:30
Ravi Gadhia 78204703b0 [IMP] split crm_case_section + create alias from lead 2014-05-02 14:27:50 +05:30
Ravi Gadhia 3bfdd859e2 Merge with trunk 2014-05-01 13:12:03 +05:30
Randhir Mayatra rma-openerp 2f5250edfa [IMP] improve inherited crm_case_section 2014-04-23 15:17:33 +05:30
Randhir Mayatra rma-openerp 579d261468 [IMP] solve yml issues 2014-04-22 17:20:49 +05:30
Randhir Mayatra rma-openerp 27ee024847 [IMP] optimize code 2014-04-22 12:53:03 +05:30
Randhir Mayatra rma-openerp 3bc6bf2d99 [IMP] add demo data files 2014-04-21 16:40:57 +05:30
Randhir Mayatra rma-openerp 9bb0e6f30e [IMP] improve demo data and menu items 2014-04-21 15:32:12 +05:30
Ravish (Open ERP) 0ee42746df [update] move alias for default lead in to crm 2014-04-02 12:41:23 +05:30
Ravish (Open ERP) 7699504d62 [Add new sale_team module] 2014-03-28 15:28:35 +05:30
Mahendra Barad (OpenERP) da5f8b26df [Merge]with trunk
bzr revid: mba@tinyerp.com-20140228131855-obhatiecnzv1bgqu
2014-02-28 18:48:55 +05:30
Mahendra Barad (OpenERP) 3ed1c1b3a6 [IMP]improved priority and remove unused methods
bzr revid: mba@tinyerp.com-20140214114937-uzli19c8anu40lgn
2014-02-14 17:19:37 +05:30
Mahendra Barad (OpenERP) 0707b77f63 [Merge]Trunk
bzr revid: mba@tinyerp.com-20140214071943-t2wnxm8vmtxcejsc
2014-02-14 12:49:43 +05:30
Gery Debongnie e9bc12aab1 [IMP] changes the sparkline graph in the sales team/kanban view (opportunities) so that it uses date_deadline instead of create_date (addon crm)
bzr revid: ged@openerp.com-20140211110936-531vgazu3lhvlwj2
2014-02-11 12:09:36 +01:00
Gery Debongnie 7be15dabaa [FIX] corrects an interesting bug, caused by datetime in UTC and GMT, then string formatting, causing incorrect information to display in the sales team screen (addon crm.py)
bzr revid: ged@openerp.com-20140210153453-y0mtvs0mnpm1e4e1
2014-02-10 16:34:53 +01:00
Anael Closson 10dabcfd51 [FIX] datetime.strptime only accepts date format when used with tools.DEFAULT_SERVER_DATE_FORMAT as parameter, but both date and datetime fields can be used as parameters.
bzr revid: acl@openerp.com-20140205163313-xcob4funucvsfdmx
2014-02-05 17:33:13 +01:00
Mahendra Barad (OpenERP) 102086302f [IMP]improved value of demo data and selection field
bzr revid: mba@tinyerp.com-20140108104029-rrdw8t2skrxs7yzj
2014-01-08 16:10:29 +05:30
Mahendra Barad (OpenERP) 8eb7fb82de [IMP]added the legend widget for priority and kanban state
bzr revid: mba@tinyerp.com-20140107131134-fho22izhbw86w1w5
2014-01-07 18:41:34 +05:30
Christophe Simonis bb1e256f5b [MERGE] forward port of branch saas-2 up to revid 9010 dle@openerp.com-20131125143003-vjtzj1c5051pdnk3
bzr revid: chs@openerp.com-20131125150054-b135qshkx6icakgk
2013-11-25 16:00:54 +01:00
Thibault Delavallée d1c5c84a85 [MERGE] Sync with saas-2
bzr revid: tde@openerp.com-20131104105827-gbpsn66twnon20rw
2013-11-04 11:58:27 +01:00
Olivier Dony 0354391b10 [IMP] crm: defaults can be literals
bzr revid: odo@openerp.com-20131023163029-z3q0ve4jykanibkv
2013-10-23 18:30:29 +02:00
Thibault Delavallée 8ce54029cf [REV] crm: reverted most changes about stages for this branch.
We keep fold, because it has a meaning in kanban view, and is kind of
'drop' stage, for won / lost / cancel / dead.

New stage is now the stage with the lower sequence, not necessarily the
stage with sequence 1. Note that this could break the _track because it
checks for stages with sequence <= 1; however with OpenERP values it
works fine. In some specific stage configuration, some subtypes could
not be tracked precisely.

bzr revid: tde@openerp.com-20131023100429-a3vfxi5zkn18v6qq
2013-10-23 12:04:29 +02:00
Thibault Delavallée 878ceca988 [REV] stages: removed bar_fold and bar_color fields.
After some experiments, having colors does not seem to give an
usable result on statusbar widget. Indeed we need to have the
current stage highlited, and maybe something to tell that some
stages have a special meaning and/or are the end of the pipe.
The closed field already gives that meaning.

Moreover the issue with the statusbar widget is that it indicates
state and action. Having both dimensions with colors / icons
is quite difficult to understand. We therefore stand on a simpler
version of the widget, only with stages and the current stage
highlighted.

bzr revid: tde@openerp.com-20131021104912-8ybhw0svdoghheh3
2013-10-21 12:49:12 +02:00
Thibault Delavallée 6c54232c98 [IMP] Stage/State update part 2
- stages: added some fields
-- closed: indicates whether this stage close the working process, for
example task ended, lead lost, applicant hired
-- bar_fold: whether to hide the state in the statusbar; this is different
from fold that is used for kanban views. Viewing a pipe or a specific
record are effectively different things and should use different fields.
-- bar_color: field to customize the stage in the statusbar (still WIP)

- impacted addons: crm, project, project_issue, hr_recruitment
- removed 'closed' addition in project_mrp as this is now in base project
module

bzr revid: tde@openerp.com-20131018132120-h0pv01q2bagtp99x
2013-10-18 15:21:20 +02:00
Antony Lesuisse 9757c08872 use referencable models instead of _get_links
bzr revid: al@openerp.com-20131006115808-etkyq34ar1pqh2pb
2013-10-06 13:58:08 +02:00
Thibault Delavallée f72927123e [FIX] crm, sale_crm, mass_mailin: fixed computation for sparkline widgets.
Added an end date in the read_group domain. Indeed having results outside the date range
made the result computation crash because of list limits. There is now a begin and end
date for groupby domain.

bzr revid: tde@openerp.com-20131003082736-tw50xk2vmhpjh1e5
2013-10-03 10:27:36 +02:00
Christophe Simonis 3fa90321e1 [MERGE] forward port of branch saas-1 up to revid 8772 chs@openerp.com-20130910122113-171osvcukxffxcry
bzr revid: chs@openerp.com-20130910124803-wxkb8gkz1tub5qjf
2013-09-10 14:48:03 +02:00
Denis Ledoux 546a191f0a [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9459 rev-id: fva@openerp.com-20130918153347-fy4nuvbm82ngfb8x
bzr revid: mat@openerp.com-20130826135110-f9q4p65ds2aholcw
bzr revid: dle@openerp.com-20130828141129-ecxl2vlpb8vw0o9f
bzr revid: dle@openerp.com-20130828162659-n8a0ku9o3h01qaov
bzr revid: dle@openerp.com-20130830094205-q3itwd7x0246d9n6
bzr revid: dle@openerp.com-20130830133604-mfnfbscn5wdk4vi4
bzr revid: dle@openerp.com-20130902131244-v9uh0s8rg4889i7j
bzr revid: mat@openerp.com-20130903134105-68ziuaccreu6rs61
bzr revid: chs@openerp.com-20130906171851-jtfsf4au1k30wwlr
bzr revid: dle@openerp.com-20130909103120-k5oefxgebhyslac3
bzr revid: dle@openerp.com-20130909170047-pbzw4ernvcpivbhh
bzr revid: chs@openerp.com-20130910122113-171osvcukxffxcry
bzr revid: tde@openerp.com-20130912121059-k840pi4rwdzpez8g
bzr revid: dle@openerp.com-20130913085251-p906ci2divy82jur
bzr revid: tde@openerp.com-20130913092546-kzshg1a7sls566l8
bzr revid: mat@openerp.com-20130917122102-drf8fj9lrjj0fvju
bzr revid: mat@openerp.com-20130917161614-w8u2c1ayeb5kxm30
bzr revid: dle@openerp.com-20130918161305-7ep1642nxzyy3vhd
2013-09-18 18:13:05 +02:00
Olivier Dony baef4d3d92 [FIX] Force safer ondelete=restrict on the `alias_id` _inherits FK on models with a mail.alias parent
The delete-rule was initially set to `cascade` in revision
6897.16.13 revid:odo@openerp.com-20120705141706-5gm5mmqode3bvkuc
because the ORM would not allow anything else for the FK of
an _inherits relationship.
This constraint was later lifted in 7.0 server at revision
4681 revid:odo@openerp.com-20121212210247-emrz5rf9ewcwdggu
so we can now switch to the intended default behavior:
when deleting mail aliases we never want to cascade delete
the child records, as that could lead to unwanted deletions.
On the other hand the aliases are automatically deleted when
the record they belong to is deleted, as a kind of internal
dependency. This is the intended safe way to delete them.

There is a special case when the same alias is manually set
on multiple records, in which case you will not be able to
delete any of those records. This is an acceptable exception
and should be manually handled if ever needed, by temporarily
linking the records to delete to new dummy aliases.

bzr revid: odo@openerp.com-20130827150708-62hqk8p7twd527n0
2013-08-27 17:07:08 +02:00
Thibault Delavallée 0e9fd3d5d5 [IMP] crm: removed state field. Refactored code according to the new guidelines.
bzr revid: tde@openerp.com-20130716151003-c2df3nzgo1by0hyi
2013-07-16 17:10:03 +02:00
Thibault Delavallée fc44f25d3a [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20130612123429-a4mp0wiicdhlvk0m
2013-06-12 14:34:29 +02:00
Thibault Delavallée 09e0cd8dc6 [CLEAN] crm, sale_crm: cleaned code for new fields. Fixed some bugs in calculation and monthly repartition. Updated form views. Improved use of sparkline widget, now having tootips.
bzr revid: tde@openerp.com-20130531153100-q1cmpx0kjb02cbtu
2013-05-31 17:31:00 +02:00
Christophe Matthieu 4e7b20dfb6 [IMP] salesteams: duration only by month
bzr revid: chm@openerp.com-20130527093036-bn4kjnre9vhxf76k
2013-05-27 11:30:36 +02:00
Christophe Matthieu 15c9537eb1 [IMP] salesteams: use read_group to simplify
bzr revid: chm@openerp.com-20130524135255-myzntlue5e87j6vk
2013-05-24 15:52:55 +02:00
Christophe Matthieu 7e901f89ba [IMP] salesteams: view
bzr revid: chm@openerp.com-20130521111717-m38hgfi2sevhzy5h
2013-05-21 13:17:17 +02:00
Thibault Delavallée 88e3505554 [IMP] mail_alias: added reference to the parent record.
The parent record is the record that holds the alias. It is different
from the record updated or created using the alias. For example
projects have aliases whose parent is the given projet, and that creates
new task inside the project.
Updated alias creation and management accordingly.
This ownership concept is used to compute the 'followers' contact
settings of aliases.

bzr revid: tde@openerp.com-20130516164207-1zr0q6abw6a34ndf
2013-05-16 18:42:07 +02:00
Thibault Delavallée 44d189fd9f [FIX] crm, hr_recruitement: fixed default alias for hr_job and crm_case_section not creating respectively new applicants and leads.
bzr revid: tde@openerp.com-20130516112402-8tn66je4n2ipiqvj
2013-05-16 13:24:02 +02:00
Christophe Matthieu e4d24fe58a [IMP] crm.case.section: change use_leads tootip
bzr revid: chm@openerp.com-20130506135243-qbdgveg2y6pzfd3z
2013-05-06 15:52:43 +02:00
Christophe Matthieu 64eceedcb9 [IMP] crm_case_section: quarter in selection field
bzr revid: chm@openerp.com-20130506080016-1336mjc2212wyauj
2013-05-06 10:00:16 +02:00
Christophe Matthieu 3cf1b01d1c [IMP] salesteams: comment and tooltip
bzr revid: chm@openerp.com-20130425130111-pq94g5v9o5rwyzts
2013-04-25 15:01:11 +02:00
Christophe Matthieu 57fdf11635 [IMP] salesteams: add demo data
bzr revid: chm@openerp.com-20130419103600-71j6munkzygnffe4
2013-04-19 12:36:00 +02:00
Christophe Matthieu 2471265eae [IMP] salesteams: crm_case_section kanban sparkline with html tooltip
bzr revid: chm@openerp.com-20130418091759-7q02xo1p4pqauowa
2013-04-18 11:17:59 +02:00
Christophe Matthieu 797cecf8df [IMP] crm: salesteams sparkline for lead and opportunity
bzr revid: chm@openerp.com-20130417131759-ysnbosoikd16kwlo
2013-04-17 15:17:59 +02:00