openerp-dev team mailing list archive
-
openerp-dev team
-
Mailing list archive
-
Message #00002
Important coding guideline published: 2.9 Never commit the transaction!
-
To:
openerp-dev@xxxxxxxxxxxxxxxxxxx
-
From:
Olivier Dony <odo@xxxxxxxxxxx>
-
Date:
Mon, 12 Jul 2010 20:07:36 +0200
-
Organization:
OpenERP s,a,
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4
Hello everyone,
I have just commited a few patches in server/trunk and addons/trunk to
remove many of the cr.commit() calls, because most of them are not only
useless but in fact create a lot of problems!
I hope I did not break anything, but it is really important that every
developer understands why cr.commit() cannot be used.
Please read carefully the new guideline and make sure you understand it:
http://doc.openerp.com/contribute/15_guidelines/coding_guidelines_framework.html#never-commit-the-transaction
Don't hesitate to ask questions and discuss this guideline on this
mailing-list.
Thanks!
--
Olivier Dony