diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2019-05-02 06:36:40 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2019-05-02 06:36:40 +0000 |
| commit | 033a7fab4da36f89bc08cacf86b8a46b8b3ea1c9 (patch) | |
| tree | 85ad36e8512045a328e87dbe8da1f6333d7939f5 /addons | |
| parent | ff839147527111c777ebe2aa799834ec969cca30 (diff) | |
[FIX] account_cancel: In Payment
Allow the cancellation of invoices 'In Payment', since there is no good
reason to not be able to do it.
opw-1981682
closes odoo/odoo#33093
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account_cancel/views/account_views.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account_cancel/views/account_views.xml b/addons/account_cancel/views/account_views.xml index e3dd3821294..18f308bd9c5 100644 --- a/addons/account_cancel/views/account_views.xml +++ b/addons/account_cancel/views/account_views.xml @@ -17,7 +17,7 @@ <field name="inherit_id" ref="account.invoice_form"/> <field name="arch" type="xml"> <xpath expr="//button[@name='action_invoice_draft']" position="before"> - <button name="action_invoice_cancel" type="object" states="draft,open,paid" string="Cancel" groups="account.group_account_invoice"/> + <button name="action_invoice_cancel" type="object" states="draft,open,in_payment,paid" string="Cancel" groups="account.group_account_invoice"/> </xpath> </field> </record> @@ -28,7 +28,7 @@ <field name="inherit_id" ref="account.invoice_supplier_form"/> <field name="arch" type="xml"> <xpath expr="//button[@name='action_invoice_draft']" position="before"> - <button name="action_invoice_cancel" type="object" states="draft,open,paid" string="Cancel" groups="account.group_account_invoice"/> + <button name="action_invoice_cancel" type="object" states="draft,open,in_payment,paid" string="Cancel" groups="account.group_account_invoice"/> </xpath> </field> </record> |
