made invoices button invisible in sent state too

bzr revid: cha@tinyerp.com-20130220133306-dho6b01zbqx7jff2
This commit is contained in:
Ajay Chauhan (OpenERP) 2013-02-20 19:03:06 +05:30
parent 7daccf5074
commit 2e66518989
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@
name="view_picking"
string="Incoming Shipments" states="approved"/>
<button type="object" name="invoice_open"
string="Invoices" attrs="{'invisible': [('state', '=', 'draft')]}"/>
string="Invoices" attrs="{'invisible': [('state', 'in', ['draft','sent'])]}"/>
</div>
</xpath>
</field>