Skip to content

Commit

Permalink
[IMP] purchase_request: Add subtypes to res.company related to purcha…
Browse files Browse the repository at this point in the history
…se requests

TT51248
  • Loading branch information
victoralmau committed Oct 29, 2024
1 parent 3fca743 commit 87eb11a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
21 changes: 21 additions & 0 deletions purchase_request/data/purchase_request_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,25 @@
<field name="default" eval="True" />
<field name="description">Purchase Request is done</field>
</record>
<record id="mt_company_purchase_request_to_approve" model="mail.message.subtype">
<field name="name">Purchase Request to be approved</field>
<field name="res_model">res.company</field>
<field name="default" eval="False" />
<field name="parent_id" ref="mt_request_to_approve" />
<field name="relation_field">company_id</field>
</record>
<record id="mt_company_purchase_request_approved" model="mail.message.subtype">
<field name="name">Purchase Request approved</field>
<field name="res_model">res.company</field>
<field name="default" eval="False" />
<field name="parent_id" ref="mt_request_approved" />
<field name="relation_field">company_id</field>
</record>
<record id="mt_company_purchase_request_rejected" model="mail.message.subtype">
<field name="name">Purchase Request rejected</field>
<field name="res_model">res.company</field>
<field name="default" eval="False" />
<field name="parent_id" ref="mt_request_rejected" />
<field name="relation_field">company_id</field>
</record>
</odoo>
3 changes: 3 additions & 0 deletions purchase_request/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,7 @@ msgstr "Usuario de la petición de compra"

#. module: purchase_request
#: model:mail.message.subtype,description:purchase_request.mt_request_approved
#: model:mail.message.subtype,name:purchase_request.mt_company_purchase_request_approved
#: model:mail.message.subtype,name:purchase_request.mt_request_approved
msgid "Purchase Request approved"
msgstr "Petición de compra aprobada"
Expand All @@ -1016,12 +1017,14 @@ msgstr "Solicitud de Compra hecha"

#. module: purchase_request
#: model:mail.message.subtype,description:purchase_request.mt_request_rejected
#: model:mail.message.subtype,name:purchase_request.mt_company_purchase_request_rejected
#: model:mail.message.subtype,name:purchase_request.mt_request_rejected
msgid "Purchase Request rejected"
msgstr "Petición de compra rechazada"

#. module: purchase_request
#: model:mail.message.subtype,description:purchase_request.mt_request_to_approve
#: model:mail.message.subtype,name:purchase_request.mt_company_purchase_request_to_approve
#: model:mail.message.subtype,name:purchase_request.mt_request_to_approve
msgid "Purchase Request to be approved"
msgstr "Solicitud de compra que debe aprobarse"
Expand Down
7 changes: 5 additions & 2 deletions purchase_request/i18n/purchase_request.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-18 07:50+0000\n"
"PO-Revision-Date: 2024-10-18 07:50+0000\n"
"POT-Creation-Date: 2024-10-21 10:28+0000\n"
"PO-Revision-Date: 2024-10-21 10:28+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -961,6 +961,7 @@ msgstr ""

#. module: purchase_request
#: model:mail.message.subtype,description:purchase_request.mt_request_approved
#: model:mail.message.subtype,name:purchase_request.mt_company_purchase_request_approved
#: model:mail.message.subtype,name:purchase_request.mt_request_approved
msgid "Purchase Request approved"
msgstr ""
Expand All @@ -977,12 +978,14 @@ msgstr ""

#. module: purchase_request
#: model:mail.message.subtype,description:purchase_request.mt_request_rejected
#: model:mail.message.subtype,name:purchase_request.mt_company_purchase_request_rejected
#: model:mail.message.subtype,name:purchase_request.mt_request_rejected
msgid "Purchase Request rejected"
msgstr ""

#. module: purchase_request
#: model:mail.message.subtype,description:purchase_request.mt_request_to_approve
#: model:mail.message.subtype,name:purchase_request.mt_company_purchase_request_to_approve
#: model:mail.message.subtype,name:purchase_request.mt_request_to_approve
msgid "Purchase Request to be approved"
msgstr ""
Expand Down

0 comments on commit 87eb11a

Please sign in to comment.