跳至內容
選單
此問題已被標幟
3 回覆
9312 瀏覽次數

I don't want to print any tickets, how to disable this automatic feature ?

頭像
捨棄

Oliver, Have solved this issue?

最佳答案

I'm trying to do the same, but it seems that changing receipt_type to 'invoice' doesn't change anything .

The solution is as simple as going to Point of Sale => Configuration => Point Of Sale, then select your POS and check "Print via Proxy ".

To avoid pressing on "Skip" at each POS launch, you can specify "127.0.0.1" as IP address in the configuration of POS. It works for me as there is no printer on the system hosting Odoo, i don't know what can happen if you have printers on the hosting system.

頭像
捨棄
最佳答案

Hi,

Take a look at the initialize() function of module.Order() (File : point-of-sale/static/src/js/model.js around line 625)

initialize: function(attributes){
    Backbone.Model.prototype.initialize.apply(this, arguments);
    this.set({
        creationDate:   new Date(),
        orderLines:     new module.OrderlineCollection(),
        paymentLines:   new module.PaymentlineCollection(),
        name:           "Vente " + this.generateUniqueId(),
        client:         null,
        partner_id:     null,
        partner_name:   null,
    });
    this.pos =     attributes.pos; 
    this.selected_orderline = undefined;
    this.screen_data = {};  // see ScreenSelector
    this.receipt_type = 'receipt';  // 'receipt' || 'invoice'
    this.db = new module.PosLS();  
    return this;
},

I have'nt tried it but it seems that you can change receipt_type to "invoice"

Best regards

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
8月 18
5254
0
11月 16
3855
1
3月 16
5015
3
3月 15
8604
1
3月 15
13237