Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

External ID not found in the system: %s' % xmlid

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
mailreportexternal_idOdoo13.0
5 Respuestas
6271 Vistas
Avatar
himaOdoo

i have created a custome module that has to send and email and upload a report inside it 

i have preceed this way 

on my model.py i have defined a function that a object button has to call for sending email 

def send_job_certifica(self): template_id = self.env.ref('attestation.job_certifica_email_template').id template = self.env['mail.template'].browse(template_id) template.send_mail(self.id, force_send=True) self.state = 'send'

and on my xml file 


 <record id='job_certifica_view_form' model='ir.ui.view'>
            <field name="name">job.certifica.form</field>
            <field name="model">job.certifica</field>
            <field name="arch" type="xml">
               <form>
                <header>
             <button name="send_job_certifica" string="Send" type="object" states="valide" class="oe_highlight"/>
                <field name="state" widget="statusbar"/>                 
                </header>
             </form>
            </field>
</record>
and my email_template 

<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data noupdate="1">

        <record id="job_certifica_email_template" model="mail.template">
            <field name="name">ATTESTATION DE TRAVAIL: envoie par email</field>
             <field name="model_id" ref="attestation.model_job_certifica"/>
            <field name="email_from">xyz@gmail.com</field>
            <field name="email_to">${object.email_id}</field> 
            <field name="subject">Attestation ( Mme/Ms ${object.employee_name})</field>    
            <field name="body_html" type="html">
                <div style="margin: 0px; padding: 0px">
                    <p style="margin: 0px; padding: 0px; font-size: 13px;">
                        Chèr(e) ${object.employee_name}
                        <br /><br/>
                        voilà votre Atesttation de travail
                        <br /><br />
                        n'hzsitez pas de nous contacter si vous avez des questions
                    </p>
                </div>
            </field>
                <field name="report_template" ref="action_report_job"/>
                <field name="report_name">Attestation de travail_${object.name}</field>
        </record>
</data> </odoo>

and here is my repport 

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

	<report
		id="action_report_job"
		string="Attestation"
		model="job.certifica"
		report_type="qweb-pdf"
		name="attestation.job"
		print_report_name="'Attestation'"/>

        <template id="job">
        
        <t t-call="web.html_container">
			<t t-foreach="docs" t-as="o">
			<t t-call="web.external_layout">

                        </t>
                         </t>
    </t>
    </template>
</odoo>

and i declared the form view file and also the repport as well as the template on my __manifest__.py 

and i still got this error 


 "External ID not found in the system: attestation.action_report_job"


what i am still missing ? 

0
Avatar
Descartar
himaOdoo
Autor

and i ll have to do this whenever i want to install the module ?

Niyas Raphy (Walnut Software Solutions)

why... make the change as described once and hope it will remains as it is

himaOdoo
Autor

still don't get it, if you mean by importing the filed where i am defining my report (let's say job_report.xml) i already did it in manifest ( data:' ['report/job_report.xml',]

and also in which concerns mail_template.xml (data:'['data/mail_template.xml'])

or you mean there is a UI way to handle this ?

himaOdoo
Autor

now i get it, you mean to import the field by order, report first and mail_template second ok sir, thank you

Avatar
Niyas Raphy (Walnut Software Solutions)
Mejor respuesta

Hi,

First import the file where you define this report/action, then the import the file which refer it in manifest.


Thanks

0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
How to attach wizard report's report in mail
mail report
Avatar
Avatar
1
oct 15
17037
How to block Many2One value Changes
mail report
Avatar
Avatar
Avatar
Avatar
3
mar 15
7617
v13: Error: most likely hit a memory limit
report memory Odoo13.0
Avatar
Avatar
1
dic 23
5329
Footer on the last page of pdf report
report Odoo13.0 pdfreport
Avatar
0
oct 22
3479
How to send email with a xls file attached ?
mail Odoo13.0 scheduledaction
Avatar
0
jun 21
3414
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now