- 博客(2)
- 收藏
- 关注
转载 odoo8开发笔记 --- context上下文
context 这是一个上下文,运用很灵活得到整个context self.context_get() self.env['res.users'].context_get()得到context里面对应的值得到flag的值 self.env.context.get('flag',False)修改context里面的对应的值 self.with_context({'flag': False}) 或 self.with_context(flag=True) 单一...
2021-12-29 18:37:16 364
转载 Odoo中本日、本月、上月过滤器实现方法
<filter string="今日订单" name="today" invisible="0" domain="[('date','=', current_date)]"/><filter string="本月订单" name="month" invisible="0" domain="[('date','>=', time.strftime('%Y-%m-01')),('date','<', (context_today() + relativedelt.
2021-12-29 18:03:44 252
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人