<commit_before>-
  !python {model: ir.values}: |
    whr = self.pool.get('stock.warehouse').browse(cr, uid, ref('stock.warehouse0'), context=context)
    self.set_default(cr, uid, 'purchase.order', 'picking_type_id', whr.in_type_id.id, for_all_users=True, company_id=True, condition=False)
-
  !python {model: stock.warehouse}: |
    #enable purchase on main warehouse
    main_warehouse = self.browse(cr, uid, ref('stock.warehouse0'), context=context)
    self.write(cr, uid, main_warehouse.id, {'buy_to_resupply': True}, context=context)
<commit_msg>issue a write call on warehouses at install<commit_after>-
  !python {model: ir.values}: |
    whr = self.pool.get('stock.warehouse').browse(cr, uid, ref('stock.warehouse0'), context=context)
    self.set_default(cr, uid, 'purchase.order', 'picking_type_id', whr.in_type_id.id, for_all_users=True, company_id=True, condition=False)
-
  !python {model: stock.warehouse}: |
    warehouse_with_buy_ids = self.search(cr, uid, [('buy_to_resupply', '=', True)], context=context)
    self.write(cr, uid, warehouse_with_buy_ids, {'buy_to_resupply': True}, context=context)

{'fraction_non_alphanumeric': 0.1593554162936437, 'fraction_numerical': 0.0026857654431512983, 'mean_word_length': 5.858895705521473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1189891', 'n_tokens_mistral': 411, 'n_tokens_neox': 399, 'n_words': 75}