• 2023-12-03Odoo_控制器(controller)常用知识点
    1.路由的定义@http.route(['/report/<converter>/<reportname>','/report/<converter>/<reportname>/<docids>',],type='http',auth='user',website=True)defreport_routes(
  • 2023-11-25D. Letter Picking
    D.LetterPickingAliceandBobareplayingagame.Initially,theyaregivenanon-emptystring$s$,consistingoflowercaseLatinletters.Thelengthofthestringiseven.Eachplayeralsohasastringoftheirown,initiallyempty.Alicestarts,then
  • 2023-10-03odoo中用javascript调用model中定义好的方法
    odoo中如果前端界面要调用后台model中写好的方法,很简单。使用do_action即可,比如要调用改res.users的默认语言后执行的方法odoo.define('switch_language.SwitchLanguageMenu',function(require){"usestrict";varModel=require('web.Model');varsession
  • 2023-09-22odoo中用javascript调用model中定义好的方法,及要注意的坑
    odoo中如果前端界面要调用后台model中写好的方法,很简单。使用do_action即可,比如要调用改res.users的默认语言后执行的方法odoo.define('switch_language.SwitchLanguageMenu',function(require){"usestrict";varModel=require('web.Model');varsessi
  • 2023-04-11odoo中用javascript调用model中定义好的方法
    odoo中如果前端界面要调用后台model中写好的方法,很简单。使用do_action即可,比如要调用改res.users的默认语言后执行的方法 odoo.define('switch_language.SwitchLanguageMenu',function(require){"usestrict";varModel=require('web.Model');varse
  • 2023-02-28「CF1336E」Chiori and Doll Picking
    题目点这里看题目。给定一个长度为\(n\)的非负整数序列\(a\)和非负整数参数\(m\),保证\(\forall1\lei\len,0\lea_i<2^m\)。设\(U=\{1,2,3,\dots,n-1,n\}\)。
  • 2023-02-19CF923D Picking Strings
    偏简单的Ad-hoc题,但质量很高。Description传送门SolutionObservation1:我们可以将B换成C,也可以将C换成B。Proof:容易发现B->AC->AAB->AAAC->C,且C->