Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Help

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

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

Odoberať

Get notified when there's activity on this post

This question has been flagged
mailreportexternal_idOdoo13.0
5 Replies
6244 Zobrazenia
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
Zrušiť
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)
Best Answer

Hi,

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


Thanks

0
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrácia
Related Posts Replies Zobrazenia Aktivita
How to attach wizard report's report in mail
mail report
Avatar
Avatar
1
okt 15
16992
How to block Many2One value Changes
mail report
Avatar
Avatar
Avatar
Avatar
3
mar 15
7572
v13: Error: most likely hit a memory limit
report memory Odoo13.0
Avatar
Avatar
1
dec 23
5269
Footer on the last page of pdf report
report Odoo13.0 pdfreport
Avatar
0
okt 22
3429
How to send email with a xls file attached ?
mail Odoo13.0 scheduledaction
Avatar
0
jún 21
3367
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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