I’m so lost here
. I don’t have a Report class, at least one I known.
To make a new invoice I just added this lines to my main XML
<record model="ir.action.report" id="report_invoice_py">
<field name="name">Invoice Py</field>
<field name="model">account.invoice</field>
<field name="report_name">account.invoice</field>
<field name="report">account_invoice_py/invoice_kyrey.fodt</field>
<field name="single" eval="True"/>
</record>
<record model="ir.action.keyword" id="report_invoice_py_keyword">
<field name="keyword">form_print</field>
<field name="model">account.invoice,-1</field>
<field name="action" ref="report_invoice_py"/>
</record>
So, I keep the original and my report as a second choice. I created a invoice_py.py file too who inherit invoice.py but here I don’t called Report module my whole imported are
import datetime
from sql import Literal
from sql.aggregate import Count
from trytond.i18n import gettext
from trytond.model.fields import field
from trytond.pool import Pool, PoolMeta
from trytond.model import ModelSQL, ModelView, fields, Unique
from trytond.pyson import Eval, Bool
from trytond.exceptions import UserError
from trytond.transaction import Transaction
__all__ = [
'Stamped',
'Establishment',
'ShippingPoint',
'Invoice',
'Sale',
]