跳至內容
選單
此問題已被標幟
1 回覆
2158 瀏覽次數

in case i add a new company and need to load same data.xml .. how it works?

records like new account - stock picking - stock location

頭像
捨棄
最佳答案

Hi,

Create Your data.xml File

<odoo>
<record id="your_unique_id_for_account" model="account.account">
        <field name="name">Your Account Name</field>
        <field name="code">Your Account Code</field>
        <field name="company_id" ref="base.main_company"/>
        <!-- Add other fields as needed -->
    </record>
<record id="your_unique_id_for_stock_location" model="stock.location">
        <field name="name">Your Location Name</field>
        <field name="company_id" ref="base.main_company"/>
        <!-- Add other fields as needed -->
    </record>
</odoo>


Hope it helps

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
9月 22
2869
1
4月 25
4112
1
9月 22
3842
0
4月 22
2317
0
2月 23
1787