Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1013 มุมมอง

Hello all,

i'm pretty new in Odoo and i don't know which Python files to create for changes in the report invoice document. I simple want to extend the report invoice document and the only one i know to create is the xml document.

<?xml version="1.0" encoding="utf-8"?>

<odoo>

    <template id="heinzmann_report_invoice_document" inherit_id="account.report_invoice_document">

       <xpath expr="//div[hasclass('page')]/div[@id='informations']" position="after"> ...

But i don't know what to write in the Python files.

Here my Python files:

heinzmann_account -> __init__.py

from . import account_account

heinzmann_account -> models -> account.py

from odoo import models, fields, api, _


class Account(models.Model):

    _name = "account.account"

    _inherit = "account.account"

Can anyone help me and maybe describe why?

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Iit's been dealt with...

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 25
1022
2
ม.ค. 25
1289
2
พ.ค. 24
1824
0
ส.ค. 23
1641
0
ก.ค. 23
2302