Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Discuss
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Manajemen Properti
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Tanya ahli
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

changing fields position

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
labelremove
3 Replies
14008 Tampilan
Avatar
Frankie Chan

Please refer to the figure here.

I would llike to swap the position of the fields "street", which labeled as "Address" and that of the field "name", which is labeled as "Contact Person name".

However, I cannot remove the string "Address" on the left hand side

The origianl res_partner_view.xml writes:

------------------------------------------------------------------------------------------------------------------------------------------------------

 <record id="view_partner_form" model="ir.ui.view">
            <field name="name">res.partner.form</field>
            <field name="model">res.partner</field>
            <field eval="1" name="priority"/>
            <field name="arch" type="xml">
                <form string="Partners" version="7.0">
                <sheet>

                         ....................

                  <group>
                        <group>

                                 ....................

                               <label for="street" string="Address"/>
                                <div>

                                    ....................

                                        <field name="street" placeholder="Street..."  attrs="{'readonly': [('use_parent_address','=',True)]}"/>

------------------------------------------------------------------------------------------------------------------------------------------------------

As you can see, there is a label, <label for="street" string="Address"/>, which makes me unable to remove it in openerp.

What code shoud I write?

Thanks

2
Avatar
Buang
Avatar
Vasiliy Birukov
Jawaban Terbai

Under label Address placed several fields. If you need move only field street, just redefine label for other filed. For example:

<label for="street2" string="Address"/>

0
Avatar
Buang
Avatar
Frankie Chan
Penulis Jawaban Terbai

I have tried the following but it does not work. Can you please give the details?

<?xml version="1.0" encoding="utf-8"?>
<openerp>
  <data>
    <record model="ir.ui.view" id="view_customer_test_form">
        <field name="name">res.partner.form</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="base.view_partner_form" />
        <field name="arch" type="xml">


              <label for="street" string="xxy"/>

        </field>
    </record>

  </data>
</openerp>

0
Avatar
Buang
Jagdish Panchal

@ Frankie Chan: Create new module add xml file and install your new module. so you did not need to change existing moduel

Odoobot
Hi Jagdish,

Thanks for your reply.

Yes, you are right. I can create new module.

However, I am new to openerp. In the new xml file, I need to create view_form, view_tree, action form, menuitem and so on, which is very difficult to me.

Besides, there are many folders I need to take care of, for example, static, i18n, images, security, css, src, js, etc. They are also very new to me.

I can directly change the existing file but it will be better if I can copy it to a new file and change what I need.

Can you suggest?

Thanks.

Regards,

Frankie


On Wed, Jul 9, 2014 at 6:45 PM, Jagdish Panchal <jnp1682@openerp.my.openerp.com> wrote:

@ Frankie Chan: Create new module add xml file and install your new module. so you did not need to change existing moduel

--
Jagdish Panchal Sent by OpenERP Inc. using OpenERP. Access your messages and documents in Odoo

Jagdish Panchal

Hi just add test_customer_view.xml file in your module and add this code in your file.

Odoobot
In test_customer_view.xml, which code should I add ?


On Wed, Jul 9, 2014 at 8:51 PM, Jagdish Panchal <jnp1682@openerp.my.openerp.com> wrote:

Hi just add test_customer_view.xml file in your module and add this code in your file.

--
Jagdish Panchal Sent by OpenERP Inc. using OpenERP. Access your messages and documents in Odoo

Jagdish Panchal

@ Frankie Chan: Add code in my answer in test_customer_view.xml thanks

Jagdish Panchal

Hi Frankie Chan: I have update answer check it.

Avatar
Jagdish Panchal
Jawaban Terbai

Hi

Refer below code

test_module(add following file)
- __init__.py
- __openeerp__.py
- test_customer_view.xml

__openerp__.py

{
    'name': 'Test module,
    'version': '0.1',
    'category': 'Others',
    'complexity': "normal",
    'description': """ description related your module """
    'author': ['author of moudule'],
    'website': 'website name',
    'depends': [
        "base" #This module depend on the res_partner thats why I add base
    ],
    'init_xml': [
        #Demo data file if you want create any.
    ],
    'update_xml': [
        "test_customer_view.xml",
    ],
    'demo_xml': [],
    'test': [],
    'installable': True,
    'auto_install': False,
    'application': False,
    'images': [],
    'js': [],
}

test_customer_view.xml:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
  <data>
    <record model="ir.ui.view" id="view_customer_test_form">
        <field name="name">res.partner.form</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="base.view_partner_form" />
        <field name="arch" type="xml">

              <field name="street" placeholder="Street..." position="replace">
                  <field name="street" placeholder="Street..."  string ="xxy"/>
              </field>

        </field>
    </record>

  </data>
</openerp>

0
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
Print simple address label / sticker
label
Avatar
0
Jun 22
2785
Configuring Shipping Label
label
Avatar
0
Jan 21
3907
Label Format and detail
label
Avatar
0
Nov 19
5970
Are there any example of delete value using pre-configure? Diselesaikan
remove
Avatar
Avatar
2
Agu 17
5925
How to remove the values of an object in the method remove/delete ?
remove
Avatar
Avatar
2
Jul 17
8043
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Karir
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik 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