Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

change the default odoo 15 form

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
formcustommenuitemodoo15
2010 Weergaven
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
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
How can the price_unit field not change even if the other columns are changed?
sale custom odoo15
Avatar
Avatar
Avatar
2
dec. 24
2350
brings up the tree in the actions menu
treeview menu custom odoo15
Avatar
Avatar
1
jul. 25
1519
How to add image into report
form custom reporting odooV8
Avatar
0
okt. 15
4359
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
mei 15
6463
How to "postion=replace" a Form or Tree View, Menuitem ?
form menuitem tree new
Avatar
Avatar
2
mrt. 15
9748
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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