openerp - Odoo on Windows, can't add new field to model -


i'm using odoo 9.

i want add new field model, , add field model's form view. goes fine if in 2 steps :

  • add field model
  • restart odoo server
  • ask odoo update module (1)
  • add field form view
  • ask odoo update module again (2)

at step (1) field gets created in database table, , @ step (2) view modified use new field.

problem occurs when want update module on database. have "500 internal server error" , when @ log says new field (used view) not exist (because in odoo's perpective, module not updated yet).

that's not of problem since can stop server , issue command:

odoo.py -d <name_of_database> -u <name_of_module> 

this update module in other database without need access module's page in odoo. restart odoo service , works charm.

this problem begins :

my final client runs odoo on window server. know how start / stop / restart odoo service, not let me update module. i'd issue same command using odoo.py didn't find , how that.

my question :

  • looking @ way update module in 2 steps, think i'm doing right way, or there better way ?
  • could point me tutorial advanced use of odoo in windows environment, didn't find ?

many :-)

for odoo start/stop/update can same commands in windows can in linux.

  1. start command prompt.
  2. ensure path env includes python runtime. (set path=%path%;...)
  3. find odoo.py, execute it:

    odoo.py -d test -u mymodule

i have include odoo .conf file on command line:

odoo.py -c server.conf -d test -u mymodule 

you can see command options available using: odoo.py --help

you should not have update modules 2 restarts. know can occur. means dependencies not correct, view gets used before field has been added database.

for windows installs use buke's greenodoo on github https://github.com/buke/greenodoo. though version 8, can updated odoo9, see https://github.com/buke/greenodoo/issues/35.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -