コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3503 ビュー

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.

アバター
破棄
関連投稿 返信 ビュー 活動
6
9月 15
15162
0
6月 15
3994
1
3月 15
7039
1
3月 15
4451
1
6月 25
659