[FIX] hr_expense: Remove duplicate 'Reset to Draft' button from report
Currently, the 'Reset to Draft' button displayed twice in expense report The duplicate button was added form commit: https://github.com/odoo/odoo/commit/b25e53a0b9f950b8f9367c1bf304753c87ee2a63#diff-1db56050134b0962604e0407b7d23d39R505 So in this commit, removed duplicate 'Reset to Draft' button. closes odoo/odoo#57558 Taskid: 2335550 X-original-commit: 99035806cf3e637dddc62dbbbcde07d619257fa5 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
committed by
Barad Mahendra
parent
272bc40d2c
commit
0cb280598a
@@ -582,7 +582,6 @@
|
||||
context="{'dont_redirect_to_payments': True}"
|
||||
string="Register Payment"
|
||||
groups="account.group_account_invoice"/>
|
||||
<button name="reset_expense_sheets" string="Reset to Draft" type="object" attrs="{'invisible': ['|', ('can_reset', '=', False), ('state', 'not in', ['submit', 'cancel'])]}"/>
|
||||
<button name="%(hr_expense.hr_expense_refuse_wizard_action)d" states="submit,approve" context="{'hr_expense_refuse_model':'hr.expense.sheet'}" string="Refuse" type="action" groups="hr_expense.group_hr_expense_team_approver" />
|
||||
<button name="reset_expense_sheets" string="Reset to Draft" type="object" attrs="{'invisible': ['|', ('can_reset', '=', False), ('state', 'not in', ['submit', 'cancel'])]}"/>
|
||||
<field name="state" widget="statusbar" statusbar_visible="draft,submit,approve,post,done"/>
|
||||
|
||||
Reference in New Issue
Block a user