mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[RFC] action traveller report name
This commit is contained in:
@@ -5485,7 +5485,7 @@ msgid "Parent name"
|
||||
msgstr "Nombre del Padre"
|
||||
|
||||
#. module: pms
|
||||
#: model:ir.actions.report,name:pms.action_report_viajero
|
||||
#: model:ir.actions.report,name:pms.action_traveller_report
|
||||
msgid "Parte de Viajero"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -5195,7 +5195,7 @@ msgid "Parent name"
|
||||
msgstr ""
|
||||
|
||||
#. module: pms
|
||||
#: model:ir.actions.report,name:pms.action_report_viajero
|
||||
#: model:ir.actions.report,name:pms.action_traveller_report
|
||||
msgid "Parte de Viajero"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -1376,7 +1376,7 @@ class PmsReservation(models.Model):
|
||||
lambda s: s.state in ("onboard", "done")
|
||||
)
|
||||
if checkins:
|
||||
return self.env.ref("pms.action_report_viajero").report_action(checkins)
|
||||
return self.env.ref("pms.action_traveller_report").report_action(checkins)
|
||||
else:
|
||||
raise ValidationError(_("Some checkin partners "))
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<odoo>
|
||||
<data>
|
||||
<report
|
||||
id="action_report_viajero"
|
||||
id="action_traveller_report"
|
||||
string="Parte de Viajero"
|
||||
model="pms.checkin.partner"
|
||||
report_type="qweb-pdf"
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
type="action"
|
||||
class="btn-primary float-right"
|
||||
icon="fa-file-pdf-o"
|
||||
name="%(action_report_viajero)d"
|
||||
name="%(action_traveller_report)d"
|
||||
string="Print in PDF"
|
||||
attrs="{'invisible': [('state','not in', ('onboard','done'))]}"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user