59
60
<field name="available_stock" />
60
61
<field name="virtual_stock" />
61
62
<!-- do not work: attrs="{'readonly': ['|', '|', ('type', '=', 'make_to_stock'), '&', ('type', '=', 'make_to_order'), ('po_cft', '=', 'cft'), ('state', '!=', 'draft')]}" -->
62
64
<field name="supplier" colspan="2"
63
66
context="{'product_id': product_id, 'choose_supplier': True}"
64
67
attrs="{'readonly': ['|', ('type', '=', 'make_to_stock'), ('state', '!=', 'draft')]}"
65
68
on_change="onChangeSupplier(supplier)" />
66
69
<field name="estimated_delivery_date" />
67
<button name="confirmLine" string="Confirm line" icon="gtk-go-forward" type="object" attrs="{'invisible':[('state', '!=', 'draft')]}" />
70
<button name="confirmLine" string="Confirm line" icon="gtk-go-forward" type="object" attrs="{'invisible':[('display_confirm_button', '=', False)]}" />
68
71
<!-- does not work. openerp bug ? <button name="unconfirmLine" string="Unconfirm Line" icon="gtk-cancel" type="object" attrs="{'invisible':['|', ('state', '!=', 'confirmed'), ('sale_order_state', '!=', 'draft')]}" />-->