0
MagentoとOdooの接続に取り組んでいます。この呼び出しを実行します:Ripcordライブラリ付きOdoo API:言語パラメータの投稿方法
$records = $models->execute_kw($db, $uid, $pass, 'product.product', 'read', array(array(2))
, array('fields' => array(
'id',
'active',
'categ_id',
'display_name',
'description',
'image',
'__last_update',
'list_price',
'qty_available',
'taxes_id',
'write_date',
'promotion_note',
'publish_website'
),
)
);
しかし、言語パラメータはどのように適合しますか? display_nameとdescriptionについては、nl_BE変換が必要です。私は、引数としてで
array("lang"=>"nl_BE")
フィッティングを考えていたが、私は
TypeError: execute_kw() takes at most 6 arguments (7 given)
エラーが出ます...。同じ問題を扱っている人は誰ですか?
私は最終的に解決策を見つけた