Instead of raising an exception (which only interupt the call of the onchange methods), return a dictionnary to set the forbidden partner or product to an empty value.
The call is not blocking in a way it forbid to create a record that uses this partner/product but it make it not possible to select it through the web interface.
bzr revid: mat@openerp.com-20140507102550-sms5nbf0u7pdkci9
The body is the field used to actually display the 'log in with ...'
As not shown in the view, when adding a new provider, this field was empty and therefore wasnt visible on the login form...
bzr revid: dle@openerp.com-20140507102414-vz7ur7zvh4ptuk2e
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
improves the _move_count method by removing try statement and using better logic. Also, removes now useless one2many field (move_ids)
bzr revid: ged@openerp.com-20140507093442-ew1gc06r58tbl9ug
improves the _sales_count method in product.product by removing try/catch and by using better logic. Also, removes now useless sales_ids one2many field.
bzr revid: ged@openerp.com-20140507092303-a2g4gq2mq3obelye
improves the _claim_count method by removing try/except/pass and by using
search_count. Also, removes the now useless one2many field claims_ids (strangely, it was defined before
_claim_count, but was not used.
bzr revid: ged@openerp.com-20140507081723-7pi1t33xxjb6hbwy
improve the _count_all method by removing try/catch/pass and by
using search_count instead of the one2many relation.
Also, removes now useless one2many fields costs_ids and odometer_ids
bzr revid: ged@openerp.com-20140507075645-2tp5zgayeea9ehv2
- fixed reopen link that was broken (python code appearing)
- fixed close link that was leading to a 500 error due to post -> question
- fixed link to question author, was redirecting to the current user
- fixed displayed number of questions in the forum, now displaying actual question
number, not number of displayed questions in the page
- improved guidelines: added link back to the forum
- fixed tags display: now by posts_count desc, unused tags are not shown
- users are now displayed by desc karma
- converting a comment as an answer does not allow to create a new answer if another
one by uid is already present, it just moves the comment
- display tag name in 'filter' bar when filtering on a tag
- display active tag in a blue color
- order answers: correct first, then most upvoted
bzr revid: tde@openerp.com-20140506150145-c1uvlaqtyvkjcwea
- gamification.goal do not depends of mail.thread anymore (message posting and fields tracking was slow)
- check reward works in batch mode
- fix update method that did not reset variable in loop
- when the cron is running commit after each goal definition update
bzr revid: mat@openerp.com-20140506145623-476s3q3vxoybya77
- display tag name in 'filter' bar when filtering on a tag
- display active tag in a blue color
- order answers: correct first, then most upvoted
bzr revid: tde@openerp.com-20140506123001-fz5gt6i9zw6ondcu