2015-06-29 51 views

回答

1

嘗試以下,

taxes = self.pool.get('product.template').browse(cr, uid, id, context) 
if taxes and taxes.taxes_id: 
    for tax in taxes.taxes_id: 
     print tax.name 
     ### tax.id 

taxes_id不需要領域product.template它可能沒有價值,你應該檢查價值存在。

+0

工程就像一個魅力!非常感謝! –