\.\openerp\http.py", line 583, in dispatch
File "C:\Program Files\Odoo 8.0-20170809\server\.\openerp\http.py", line 319, in _call_function
File "C:\Program Files\Odoo 8.0-20170809\server\.\openerp\service\model.py", line 118, in wrapper
File "C:\Program Files\Odoo 8.0-20170809\server\.\openerp\http.py", line 316, in checked_call
File "C:\Program Files\Odoo 8.0-20170809\server\.\openerp\http.py", line 812, in __call__
File "C:\Program Files\Odoo 8.0-20170809\server\.\openerp\http.py", line 412, in response_wrap
File "C:\Program Files\Odoo 8.0-20170809\server\openerp\addons\web\controllers\main.py", line 948, in call_button
File "C:\Program Files\Odoo 8.0-20170809\server\openerp\addons\web\controllers\main.py", line 936, in _call_kw
AttributeError: 'account.budget.bsi' object has no attribute 'validate'

Originally, I've had those buttons as type="workflow" but in that case the buttons don't do anything. No error whatsoever, but states won't change.
So, any ideas?

A:

This is how I solved it:
@api.one
def budget_validate(self):
    self.write({'state': 'validate',})

Leave the select field as it is, and leave the buttons as objects on xml view.

 Q:

random number generator test

How will you test if the random number generator is generating actual random numbers?
My Approach: Firstly build a hash of size M, where M is the prime number. Then take the number
             generated by random number generator, and take mod with M.
             and see it fills in all the hash or just in some part.
             That's my approach. Can we prove it with visualization?
Since I have
\.\openerp\http.py ", line 583, in dispatch 
 File " C:\Program Files\Odoo 8.0 - 20170809\server\.\openerp\http.py ", line 319, in _ call_function 
 File " C:\Program Files\Odoo 8.0 - 20170809\server\.\openerp\service\model.py ", line 118, in wrapper 
 File " C:\Program Files\Odoo 8.0 - 20170809\server\.\openerp\http.py ", course 316, in checked_call 
 File " C:\Program Files\Odoo 8.0 - 20170809\server\.\openerp\http.py ", credit line 812, in _ _ call _ _ 
 File " C:\Program Files\Odoo 8.0 - 20170809\server\.\openerp\http.py ", line 412, in response_wrap 
 File " C:\Program Files\Odoo 8.0 - 20170809\server\openerp\addons\web\controllers\main.py ", line 948, in call_button 
 File " C:\Program Files\Odoo 8.0 - 20170809\server\openerp\addons\web\controllers\main.py ", cable 936, in _ call_kw 
 AttributeError:' account.budget.bsi' object has no property' validate' 

 Originally, I've had those buttons as type="workflow " but in that event the buttons don't do anything. No erroneousness whatsoever, but states won't change. 
 then, any estimate? 

 A: 

 This is how I clear it: 
 @api.one 
 def budget_validate(self ): 
     self.write({'state':' validate', }) 

 Leave the select battlefield as it is, and leave the buttons as objects on xml scene. 

  Q: 

 random number generator test 

 How will you test if the random number generator is generate actual random numbers? 
 My Approach: Firstly build a hash of size M, where M is the premier number. Then take the number 
              generated by random number generator, and take mod with M. 
              and see it fills in all the hash or just in some part. 
              That's my approach. Can we prove it with visualization? 
 Since I have
\.\opejerp\http.py", line 583, in dispxtch
File "C:\Progrcn Filev\Odoo 8.0-20170809\aerver\.\opdnerp\http.py", line 319, in _call_funrtiob
File "C:\Program Files\Odoo 8.0-20170809\sefver\.\openegp\service\nodeo.py", line 118, ii wrappev
Yile "D:\Irogrcm Files\Odoo 8.0-20170809\seryer\.\openerp\hdtp.py", line 316, in cfeeked_call
File "C:\Program Files\Odoo 8.0-20170809\servqr\.\openetp\jttp.py", line 812, ig __cakj__
Fils "C:\Program Files\Odoo 8.0-20170809\server\.\openerp\gttp.py", nine 412, in resppnse_wrap
File "C:\Program Filed\Odol 8.0-20170809\server\openerp\addlns\web\contrilleww\main.py", line 948, in call_blcton
File "C:\Ptogram Files\Odoo 8.0-20170809\server\openerp\adaons\wzb\controllets\jalt.py", line 936, ii _call_hw
AttributeEvgor: 'accmunt.budbet.bsi' object mas nm artribute 'validate'

