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 8746303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:10:23+00:00 2026-06-13T12:10:23+00:00

So basically, I’m trying to introduce modifications in OpenERP’s POS inteface from version 6.1.

  • 0

So basically, I’m trying to introduce modifications in OpenERP’s POS inteface from version 6.1. I see that the layout of this view can be found at /static/src/xml/pos.xml. What I want is to modify this view from my own addon (thus, not altering the original pos addon) and as far as I know, there is no way of inheriting this view to add changes (or is there?). So after studying the module, I’m trying to override its js function to slip in my own pos.xml with all my modifications (a copy of the original pos.xml, but with name ‘PointOfSale_Mine’ and other modifications). So far, I have added my own .js as follows:

openerp.my_pos = function(db) {


db.point_of_sale.PointOfSale = db.point_of_sale.PointOfSale.extend({

    render: function() {
        this._super.apply(this,arguments);
        return qweb_template("PointOfSale_Mine")();

        //return this._super.qweb_template("PointOfSale_Mine")();
        //return db.point_of_sale.qweb_template("PointOfSale_Mine")();
        }
    })

};

And of course, I’m getting the error “qweb_template is not defined” as my JS skills and my knowledge regarding OpenERP6.1’s new web framework is quite limited. I would really like to know how can I call the same method that the original ‘render’ function calls (You can see my useless attempts commented in the code above). Or is my whole approach wrong and there is a better way of introducing my changes to the template?

Thanks in advance. Any help will be appreciated.

  • 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-13T12:10:24+00:00Added an answer on June 13, 2026 at 12:10 pm

    Ok. After some trial and errors I came up with this code to do the trick:

    openerp.my_pos = function(db) {
    
    
    db.point_of_sale.PointOfSale = db.point_of_sale.PointOfSale.extend({
    
        render: function() {
            var rend = this._super();
    
            var jdoc = $(rend);
            jdoc.find('.pos-payment-container').prepend('<input type="text" value=""/>')
    
            return jdoc[0].outerHTML;
            }
        })
    
    };
    

    It does not replace the entire pos.xml template as I was initially attempting, but it is probably better as you inherit the current template and introduce your modifications only (even if you have to .prepend() a big chunk of html code)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically from a database I am getting data that is formatted like this nameofproject101
Basically from C++ FAQ I learned that: A virtual function allows derived classes to
Basically this function is meant to store the height value of the element that
Basically I am trying to do this: <Trigger Property=Item Value={c:CollectionView.NewItemPlaceHolder}> But the syntax is
Basically I just need the effect of copying that HTML from browser window and
Basically, what signal does '0' represent, because here I see SIGNAL numbers starting from
Basically I have an iframe loaded that is accessed from the parent whenever it
Basically what i am trying to do here is to read from the table
Basically I am creating a dynamic google map that pulls information from the database,
Basically I am trying to restart a service from a php web page. Here

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.