Skip to content

Commit

Permalink
[5193][IMP] account_move_contact_attribute: Display attribute on invo…
Browse files Browse the repository at this point in the history
…ice (#6)

Co-authored-by: Yoshi Tashiro <[email protected]>
  • Loading branch information
kanda999 and yostashiro authored Feb 27, 2025
1 parent ff7f697 commit 6a59fc9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
1 change: 1 addition & 0 deletions account_move_contact_attribute/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"depends": ["account"],
"license": "AGPL-3",
"data": [
"reports/invoice_templates.xml",
"views/account_move_views.xml",
],
"installable": True,
Expand Down
14 changes: 12 additions & 2 deletions account_move_contact_attribute/i18n/ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,25 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-02-01 04:21+0000\n"
"PO-Revision-Date: 2025-02-01 04:21+0000\n"
"POT-Creation-Date: 2025-02-26 03:48+0000\n"
"PO-Revision-Date: 2025-02-26 03:48+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_move_contact_attribute
#: model_terms:ir.ui.view,arch_db:account_move_contact_attribute.report_invoice_document
msgid "<strong>Contact Person:</strong>"
msgstr "<strong>顧客担当者:</strong>"

#. module: account_move_contact_attribute
#: model_terms:ir.ui.view,arch_db:account_move_contact_attribute.report_invoice_document
msgid "<strong>Site Name:</strong>"
msgstr "<strong>現場名:</strong>"

#. module: account_move_contact_attribute
#: model:ir.model.fields,field_description:account_move_contact_attribute.field_account_bank_statement_line__contact_person
#: model:ir.model.fields,field_description:account_move_contact_attribute.field_account_move__contact_person
Expand Down
15 changes: 15 additions & 0 deletions account_move_contact_attribute/reports/invoice_templates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="report_invoice_document" inherit_id="account.report_invoice_document">
<xpath expr="//p[@name='payment_communication']" position="before">
<div t-if="o.contact_person">
<strong>Contact Person:</strong>
<span t-esc="o.contact_person" />
</div>
<div t-if="o.site_name">
<strong>Site Name:</strong>
<span t-esc="o.site_name" />
</div>
</xpath>
</template>
</odoo>

0 comments on commit 6a59fc9

Please sign in to comment.