Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to import the field sale_selectable via XML?

Pascal Tremblay
on 4/3/15, 7:18 AM 636 views

This importation works very well in my custom module :

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



                  <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" />







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?



| 5 4 7
Lodz, Poland

On 4/3/15, 8:09 AM

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

Big kiss my friend! Thanks a lot

Pascal Tremblay
on 4/3/15, 8:11 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 4/3/15, 7:18 AM
Seen: 636 times
Last updated: 4/3/15, 8:13 AM