summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@openerp.com>2014-10-15 15:24:32 +0200
committerFabien Pinckaers <fp@openerp.com>2014-10-15 15:24:32 +0200
commit904adc8b51abd3a0fc29c979884f845d6641da3c (patch)
treed47c17d576ef87bea1d3aa655abb0c92f112960d
parent1d0c30e010b1769aacfba33d9c9d9652ea1842ae (diff)
[FIX] perview button visible
-rw-r--r--addons/website_quote/views/website_quotation_backend.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website_quote/views/website_quotation_backend.xml b/addons/website_quote/views/website_quotation_backend.xml
index ac206c99891..c61b3cfa1fb 100644
--- a/addons/website_quote/views/website_quotation_backend.xml
+++ b/addons/website_quote/views/website_quotation_backend.xml
@@ -8,10 +8,10 @@
<field name="arch" type="xml">
<xpath expr="//header/button[@name='action_button_confirm']" position="before">
<button name="open_quotation" string="Preview Quotation" type="object" class="oe_highlight"
- attrs="{'invisible': ['|',('template_id','=',False),('quote_viewed','=',True)]}"/>
+ attrs="{'invisible': ['|',('template_id','=',False),('state','=','draft')]}"/>
</xpath>
<xpath expr="//header/button[@name='action_button_confirm']" position="before">
- <button name="open_quotation" string="Preview Quotation" type="object" attrs="{'invisible': ['|',('template_id','=',False),('quote_viewed','=',False)]}"/>
+ <button name="open_quotation" string="Preview Quotation" type="object" attrs="{'invisible': ['|',('template_id','=',False),('state','!=','draft')]}"/>
</xpath>
<xpath expr="//header/button[@name='action_quotation_send'][1]" position="replace">
<button name="action_quotation_send" string="Send by Email" type="object"