Commit Graph

48 Commits

Author SHA1 Message Date
Martin Trigaux 9905261108 [FIX] crm: permissions on computed field
Accessing the phonecall and the lead do not require the same permissions so
should not be computed in the same method.
The effect of the multi was already lost as the phonecall_count was already
computed in another loop.
Add the phonecall_count button in a second view to make the computation only if
the user has the requried access rights.

Fixes #2458
2015-07-22 15:39:26 +01:00
Denis Ledoux a35e9858dc [FIX] crm: opportunity count on partner form
- When the partner is a company,
 the opportunity count should counts the opportunities
 of this company and all its contacts
 - When the partner is not a company,
 the opportunity count should only counts the opportunities
 of this lonely partner.

opw-626609
2015-01-27 19:15:42 +01:00
Denis Ledoux ea54d4af9f [FIX] crm: opportunities button in partner form only count opportunities
Before, all crm.lead of the partner were counted, whatever it was a lead or an opportunity, but the button opens the opportunity tree, which has a domain type = opportunity. So leads were not displayed, and the count was therefore misleading.

Besides, the button is called "Opportunities", and it was misleading to count leads for a button with such a name
2015-01-06 11:33:07 +01:00
Thibault Delavallée 32053a5bf3 [FIX] res_partner: Meetings button on form view was not correctly
filtering displayed meetings according to the selected partner.
2014-08-27 12:31:48 +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
Gery Debongnie 9f3abe3ea4 [FIX] code cleanup (addon crm)
improves the method to count opportunities/meetings/phonecalls in res_partner.py.  It was bugged in two different way: the phonecall_count field was counting the number of meetings and not of phone calls, and it was in the try statement, so it might give an incorrect value if an exception occurs in the computation of opportunity/meeting

Also, remove useless meeting_ids one2many field in crm_lead.py and improves the method meeting_count

