[doc] no hint on how to use db_version

Bug #1311175 reported by Christophe Combelles on 2014-04-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP buildout recipe
Wishlist
Unassigned

Bug Description

Trying to use db_version, the documentation doesn't tell how to use it, particularly how to set it.
(it seems that there is a settable property that write the db)

Related branches

Christophe Combelles (ccomb) wrote :

the doc should also say that the upgrade script should end with a commit()

Georges Racinet (gracinet) wrote :

yes it's simply a settable property, but the obvious still needs to be documented somehow, you're right.

Georges Racinet (gracinet) wrote :

db_version setting is automatic from VERSIONS.txt file
cr.commit() is also automatic (in case of success only)

Just updated doc to state this explicitely : http://docs.anybox.fr/anybox.recipe.openerp/stable/scripts.html#upgrade-scripts, after the example and in the "about versions" note

Changed in anybox.recipe.openerp:
milestone: none → 1.8.5
status: New → Fix Committed
Changed in anybox.recipe.openerp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers