-
-
Notifications
You must be signed in to change notification settings - Fork 693
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Copyright <2020> PESOL <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) | ||
|
||
from odoo import _, api, models | ||
from odoo import api, models | ||
|
||
|
||
class AccountMove(models.Model): | ||
|
@@ -25,13 +25,13 @@ def _get_under_validation_exceptions(self): | |
def _get_to_validate_message_name(self): | ||
name = super()._get_to_validate_message_name() | ||
if self.move_type == "in_invoice": | ||
name = _("Bill") | ||
name = self.env._("Bill") | ||
elif self.move_type == "in_refund": | ||
name = _("Refund") | ||
name = self.env._("Refund") | ||
elif self.move_type == "out_invoice": | ||
name = _("Invoice") | ||
name = self.env._("Invoice") | ||
elif self.move_type == "out_refund": | ||
name = _("Credit Note") | ||
name = self.env._("Credit Note") | ||
return name | ||
|
||
def action_post(self): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters