Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

change the default odoo 15 form

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
formcustommenuitemodoo15
1993 Widoki
Awatar
Aprilia Zahratunnisa

=========MENU========= 
<record id="action_sales_order" model="ir.actions.act_window">        <field name="name">Sales SO</field>        <field name="res_model">sale.order</field>        <field name="view_mode">tree,form</field>        <field name="view_id" ref="view_sales_so_form"/>        <field name="view_ids" eval="[(5, 0, 0), (0, 0, {'view_mode': 'tree', 'view_id': ref('view_sales_so_tree')}),  (0, 0, {'view_mode': 'form', 'view_id': ref('view_sales_so_form')})]"/>        <field name="domain">[('is_sales_so', '=', True)]</field>        <field name="context">{'default_is_sales_so': True}</field>    </record>



========FORM========

    <record id="view_sales_so_form" model="ir.ui.view">        <field name="name">sales.so.form</field>        <field name="model">sale.order</field>        <field name="arch" type="xml">            <form string="Sales SO" groups="cust_sale.group_sales_so_user">                <header>                    <field name="state" widget="statusbar" statusbar_visible="draft,sent,sale"/>                    <button name="action_confirm" type="object" string="Confirm" states="draft" class="btn-primary"/>                    <button name="action_cancel" type="object" string="Cancel" states="draft,sent,sale" class="btn-secondary" attrs="{'invisible': [('state', '!=', 'cancel')]}"/>                </header>                <sheet>                    <div class="oe_title">                        <h1>                            <field name="name" class="oe_inline" readonly="1"/>                        </h1>                    </div>                    <group col="2">                        <group>                            <field name="company_id" required="1" groups="base.group_multi_company"/>                            <field name="customer_display_name" string="Customer" readonly="1" attrs="{'invisible': [('id', '=', False)]}"/>                            <field name="partner_id" required="1" context="{'show_address': True}" attrs="{'invisible': [('id', '!=', False)]}"/>                            <field name="pricelist_id" readonly="1"/>                            <field name="product_type" string='SO Type' />                        </group>                        <group>                            <field name="date_order" options="{'no_open': True}"/>                            <field name="user_id" />                            <field name="team_id" invisible="1"/>                                                        <field name="reference_so"                                 attrs="{'invisible': [('is_stock_empty', '=', False), ('state', 'in', ['sale', 'draft', 'cancel'])]}"                                 string="Reference SO"/>                                                        <field name="is_stock_empty" invisible="1"/>                        </group>                    </group>                    <notebook>                        <page string="Order Lines">                            <field name="order_line" widget="one2many_list" context="{'default_order_id': active_id}">                                <tree                                    string="Sales Order Lines"                                    editable="bottom"                                >                                    <control>                                        <create name="add_product_control" string="Add a product"/>                                        <create name="add_section_control" string="Add a section" context="{'default_display_type': 'line_section'}"/>                                        <create name="add_note_control" string="Add a note" context="{'default_display_type': 'line_note'}"/>                                    </control>

                                    <field name="sequence" widget="handle" />                                    <field name="display_type" invisible="1"/>                                    <field name="product_uom_category_id" invisible="1"/>

                                    <field name="product_updatable" invisible="1"/>                                    <field                                        name="product_id"                                        attrs="{                                            'readonly': [('product_updatable', '=', False)],                                            'required': [('display_type', '=', False)],                                        }"                                        force_save="1"                                        context="{                                            'partner_id': parent.partner_id,                                            'quantity': product_uom_qty,                                            'pricelist': parent.pricelist_id,                                            'uom':product_uom,                                            'company_id': parent.company_id,                                            'default_lst_price': price_unit,                                            'default_description_sale': name                                        }"                                        domain="[('sale_ok', '=', True), '|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]"                                        widget="product_configurator"                                    />                                    <field name="product_template_id"                                      string="Product"                                      invisible="1"                                      attrs="{                                          'readonly': [('product_updatable', '=', False)],                                          'required': [('display_type', '=', False)],                                      }"                                      context="{                                          'partner_id': parent.partner_id,                                          'quantity': product_uom_qty,                                          'pricelist': parent.pricelist_id,                                          'uom':product_uom,                                          'company_id': parent.company_id,                                          'default_list_price': price_unit,                                          'default_description_sale': name                                      }"                                      domain="[('sale_ok', '=', True), '|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]"                                      widget="product_configurator"/>                                    <field name="name" widget="section_and_note_text" invisible="1" />                                    <field                                        name="analytic_tag_ids"                                        optional="hide"                                        groups="analytic.group_analytic_tags"                                        widget="many2many_tags"                                        options="{'color_field': 'color'}"                                        domain="['|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]"                                    />                                    <field                                        name="product_uom_qty"                                        decoration-info="(not display_type and invoice_status == 'to invoice')" decoration-bf="(not display_type and invoice_status == 'to invoice')"                                        context="{                                            'partner_id': parent.partner_id,                                            'quantity': product_uom_qty,                                            'pricelist': parent.pricelist_id,                                            'uom': product_uom,                                            'company_id': parent.company_id                                        }"                                    />                                    <field                                        name="qty_delivered"                                        decoration-info="(not display_type and invoice_status == 'to invoice')" decoration-bf="(not display_type and invoice_status == 'to invoice')"                                        string="Delivered"                                        attrs="{                                            'column_invisible': [('parent.state', 'not in', ['sale', 'done'])],                                            'readonly': [('qty_delivered_method', '!=', 'manual')]                                        }"                                        invisible="1"                                    />                                    <field name="qty_delivered_manual" invisible="1"/>                                    <field name="qty_delivered_method" invisible="1"/>                                    <field                                        name="qty_invoiced"                                        decoration-info="(not display_type and invoice_status == 'to invoice')" decoration-bf="(not display_type and invoice_status == 'to invoice')"                                        string="Invoiced"                                        attrs="{'column_invisible': [('parent.state', 'not in', ['sale', 'done'])]}"                                        invisible="1"                                    />                                    <field name="qty_to_invoice" invisible="1"/>                                    <field name="product_uom_readonly" invisible="1"/>                                    <field                                        name="product_uom"                                        force_save="1"                                        string="UoM"                                        attrs="{                                            'readonly': [('product_uom_readonly', '=', True)],                                            'required': [('display_type', '=', False)],                                        }"                                        context="{'company_id': parent.company_id}"                                        groups="uom.group_uom"                                        options='{"no_open": True}'                                        optional="show"                                    />                                    <field                                        name="customer_lead"                                        optional="hide"                                        attrs="{'readonly': [('parent.state', 'not in', ['draft', 'sent', 'sale'])]}" invisible="1"                                    />                                    <field name="product_packaging_qty" attrs="{'invisible': ['|', ('product_id', '=', False), ('product_packaging_id', '=', False)]}" groups="product.group_stock_packaging" optional="show"/>                                    <field name="product_packaging_id" attrs="{'invisible': [('product_id', '=', False)]}" context="{'default_product_id': product_id, 'tree_view_ref':'product.product_packaging_tree_view', 'form_view_ref':'product.product_packaging_form_view'}" groups="product.group_stock_packaging" optional="show"/>                                    <field                                        name="price_unit"                                        attrs="{'readonly': [('qty_invoiced', '&gt;', 0)]}" invisible="1"                                    />                                    <field name="discount" string="Disc.%" groups="product.group_discount_per_so_line" optional="show" widget="product_discount"/>                                    <field name="price_subtotal" widget="monetary" groups="account.group_show_line_subtotals_tax_excluded"/>                                    <field name="price_total" widget="monetary" groups="account.group_show_line_subtotals_tax_included"/>                                    <field name="state" invisible="1"/>                                    <field name="invoice_status" invisible="1"/>                                    <field name="currency_id" invisible="1"/>                                    <field name="price_tax" invisible="1"/>                                    <field name="company_id" invisible="1"/>                                </tree>                            </field>                        </page>                    </notebook>                    <group name="note_group" col="6" class="mt-2 mt-md-0">                        <group class="oe_subtotal_footer oe_right" colspan="2" name="sale_total">                            <field name="tax_totals_json" widget="account-tax-totals-field" nolabel="1" colspan="2"/>                        </group>                        <div class="oe_clear"/>                    </group>                </sheet>            </form>        </field>    </record>



I want to change the default Odoo 15 form in this menu, there is a custom create button that has been created. So if you click the Create custom button, a custom form will appear. but I can't. is there anyone who can help me???




0
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
How can the price_unit field not change even if the other columns are changed?
sale custom odoo15
Awatar
Awatar
Awatar
2
gru 24
2336
brings up the tree in the actions menu
treeview menu custom odoo15
Awatar
Awatar
1
lip 25
1508
How to add image into report
form custom reporting odooV8
Awatar
0
paź 15
4343
How could I add a sweetCaptcha javascript captcha script to my custom form on odoo 8.0's website?
javascript form custom website
Awatar
0
maj 15
6449
How to "postion=replace" a Form or Tree View, Menuitem ?
form menuitem tree new
Awatar
Awatar
2
mar 15
9735
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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