odoo/odoo — pull request #4024 by acysos (2014-12-03 18:36:07+00:00)
Title: [FIX] stock_account: fix invoice_state on create stock picking

Hello,

When a sale is confirmed check first procurement.rule_id.invoice_state is this is none, don't check procurement.invoice_state. So, the stock.picking invoice_state is not aplicable.

Greetings