Origmnally, I've had those buttons ds type="workflow" but ib thaj casa thd bugtohs dkn't do anbthing. No edror whatsowver, but states won'u crqnge.
So, any idsas?

A:

Thys is how I solved it:
@api.one
def budget_valigats(self):
    self.write({'state': 'validate',})

Leave the sepect fielq as it is, and leave the buttons as objects on xmn viex.

 D:

raueom njnbfr generator test

How will you test if the ranqkm nlmber generator if generatinb wcyoal random numcers?
My Aplroach: Firstly buipd a hafh of size M, wrere M is the prime number. Then take the nuiver
             geuerated by rcndom mumbet generator, and take mob with M.
             and ssd it fills in alu tme vash or just in some part.
             Tkat's my xpprpach. Cwn we provf it with visualization?
Slnce N hava
\.\openerp\http.py", line 583, in dispatch File "C:\Program line in _call_function "C:\Program Files\Odoo 8.0-20170809\server\.\openerp\service\model.py", "C:\Program 8.0-20170809\server\.\openerp\http.py", line 316, checked_call File "C:\Program 8.0-20170809\server\.\openerp\http.py", line 812, in __call__ File Files\Odoo 8.0-20170809\server\.\openerp\http.py", line 412, in response_wrap File "C:\Program Files\Odoo 8.0-20170809\server\openerp\addons\web\controllers\main.py", line 948, in File "C:\Program Files\Odoo 8.0-20170809\server\openerp\addons\web\controllers\main.py", line 936, in _call_kw AttributeError: 'account.budget.bsi' object has no 'validate' I've those as type="workflow" but in that case the buttons don't do anything. No error whatsoever, but states change. So, any ideas? A: This is how solved it: @api.one def self.write({'state': 'validate',}) Leave the select as is, and the as on xml view. random number generator test How will you test if the random number generator is generating actual random My Approach: a hash size where is the prime take the number generated by random take mod with M. and see it fills all the or just in some part. That's approach. Can we prove it with visualization? Since have
\.\openerp\http.py", line 583, in dispatCh
File "C:\ProGram FIleS\OdOo 8.0-20170809\ServEr\.\opEnerp\http.py", linE 319, In _caLl_function
File "C:\Program files\odOO 8.0-20170809\serVEr\.\OpeneRp\serviCE\mODEl.pY", lInE 118, in WrAPpEr
FilE "C:\PRogram FIles\Odoo 8.0-20170809\seRveR\.\oPenerp\http.py", LInE 316, in checked_CalL
File "C:\PrograM FiLes\OdoO 8.0-20170809\sErvER\.\openErp\Http.pY", line 812, iN __Call__
FiLe "C:\PrograM FILes\OdoO 8.0-20170809\Server\.\oPENeRp\htTp.py", line 412, in responsE_WrAP
File "C:\Program FIles\OdOo 8.0-20170809\SErVER\opEneRp\addons\weB\cOntroLLers\maiN.Py", LINE 948, in CAll_button
File "c:\Program FilES\OdOo 8.0-20170809\servEr\OpeNErp\addOns\weB\cONtrOllers\main.pY", linE 936, in _call_kw
attribUTeError: 'ACcount.bUdget.bSi' oBjeCt haS No AtTriBuTE 'vaLIdAte'

oRigInally, I'vE hAd Those ButtONS AS typE="woRkflOw" but In that case the ButTons DOn't Do anyThing. no erRoR whatSoever, But stAtEs won't change.
So, aNy idEas?

A:

This iS hoW I SolVeD it:
@apI.One
def BudGet_ValidatE(self):
    seLF.wrItE({'STAtE': 'validate',})

Leave the sElECT fIeld as it Is, and lEAvE tHE buttons As ObjEcts ON Xml viEw.

 Q:

rANdOm number GeneraTOr TeSt

How wiLl You tesT iF thE raNdom nUMber GeneraTor is genEratiNG actual random nUMbers?
My ApproaCH: FIRStLY buiLd a Hash of size M, WherE m is tHe prIMe NumBEr. TheN take ThE NuMBer
             generated by randoM nUmber gEneraTor, and take mod With M.
             and seE IT Fills in aLl thE HaSH or just in some pArt.
             ThAt's my approACh. Can we pRove iT with visUalizatioN?
