[ADD] i18n _()
This commit is contained in:
parent
6f9506da70
commit
d4e2fe619a
@ -1,6 +1,6 @@
|
|||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from odoo import api, fields, models
|
from odoo import api, fields, models, _
|
||||||
|
|
||||||
|
|
||||||
class PartnerContract(models.Model):
|
class PartnerContract(models.Model):
|
||||||
@ -88,7 +88,7 @@ class PartnerContract(models.Model):
|
|||||||
def action_print_form(self):
|
def action_print_form(self):
|
||||||
view = self.env.ref("client_contracts.res_partner_wizard_print_contract_view")
|
view = self.env.ref("client_contracts.res_partner_wizard_print_contract_view")
|
||||||
return {
|
return {
|
||||||
"name": "Print Form of Contract",
|
"name": _("Print Form of Contract"),
|
||||||
"type": "ir.actions.act_window",
|
"type": "ir.actions.act_window",
|
||||||
"res_model": "res.partner.contract.wizard",
|
"res_model": "res.partner.contract.wizard",
|
||||||
"view_mode": "form",
|
"view_mode": "form",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import math
|
import math
|
||||||
|
|
||||||
from odoo import api, fields, models
|
from odoo import api, fields, models, _
|
||||||
|
|
||||||
|
|
||||||
class ContractOrderAnnex(models.Model):
|
class ContractOrderAnnex(models.Model):
|
||||||
@ -58,7 +58,7 @@ class ContractOrderAnnex(models.Model):
|
|||||||
def action_print_form(self):
|
def action_print_form(self):
|
||||||
view = self.env.ref("client_contracts.res_partner_wizard_print_annex_view")
|
view = self.env.ref("client_contracts.res_partner_wizard_print_annex_view")
|
||||||
return {
|
return {
|
||||||
"name": "Print Form of Contract Annex",
|
"name": _("Print Form of Contract Annex"),
|
||||||
"type": "ir.actions.act_window",
|
"type": "ir.actions.act_window",
|
||||||
"res_model": "res.partner.contract.wizard",
|
"res_model": "res.partner.contract.wizard",
|
||||||
"view_mode": "form",
|
"view_mode": "form",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user