Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4673 มุมมอง

This importation works very well in my custom module :

<?xml version="1.0" encoding="utf-8"?>

         <openerp>

              <data>

                  <record id="stock.stock_location_route_tree" model="ir.ui.view">

                      <field name="name">stock.location.route.tree</field>

                      <field name="model">stock.location.route</field>

                      <field name="arch" type="xml">

                      <tree string="Routes">

                      <field name="sequence" widget="handle" />

                      <field name="id" />

                      <field name="name" />

                      <field name="company_id" />

                      <field name="product_categ_selectable" />

                      <field name="product_selectable" />

                      <field name="warehouse_selectable" />

                      <field name="push_ids" />

                      <field name="pull_ids" />

                  </tree>

                   </field>

      </record>

      </data>

</openerp>

 

But if I add this field :

         <field name="sale_selectable"/>


I get an error :

             [.......]

             Error details:

             Field `sale_selectable` does not exist

             [.......]


If I add the same line via the backend, in Settings->Views, it works!


How could it be possible?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

sale_selectable is defined in sale_stock, you add  sale_stock to depends.

อวตาร
ละทิ้ง
ผู้เขียน

Big kiss my friend! Thanks a lot

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
8316
2
มี.ค. 15
10426
1
มี.ค. 15
4760
2
เม.ย. 16
18100
0
มิ.ย. 15
4070