Skip to content

Commit

Permalink
[FIX] Fix issue coming up while confirming moves with tier validation…
Browse files Browse the repository at this point in the history
… and issue when trying to record expenses
  • Loading branch information
ByteMeAsap committed Apr 17, 2024
1 parent 69a6142 commit c67aac0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions account_move_tier_validation/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ def _get_to_validate_message_name(self):
elif self.move_type == "out_refund":
name = _("Credit Note")
return name

def action_post(self):
return super(
AccountMove, self.with_context(skip_validation_check=True)
).action_post()
1 change: 1 addition & 0 deletions hr_expense_fleet/views/hr_expense_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
icon="fa-tachometer"
context="{'xml_id':'fleet_vehicle_odometer_action'}"
help="show the odometer logs for this vehicle"
groups="fleet.fleet_group_user"
attrs="{'invisible': [('odometer_count', '=', 0)]}">
<field name="odometer_count" widget="statinfo" string="Odometer"/>
</button>
Expand Down

0 comments on commit c67aac0

Please sign in to comment.