Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3520 Lượt xem

def _get_date_end(self, pricelist_id):
        pool = pooler.get_pool(self.cr.dbname)
        pricelist = pool.get('product.pricelist.version').read(self.cr, self.uid, [pricelist_id], ['date_end'], context=self.localcontext)[0]
        return pricelist['date_end']  

 

<para style="8_left">[[ formatLang (get_date_end(data['form']['price_list']), date=True) ]]</para>

That works at simple price lists, but not if the price list based on another price list.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
6
thg 9 15
15167
0
thg 6 15
3994
1
thg 3 15
7048
1
thg 3 15
4453
1
thg 6 25
675