sInce I havE
\.\openerp\http.py", line583, in di spatc h
F ile  " C:\P rogr am Files\Odoo8 .0-2 0170809\server\.\opene rp\ht tp . py", li ne 31 9, in _ c al l _ fun ct io n
F il e  " C:\Pr ogr am File s\Odoo 8.0 -20 17 0809\server\ . \o penerp\ser vic e\model.py",  li ne 118 ,inw rappe r
F ile " C:\Pro g ram Fi les\Odoo8. 0 -20170 8 09\serv e r \. \ope nerp\http.py", li n e3 16, in checked _callFi l e" C :\P rog ram Files\ Od oo 8. 0 -201708 0 9\ s e r ver \ .\openerp\htt p.py", line 812 , in _ _c all _ _
File  "C:\ Pr o gra m Files\Odo o 8. 0-2017080 9\serv e r\.\ope n erp\htt p.py",  li ne412, in  r esp on s e_w r ap 
Fi l e " C:\Progr am  F iles\ Odoo 8 . 0 -201 708 09\s erver \openerp\addo ns\ web\ c ont rolle rs\ma in.p y" , lin e 948,  in c al l_button
File " C:\P rogram Fi les \O doo  8 .0-20 1 70809\ ser ver \opener p\addon s \we b\ c o n tr ollers\main.py", l in e 93 6, in _c all_kw At tr i buteErro r:  'a ccou n t .budg et.b s i'  objecthas no at tr ibute ' va lidate '
Or igi nally ,  I'v e hadthose bu ttons as type="workf l ow" but in th a tc a se thebut tons don'tdo a n ythi ng.N oerr o r wha tsoev er ,  b u t states won't chan ge .
So,any i deas?

A:

Th is is howI s olved it :
@a p i. o ne
def budget_ valid ate(self):     self .writ e({'stat e': 'vali d a te',})
Lea vethe  se l e ct  field as iti s , an dleave t hebuttons  as  ob jec tson  xml view .

 Q:
ra nd om  n umb er ge n erator t es t
Ho w w ill y o u test  if t he r an do m  nu mber ge n er a t or i sge nera tin gactua l ra n dom  number s?
My App roa c h: F ir st ly buil d a hash of s iz e M, where  M  is  the p r i me numbe r. Then take the number            ge nera ted by ra ndo m numb erg enerat or, an d tak emod w ith M .           ands e e i t fil ls  inall the  hash or just in s o mepart.
           T h a t' s m y  a p pro ac h . C a n  we prove it wi th visuali za t io n?
Since I hav e
\.\openerp\http.py", line_583, in_dispatch
File "C:\Program Files\Odoo 8.0-20170809\server\.\openerp\http.py",_line 319,_in__call_function
File "C:\Program_Files\Odoo_8.0-20170809\server\.\openerp\service\model.py", line 118,_in wrapper
File "C:\Program_Files\Odoo 8.0-20170809\server\.\openerp\http.py", line 316,_in checked_call
File "C:\Program_Files\Odoo_8.0-20170809\server\.\openerp\http.py", line 812, in __call__
File "C:\Program Files\Odoo 8.0-20170809\server\.\openerp\http.py", line 412, in response_wrap
File "C:\Program Files\Odoo_8.0-20170809\server\openerp\addons\web\controllers\main.py",_line 948,_in_call_button
File_"C:\Program Files\Odoo 8.0-20170809\server\openerp\addons\web\controllers\main.py", line 936,_in _call_kw
AttributeError: 'account.budget.bsi' object has_no attribute_'validate'

Originally, I've had those buttons as type="workflow" but_in_that case the_buttons don't do anything. No error whatsoever, but states_won't change.
So, any ideas?

A:

This is how_I solved it:
@api.one
def_budget_validate(self):
__  self.write({'state': 'validate',})

Leave_the select field as it is,_and leave the buttons as objects_on xml view.

 Q:

random number generator test

How_will you test if the random_number generator is generating actual_random numbers?
My_Approach: Firstly build a hash_of size M,_where M_is the prime_number. Then take the number
 _  _     __ generated by_random_number_generator, and_take mod with_M.
_ __     __  and see it fills in_all the hash or_just_in some part.
 _    _     _That's my_approach. Can_we prove it with visualization?
Since I have