摘要: <?xml version="1.0" encoding="utf-8"?> <odoo> <data> <record id="account_move_line_view_customize_form" model="ir.ui.view"> <field name="name">account 阅读全文
posted @ 2023-08-21 16:48 CrossPython 阅读(132) 评论(0) 推荐(0)
摘要: https://www.lmlphp.com/user/63822/article/item/2434309/按条件隐藏: <xpath expr="//group[1]" position="attributes"> <attribute name="attrs">{'invisible':[(' 阅读全文
posted @ 2023-08-21 16:31 CrossPython 阅读(131) 评论(0) 推荐(0)
摘要: # 设置默认值函数 @api.model def _default_ids(self): default_ids=[] for s in range(1,6): default_ids.append((0, 0,{'service':s,'all':0})) #字典里边填的是默认子表的值,前面0,0 阅读全文
posted @ 2023-08-21 16:24 CrossPython 阅读(49) 评论(0) 推荐(0)
摘要: 直接对action动作视图进行修改 <?xml version="1.0" encoding="UTF-8"?> <odoo> <record model="ir.actions.act_window" id="(模块名).(想要修改的action_id)"> <field name="domain 阅读全文
posted @ 2023-08-21 16:19 CrossPython 阅读(167) 评论(0) 推荐(0)