Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3455 Zobrazení

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.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
6
zář 15
15125
0
čvn 15
3904
1
bře 15
7025
1
bře 15
4427
1
čvn 25
603