Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • Hotel
    Real Estate
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    Consulting
    • Accounting Firm
    • Odoo पार्टनर
    • Marketing Agency
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    डेमो देखें
  • कीमत
  • सहायता

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • सीआरएम
  • e-Commerce
  • लेखांकन
  • इन्वेंटरी
  • PoS
  • प्रोजेक्ट
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

How can i add company address to pos receipt?

Subscribe

Get notified when there's activity on this post

This question has been flagged
posreceipt
14 Replies
17194 Views
Avatar
samba

I have written Company Address<br />
            <t t-esc="widget.pos.company.street"/>, <t t-esc="widget.pos.company.street2"/><br />
            <t t-esc="widget.pos.company.city"/>, <t t-esc="widget.pos.company.zip"/><br /> this code in pos.xml in posticket template. But these information not showing in pos receipt. Just it is showing "camas". My company has the proper info of street, street2, city, zip. Company name and phone showing well.

0
Avatar
Discard
OdooBot
Getting the attached erro, Can you help me please?

On Mon, Jan 19, 2015 at 7:52 PM, Yenthe <yenthespam@gmail.com> wrote:

A new answer for How can i add company address to pos receipt? has been posted. Click here to access the post.

--
Yenthe
Sent by Odoo S.A. using Odoo about Forum Post How can i add company address to pos receipt?



--
--

Thanks and Regards,

Sambasiva rao,

Skype: samba.guduru2(skype)
Pascal Tremblay

I think that street, street2, city, etc are fields from res.partner. Not from res.company. So I tried widget.pos.company.partner_id and it displays the ID of the associated partner.

Pascal Tremblay

But widget.pos.company.partner_id.street doesn't (nor the others city, street2, etc.) work... snif!

Avatar
Yenthe Van Ginneken (Mainframe Monkey)
Best Answer

Hi Samba 

You will need to add those fields to the models (point_of_sale/static/src/js/models.js)

{ 
        //Custom, logo added as an example. Load what you need here.
            model:  'res.company',
            fields: [ 'currency_id', 'email', 'website', 'company_registry', 'vat', 'name', 'phone', 'partner_id' , 'country_id', 'logo'],
            domain: function(self){ return [['id','=',self.user.company_id[0]]]; },
            loaded: function(self,companies){ self.company = companies[0]; },
        },

The second step is to add it to the ticket (point_of_sale/static/src/xml/

    <t t-name="PosTicket">
        <div class="pos-sale-ticket">
<div id="company_logo" style="text-align:center;"><img t-att-src="'data:image/png;base64,'+ widget.pos.company.logo" height="40%" width="40%"/></div>
<!--add your custom fields here!-->
            <t t-esc="widget.pos.company.name"/><br />

</t>

Do a reload of the whole module, restart your session and you'll see everything working!

2
Avatar
Discard
samba
Author

Thank you, Yenthe. How can i inherit model.js to add this information?

Yenthe Van Ginneken (Mainframe Monkey)

No problem Samba. I'm not sure about this since I haven't tried inheriting the JS files yet. You should know that the js files are actually used with Backbone.js which means that the data is available in 'sessions'. So I believe you could even add another js file in the module.. Anyways this topic might help you in the good way: https://www.odoo.com/nl_NL/forum/help-1/question/inheritance-of-posmodel-in-pos-models-js-file-59023 (By the way, please accept the answer if it solved your problem? :) )

JC

Yenthe, thanks for the above but how do I add tax code for each order line?

Yenthe Van Ginneken (Mainframe Monkey)

Hmm I'm not sure about which field exactly you're talking but you should also add it in models.js at the correct model (if it is not already there). On the ticket you'd need to add a t-foreach item and in that t-foreach add a span etc or a t-esc which prints out the field, just like I did with the company name but then inside a t-foreach.

JC

In model.js there is a function call get _tax_details() can it be used to display the tax name/code at the orderline, I am not good in javascript hope you can help.

JC

Yenthe, sorry is not the tax code, is the description in account_tax table I wish to add at each orderline. I reckon I just have to add description to model model: 'account.tax', the question is how do I get it for each order line. reason why we need this is because we apply diff tax to products and customer wish to know. Thanks in advance.

Avatar
Erhuvwu Akpobaro
Best Answer

 i want to do something similar to what you have achieved , i want to load the contracts module(account.analytic.account) so i can get the contract reference and display it on the receipt. The tricky part is the only way to link the product in the point of sale back to  their contract is : product.product > account.analytic.invoice.line > account.analytic.account , so is there any way i can achieve this ?

0
Avatar
Discard
Avatar
Deepa Venkatesh
Best Answer

Hi Thanks and wish you the same...

I think Yenthe's method might work... sure you can inherit a js, (i.e) you have to extend instance/model etc...

I had inherited JS of List view Widget of Journal Items, it worked fine for me... you can have a look at it ..

 
/*
   [Inherited]: account_move_line_quickadd.js
                To Remove default values for (Journal & Period)
*/
    instance.web.account.QuickAddListView = instance.web.account.QuickAddListView.extend(
    {
        start:function(){
            var tmp = this._super.apply(this, arguments);
            var self = this;
            
            var mod = new instance.web.Model("account.move.line", self.dataset.context, self.dataset.domain);
            mod.call("default_get", [['journal_id','period_id'],self.dataset.context]).then(function(result) {
                self.current_period = null;
                self.current_journal = null;
            });
            return tmp;
          },
    });
};

So  I think you may have to try some thing like this for the model extention also ...

If it didnt work out then worst case, you have to create your own custom receipt...

0
Avatar
Discard
samba
Author

Thank you Deep, Let me try this process

Erhuvwu Akpobaro

Hi @ deep i want to do something similar to what you have achieved , i want to load the contracts module(account.analytic.account) so i can get the contract reference and display it on the receipt. The tricky part is the only way to link the product in the point of sale back to its to the contract is : product.product > account.analytic.invoice.line > account.analytic.account , so is there any way i can achieve this ?

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Custom Pos Receipt
pos receipt
Avatar
Avatar
1
दिस॰ 24
2951
Pos Receipt
pos receipt
Avatar
0
अग॰ 24
2309
Can you customize Pos receipt via studio? Solved
pos receipt
Avatar
Avatar
1
अग॰ 24
3626
How to add index to each order line in POS receipt?
pos receipt
Avatar
0
जुल॰ 24
2102
Generate receipt in POS as Text
pos receipt
Avatar
0
अक्तू॰ 25
2932
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now