Hello i have a custom module that work on odoo 11 but when i installed it @odoo12 it give me this error
model not found: account.invoiceError Context : View `account.invoice form` [view_id: 751, xml_id: n/a, model: account.invoice, parent_id: 538]
this is the model file
from odoo import models, fields,api,toolsfrom num2words import num2wordsimport mathimport odoo.addons.decimal_precision as dpclass AccountInvoice(models.Model):_name = 'account.invoice'_inherit = 'account.invoice'Timbre_fiscal = fields.Monetary(string="Timbre", required=True, store=True, readonly=True)amount_in_word = fields.Char(string="Montant en toute lettre", readonly=True) |
and this is the xml file
<odoo><data><record id="account_invoice_form_view" model="ir.ui.view"><field name="model">account.invoice</field><field name="inherit_id" ref="account.invoice_form"/><field name="arch" type="xml"><xpath expr="//page[1]/group/field[@name='amount_total']" position="before"><field name="Timbre_fiscal"/></xpath></field></record></data></odoo> |
Please help me