Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • होटल
    रियल एस्टेट
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    कंसल्टिंग
    • अकाउंटिंग फ़र्म
    • Odoo पार्टनर
    • मार्केटिंग एजेंसी
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • टेक्सटाइल
    • Metal
    • फ़र्नीचर
    • फ़ूड
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    अन्य
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    डेमो देखें
  • कीमत
  • सहायता

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

  • सीआरएम
  • e-Commerce
  • लेखांकन
  • इन्वेंटरी
  • PoS
  • प्रोजेक्ट
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

change the default odoo 15 form

Subscribe

Get notified when there's activity on this post

This question has been flagged
formcustommenuitemodoo15
1970 Views
Avatar
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
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

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

Sign up
Related Posts Replies Views Activity
How can the price_unit field not change even if the other columns are changed?
sale custom odoo15
Avatar
Avatar
Avatar
2
दिस॰ 24
2318
brings up the tree in the actions menu
treeview menu custom odoo15
Avatar
Avatar
1
जुल॰ 25
1501
How to add image into report
form custom reporting odooV8
Avatar
0
अक्तू॰ 15
4330
How could I add a sweetCaptcha javascript captcha script to my custom form on odoo 8.0's website?
javascript form custom website
Avatar
0
मई 15
6439
How to "postion=replace" a Form or Tree View, Menuitem ?
form menuitem tree new
Avatar
Avatar
2
मार्च 15
9730
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة 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, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

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