تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6485 أدوات العرض

Hi,

I want to add in the POS receipt a field I added in the pos.order module. However, I saw in previous postes that there are get method for client, product and others but when I use the get_order method, I can't get my field although I added it in the receipt in JS


odoo.define('custom_pos_receipt.receipt', function (require) {
'use strict';
const models = require('point_of_sale.models');
models.load_fields('pos.order', 'mecef_code');
});


t-esc="env.pos.get_order().mecef_code"/>

And this call in the xml does not return my field. And I saw that only few fields of pos.order are callable. How can I add mine to call it with get_order ?


Regards

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

Refer to this URL,It shows how to customize the pos receipt

https://www.cybrosys.com/blog/how-to-customize-pos-receipts-in-odoo15

This one of the App in Odoo appstore for customize pos receipt

https://apps.odoo.com/apps/modules/15.0/custom_receipts_for_pos/

Regards

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
يونيو 23
2181
1
نوفمبر 23
2691
1
ديسمبر 24
2169
0
أغسطس 24
1764
1
أغسطس 24
2795