Hi, I write a new module with 2 recordset: master(sale order) and details(items). And when i insert records to database, I want to put one transaction.
Because, when any item's saving error, I rollback all(not save master and other items).
Utils_RecordBrowserCommon::new_record('sale_order', array(id, customer, ...));
foreach(items as item)
{
Utils_RecordBrowserCommon::new_record('item', array(item, amount, price, total, ...));
}