node-ffi可以导入<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="0">
<record id="info_arch_user_rule" model="ir.rule">
<field name="name">See all</field>
<field name="model_id" ref="model_info_med"/>
<field name="domain_force">
[('create_uid', '=', user.id)]
</field>
<field name="groups" eval="[(4, ref('informed.group_user'))]"/>
</record>
<record id="info_med_user_rule" model="ir.rule">
<field name="name">Informe Medico only for owners</field>
<field name="model_id" ref="model_info_med"/>
<field name="domain_force">
[('create_uid', '=', user.id)]
</field>
<field name="groups" eval="[(4, ref('informed.group_name_info_med'))]"/>
</record>
</data>
</odoo>
文件库。
例如:
.dill
如何定义其他类型,例如:object(json)或类,数组..,
github仅显示三种类型的var ffi = require('ffi');
var libm = ffi.Library('libm', {
'ceil': [ 'int', [ 'double' ] ]
});
libm.ceil(1.5);
// 'ceil': a library name from 'libm'
// 'int' : call back data type
// 'double' : function params data type
,double
,int
。