bzr revid: ged@openerp.com-20140507100954-1aqnd93iu5wsixob
2014-05-07 12:09:54 +02:00
Gery Debongnie 5aa2fa150c [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140502130753-4z24z1to9pkrckvq
2014-05-02 15:07:53 +02:00
Amit Vora 04c809e9f6 [MERGE] [IMP] crm: improved call / meeting buttons and behavior on lead and partner form view.
- improved behavior of schedule a meeting, for both opportunities and partner, with correct
attendees and options;
- removed wizard to schedule a cal, jumping to the list view with correct default values
is sufficient;
- scheduled calls is now accessible using a group, accessible through sales configuration;

bzr revid: tde@openerp.com-20140417145645-cpohfrfpqnskpok6
2014-04-17 16:56:45 +02:00
Amit Vora d892a5b38e [IMP] improve code
bzr revid: avo@tinyerp.com-20140328063012-mxvgudl5b3219j2i
2014-03-28 12:00:12 +05:30
Amit Vora f1ce85e807 [IMP] improve code,add condition if context none
bzr revid: avo@tinyerp.com-20140318084314-y63h7bho393fhcix
2014-03-18 14:13:14 +05:30
Gery Debongnie 6fee78b475 [IMP] improves the way the res_partner fields are displayed in the buttons in form view. Specifically, uses the widget 'statinfo' and some related cleanup (addons account, crm)
bzr revid: ged@openerp.com-20140314140114-9t2piu3cpqkldnbo
2014-03-14 15:01:14 +01:00
Gery Debongnie 0cba3bef47 [IMP] removes some useless fields (*stat_button) from res_partner in addon crm and uses the new x2many widget in the form view
bzr revid: ged@openerp.com-20140313131858-mp1lfww3osmny27g
2014-03-13 14:18:58 +01:00
Amit Vora 9e03bc126b [IMP] improve code
bzr revid: avo@tinyerp.com-20140313121727-jpop13zj1h64qj6i
2014-03-13 17:47:27 +05:30
Gery Debongnie b7bc8b3aa4 [IMP] change the partner form view to display new stat button information in addon account/crm
bzr revid: ged@openerp.com-20140312132347-dyu1i3szlh9r7jq9
2014-03-12 14:23:47 +01:00
jke-openerp 46b0c7aa00 [REF] Rename model crm.meeting into calendar.event
Remove 2 unsused field from calendar.event model (dir,sequence)

bzr revid: jke@openerp.com-20140115093805-1g1j1oymyxsb6kgh
2014-01-15 10:38:05 +01:00
Stephane Wirtel d43f093f3c [FIX] Bad domain in the crm
bzr revid: stw@openerp.com-20130905144837-qt1n3twxhzhobuez
2013-09-05 16:48:37 +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
Christophe Simonis bf29a2ebc7 [MERGE] forward port of branch 7.0 up to revid 9302 chs@openerp.com-20130718111616-apacuhc2qhquobtc
bzr revid: dle@openerp.com-20130627104833-b9zgtu8urj43f12b
bzr revid: mat@openerp.com-20130702135856-kmg7d8anw17nkbd8
bzr revid: chs@openerp.com-20130718115928-wpa84dqh8tcq31zt
2013-07-18 13:59:28 +02:00
Christophe Simonis e1ad4d49e9 [FIX] crm: copy() of partners must return id of new partner
bzr revid: chs@openerp.com-20130628174508-di66pnu139ora9j6
2013-06-28 19:45:08 +02:00
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Vo Minh Thu 6072fd11af [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121210111654-0pm3pupnqqeip52n
2012-12-10 12:16:54 +01:00
Fabien Pinckaers 5c98593604 [IMP] fields name
bzr revid: fp@tinyerp.com-20121208104558-2jr4j84go4gcemrb
2012-12-08 11:45:58 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Bhumi Thakkar (Open ERP) 149525095c [IMP] Replaced String.
bzr revid: bth@tinyerp.com-20121205090114-8xq7fsntg4xn3dzr
2012-12-05 14:31:14 +05:30
Fabien Pinckaers 101c27faa4 [FIX] access rights issues on partners
bzr revid: fp@tinyerp.com-20120928081805-jifrsqvktvm5vfch
2012-09-28 10:18:05 +02:00
Thibault Delavallée 9a3deaf3da [IMP] crm: fixed some categ_id remaining.
bzr revid: tde@openerp.com-20120813131207-lu1c271q5dh27vlr
2012-08-13 15:12:07 +02:00
Stephane Wirtel 112da954ff [FIX] sale: Don't copy the leads, opportunities, meetings when we duplicate a partner
bzr revid: stw@openerp.com-20120802140405-wr89huxznwsss4ui
2012-08-02 16:04:05 +02:00
Fabien Pinckaers 1d94bd4907 [IMP] partner kanban, holidays, meeting
bzr revid: fp@openerp.com-20120714160403-if88yyfrqn07xp3t
2012-07-14 18:04:03 +02:00
Fabien Pinckaers b2609bd3c7 [IMP] meetings forms and features
bzr revid: fp@openerp.com-20120714153350-tr9dkw5f4pxpf5ev
2012-07-14 17:33:50 +02:00
Fabien Pinckaers 8d588acf49 [IMP] views bugfixes
bzr revid: fp@tinyerp.com-20120522145433-ajupwx0tpgyp5il4
2012-05-22 16:54:33 +02:00
Fabien Pinckaers 2bce6d97d7 [IMP] removed dashboards, order of menus, count buttons on partner, products
bzr revid: fp@tinyerp.com-20120522143759-lnd5eescth6yxdvu
2012-05-22 16:37:59 +02:00
Raphael Collet 827fb865c4 [IMP] improve methods for counting opportunities, meetings, sale orders, and pickings
bzr revid: rco@openerp.com-20120504145551-66l6wy2qumc59r82
2012-05-04 16:55:51 +02:00
DBR (OpenERP) b86bdabfe9 [IMP]sale,crm,stock : Remove comments and improve kanaban view link with action
bzr revid: dbr@tinyerp.com-20120501132024-krm37io0uwrlcljb
2012-05-01 18:50:24 +05:30
DBR (OpenERP) d9c305ef06 [ADD,IMP] sale,crm:
added:
  sale/res_partner.py
  sale/res_partner_view.xml
modified:
  crm/res_partner.py
  crm/res_partner_view.xml
  sale/__init__.py
  sale/__openerp__.py
  stock/product.py
  stock/product_view.xml
  stock/static/src/css/stock.css
For set links off quatations,opportunity and meeting

bzr revid: dbr@tinyerp.com-20120426103133-l0uc091e9r7mbu9b
2012-04-26 16:01:33 +05:30
Quentin (OpenERP) ffd0c86ec2 [FIX] a lot of fixes in several modules, as the result of the code review of the merge of the objects res.partner and res.partner.address
bzr revid: qdp-launchpad@openerp.com-20120330090837-s87z2qzsvynhlbwr
2012-03-30 11:08:37 +02:00
Bhumika (OpenERP) 24521ba5c7 [Fix] sale,crm: remove res.partner.address
bzr revid: sbh@tinyerp.com-20120229124142-bd4zb7ta0fjppr4i
2012-02-29 18:11:42 +05:30
Thibault Delavallée a665620c73 [MERGE] crm: fixed bug 907316: undefined context in opportunity creation wizard
bzr revid: tde@openerp.com-20111222091055-szsz2lca1499gg61
2011-12-22 10:10:55 +01:00
Kuldeep Joshi (OpenERP) 2392723380 [FIX] crm: pass context to the method
lp bug: https://launchpad.net/bugs/907316 fixed

bzr revid: kjo@tinyerp.com-20111222055739-akhfwnvag2xnwy3f
2011-12-22 11:27:39 +05:30
ron@tinyerp.com f7591afdbe [REF, IMP]: crm: Improved the quality of code,
* Used get_object_reference instead of _get_id from ir.model.data object when redirect_phonecall_view, redirect_partner_form, redirect_opportunity_view,
* Changed variable names

bzr revid: ron@tinyerp.com-20111103061432-3jubdl6rpvq0oz3b
2011-11-03 11:44:32 +05:30
Harry (OpenERP) 340c9c5576 [IMP] crm: clean test cases, APIs of crm.lead, crm.phonecall
bzr revid: hmo@tinyerp.com-20111024133010-ve55lvg2cie206l9
2011-10-24 19:00:10 +05:30
ron@tinyerp.com a3db3dcd09 [IMP] Improved mass_leads2opportunity.yml, merge_opportunity.yml, lead2opportunity2win.yml, partner2opportunity.yml
bzr revid: ron@tinyerp.com-20111021100443-my6035x3fem8gc34
2011-10-21 15:34:43 +05:30
Harry (OpenERP) c6a71b8dbb [IMP] crm: clear apis
bzr revid: hmo@tinyerp.com-20111021070111-tzgqm0jo3gor9jvm
2011-10-21 12:31:11 +05:30
Antony Lesuisse 42b36f710e [MERGE] remove stage type ksa, and MASSIVE crm_lead cleanup
bzr revid: al@openerp.com-20110825041037-0jerocl9x8psve2c
2011-08-25 06:10:37 +02:00
Fabien Pinckaers a80287f260 move
bzr revid: fp@tinyerp.com-20100921083659-asr13u4eyzjdr4sb
2010-09-21 10:36:59 +02:00
Olivier Dony 7ae4ed20ea [REF/IMP] crm, partner_geo_assign: moved basic partner assignation inside crm, added m2m with assigned opportunities to partner history, changed forward-to-partner to use same visual wizard everywhere
bzr revid: odo@openerp.com-20100714151713-c2hwebfuvcb2s5qd
2010-07-14 17:17:13 +02:00
Fabien Pinckaers 40e6756a26 [IMP] Improvements and fixes
bzr revid: fp@tinyerp.com-20100625212153-crzsp6hfkfqxm5h3
2010-06-25 23:21:53 +02:00
rpa (Open ERP) 2415c11a96 [IMP]: Event on Partner Cleaning: Removed res.partner.event.type and unused fields in res.partner.event
bzr revid: rpa@tinyerp.com-20100526115748-n1pzxu8dx78zxbkk
2010-05-26 17:27:48 +05:30
rpa (Open ERP) 8cd3caab57 [IMP]: crm: Improvement for putting crm information in partner, made separate file for partner info
bzr revid: rpa@tinyerp.com-20100525122358-z1e5qeb2c7glcdwd
2010-05-25 17:53:58 +05:30