Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Trying to do XML inheritance on the email_template makes it plain.

Odebírat

Get notified when there's activity on this post

This question has been flagged
v8formsemail_templateemail_
5062 Zobrazení
Avatar
Kit Sunde

So I tried doing this:

<record model="ir.ui.view"
      id="sale_order_email_scheduled_collection_form">
  <field name="name">sale.order_email.scheduled_email.form</field>
  <field name="model">sale.order_email.scheduled_email</field>
  <field name="inherit_id" ref="email_template.email_template_form"/>
  <field name="arch" type="xml">
      <xpath expr="//h1" position="after">
          <h2>Test Foo</h2>
      </xpath>
  </field>
</record>

What ends up happening is that the form becomes plain without grouping. If I however straight up copy the email_template form instead the groupings work fine. I.e. this:

<record model="ir.ui.view"
       id="sale_order_email_scheduled_collection_form">
 <field name="name">sale.order_email.scheduled_email.form</field>
 <field name="model">sale.order_email.scheduled_email</field>
  <field name="arch" type="xml">
    <form string="Templates">
      <sheet>
        <div class="oe_title">
          <label for="name" class="oe_edit_only"/><h1><field name="name" required="1"/></h1>
          <group>
            <field name="model_id" required="1" on_change="onchange_model_id(model_id)"/>
            <field name="model" invisible="1"/>
          </group>
        </div>
        <div class="oe_right oe_button_box" name="buttons">
          <field name="ref_ir_act_window" invisible="1"/>
          <button class="oe_inline oe_stat_button" name="create_action" type="object"
                  attrs="{'invisible':[('ref_ir_act_window','!=',False)]}" icon="fa-plus"
                  help="Display an option on related documents to open a composition wizard with this template">
            <div>Add<br/>Context Action</div>
          </button>
          <button name="unlink_action" type="object"
                  class="oe_stat_button" icon="fa-minus"
                  attrs="{'invisible':[('ref_ir_act_window','=',False)]}"
                  help="Remove the contextual action to use this template on related documents" widget="statinfo">
            <div>Remove<br/>Context Action</div>
          </button>
          <button class="oe_inline oe_stat_button" name="%(email_template.wizard_email_template_preview)d" icon="fa-search-plus" string="Preview"
                  type="action" target="new"
                  context="{'template_id':active_id}"/>
        </div>
        <notebook>
          <page string="Content">
            <label for="subject"/>
            <h2 style="display: inline-block;"><field name="subject" placeholder="Subject (placeholders may be used here)"/></h2>
            <field name="body_html"/>
            <field name="attachment_ids" widget="many2many_binary"/>
          </page>
          <page string="Email Configuration">
            <group>
              <field name="email_from"
                     placeholder="Override author's email"/>
              <field name="use_default_to"/>
              <field name="email_to" attrs="{'invisible': [('use_default_to', '=', True)]}"
                     placeholder="Comma-separated recipient addresses"/>
              <field name="partner_to" attrs="{'invisible': [('use_default_to', '=', True)]}"
                     placeholder="Comma-separated ids of recipient partners"/>
              <field name="email_cc" attrs="{'invisible': [('use_default_to', '=', True)]}"
                     placeholder="Comma-separated carbon copy recipients addresses"/>
              <field name="reply_to"
                     placeholder="Preferred reply address"/>
              <field name="user_signature" string="Author Signature (mass mail only)"/>
            </group>
          </page>
          <page string="Advanced Settings">
            <group>
              <field name="lang"/>
              <field name="mail_server_id"/>
              <field name="auto_delete"/>
              <field name="report_template" domain="[('model','=',model)]"/>
              <field name="report_name" class="oe_inline"
                     attrs="{'invisible':[('report_template','=',False)]}"/>
            </group>
          </page>
          <page string="Dynamic Placeholder Generator">
            <group>
              <field name="model_object_field"
                     domain="[('model_id','=',model_id),('ttype','!=','one2many'),('ttype','!=','many2many')]"
                     on_change="onchange_sub_model_object_value_field(model_object_field)"/>
              <field name="sub_object" readonly="1"/>
              <field name="sub_model_object_field"
                     domain="[('model_id','=',sub_object),('ttype','!=','one2many'),('ttype','!=','many2many')]"
                     attrs="{'readonly':[('sub_object','=',False)],'required':[('sub_object','!=',False)]}"
                     on_change="onchange_sub_model_object_value_field(model_object_field,sub_model_object_field)"/>
              <field name="null_value"
                     on_change="onchange_sub_model_object_value_field(model_object_field,sub_model_object_field,null_value)"/>
              <field name="copyvalue"/>
            </group>
          </page>
        </notebook>
      </sheet>
    </form>
  </field>
</record>

Why is my inheritance not working as expected?

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

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
how to call email templates with a custom module Vyřešeno
v8 email_template selectable
Avatar
Avatar
Avatar
Avatar
4
lis 19
14835
Email template is failed to render ? [SOLVED] Vyřešeno
v8 sale.order email_template
Avatar
Avatar
Avatar
Avatar
4
led 19
33311
How to feeding a field with template by selecting a drop down list
v8 dropdownlist email_template
Avatar
0
lis 18
5300
is it possible to use QWeb template when define a email template?
v8 qweb email_template
Avatar
Avatar
1
zář 16
4758
Default Outgoing server can't be recognize while using email templates in Odoo V8.
v8 email_template outgoing_server
Avatar
0
bře 15
4596
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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