daniele.lucarelli@gmail.com ha scritto:
Ma più che indicartela non so fare
Grazie Daniele, è stato sufficiente.
Ho risolto sostituendo:
<button name="action_invoice_sent" type="object" string="Send by Email" attrs="{'invisible':['|',('sent','=',True), ('state', '!=', 'open')]}" class="oe_highlight" groups="base.group_user"/>
e
<button name="action_invoice_sent" type="object" string="Send by Email" attrs="{'invisible':['|',('sent','=',False), ('state', '!=', 'open')]}" groups="base.group_user"/>
Con:
<button name="action_invoice_sent" type="object" string="Send by Email" attrs="{'invisible':['|',('sent','=',True), ('state', '!=', 'open'), ('state', '!=', 'paid')]}" class="oe_highlight" groups="base.group_user"/>
e
<button name="action_invoice_sent" type="object" string="Send by Email" attrs="{'invisible':['|',('sent','=',False), ('state', '!=', 'open'), ('state', '!=', 'paid')]}" groups="base.group_user"/>