Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions account_background_post/wizards/validate_account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@ def validate_move(self):
return {"type": "ir.actions.act_window_close"}
else:
return super().validate_move()

def validate_move_confirm(self):
"""Bridge method called from the view's Confirm button renamed to
avoid name collision. It delegates to `validate_move` to keep the
same behaviour."""
return self.validate_move()
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<button name="validate_move" position="before">
<button string="Post in Background" name="action_background_post" type="object" default_focus="1" class="btn-primary" data-hotkey="a" help="With this, all the invoices selected to be validated will be marked and they will be validated one by one. If an error is found when validating any invoice, the automatic validation of the same will be unmarked and it will be notified via messaging"
invisible="abnormal_amount_partner_ids"/>
<button string="Confirm" name="validate_move" type="object"
<button string="Confirm now" name="validate_move_confirm" type="object"
default_focus="1" class="btn-primary" data-hotkey="q" context="{'validate_analytic': True}"
confirm="Only use this option to post a small batch of invoices" invisible="force_background"
/>
Expand Down
Loading