Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8894129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:25:03+00:00 2026-06-14T23:25:03+00:00

I installed the product_brand module for OpenERP 6.1. Through web client, I managed to

  • 0

I installed the product_brand module for OpenERP 6.1.

Through web client, I managed to show the product brand in the product list page by inherited the product.product.tree view through debug (developer) mode by inserting the product_brand_id field.

Now I want the product brand name to show in the sale.order.line.tree view of a sales order.

I noticed they are different models, one is product.product, and the other is sale.order.line.
Is it possible to show fields of other models in OpenERP?

How to reference a field name across related (different) models?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:25:05+00:00Added an answer on June 14, 2026 at 11:25 pm

    Its possible using related fields. First you need to inherit the sale order model and add a related field for product brand id
    For example:

    from osv import osv, fields
    class sale_order_line(osv.osv):
        _inherit = 'sale.order.line'
        _columns = {
            'brand_id': fields.related('product_id','product_brand_id',string='Brand',type='many2one',relation='product.brand')
        }
    sale_order_line()
    

    Then need to inherit the sale order view. Sale order line tree and form view is specified inside the sale order view. SO inherit the sale order form view using xpath.For example:

    <?xml version="1.0" encoding="utf-8"?>
      <openerp>
        <data>
          <record model="ir.ui.view" id="view_order_inherited_brand">
            <field name="name">sale.order.brand</field>
            <field name="type">form</field>
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="sale.view_order_form" />
            <field name="arch" type="xml">
              <xpath expr="//field[@name='order_line']/tree/field[@name='name']" position="after">
                  <field name='brand_id'/>
              </xpath>
            </field>
          </record>
      </data>
    </openerp>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed Services Module and REST Server to get list of products and details.
For a web-app product which would need to be installed by the customer on
I'm planning a new ASP.NET project that will become a product that is installed
I have a main product which is installed using Wix and has its own
I have an RCP product which doesn't run. Then I installed Eclipse freshly, and
I currently have a Joomla 1.5 site with VirtueMart installed. The hierarchy of product
I Want to list all the installed applications in c. We can do it
I have SCP (simple configurable product) installed and for every simple product that has
Hi I was checking some store procedures of a product installed on my company,
I just installed NServiceBus, started to go through the getting started sample, but when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.