<commit_before># -*- coding: utf-8 -*-
from datetime import datetime

from openerp import api, fields, models, _
import openerp.addons.decimal_precision as dp

class TimeFrameConsolidation(models.Model):
    
    _name = "time.frame.consolidation"
    
    time_frame_id = fields.Many2one('time.frame', readonly=True, required=True)
    delivery_round = fields.Many2one('delivery.round', string="Delivery round", readonly=True)
    picking_consolidations = fields.One2many('picking.consolidation','time_frame_consolidation_id', string="Picking consolidations", readonly=True)
    
class PickingConsolidation(models.Model):
    
    _name = "picking.consolidation"
    
    time_frame_consolidation_id = fields.Many2one('time.frame.consolidation',string='Time frame consolidation', ondelete='cascade', readonly=True)
    time_frame_id = fields.Many2one(related='time_frame_consolidation_id.time_frame_id', readonly=True)
    delivery_address = fields.Many2one('res.partner', string="Delivery address", domain=[('type','=','delivery')], readonly=True)
    consolidation_lines = fields.One2many('picking.consolidation.line','picking_consolidation_id', string='Pickings consolidation', readonly=True)
    #pack_ops = fields.One2many('stock.pack.operation')
    
class PickingConsolidationLine(models.Model):
    
    _name = "picking.consolidation.line"
    
    picking_consolidation_id = fields.Many2one('picking.consolidation', string='Picking consolidation')
    product_id = fields.Many2one('product.product', string='Product', required=True, readonly=True)
    product_uom_qty = fields.Float(string='Quantity', digits=dp.get_precision('Product Unit of Measure'), required=True, readonly=True)
    product_uom = fields.Many2one('product.uom', string='Unit of Measure', required=True, readonly=True)
    qty_delivered = fields.Float(string='Delivered', digits=dp.get_precision('Product Unit of Measure'), readonly=True)<commit_msg>[IMP] make field editable<commit_after># -*- coding: utf-8 -*-
from datetime import datetime

from openerp import api, fields, models, _
import openerp.addons.decimal_precision as dp

class TimeFrameConsolidation(models.Model):
    
    _name = "time.frame.consolidation"
    
    time_frame_id = fields.Many2one('time.frame', readonly=True, required=True)
    delivery_round = fields.Many2one('delivery.round', string="Delivery round", readonly=True)
    picking_consolidations = fields.One2many('picking.consolidation','time_frame_consolidation_id', string="Picking consolidations", readonly=True)
    
class PickingConsolidation(models.Model):
    
    _name = "picking.consolidation"
    
    time_frame_consolidation_id = fields.Many2one('time.frame.consolidation',string='Time frame consolidation', ondelete='cascade', readonly=True)
    time_frame_id = fields.Many2one(related='time_frame_consolidation_id.time_frame_id', readonly=True)
    delivery_address = fields.Many2one('res.partner', string="Delivery address", domain=[('type','=','delivery')], readonly=True)
    consolidation_lines = fields.One2many('picking.consolidation.line','picking_consolidation_id', string='Pickings consolidation')
    
class PickingConsolidationLine(models.Model):
    
    _name = "picking.consolidation.line"
    
    picking_consolidation_id = fields.Many2one('picking.consolidation', string='Picking consolidation')
    product_id = fields.Many2one('product.product', string='Product', required=True, readonly=True)
    product_uom_qty = fields.Float(string='Quantity', digits=dp.get_precision('Product Unit of Measure'), required=True, readonly=True)
    product_uom = fields.Many2one('product.uom', string='Unit of Measure', required=True, readonly=True)
    qty_delivered = fields.Float(string='Delivered', digits=dp.get_precision('Product Unit of Measure'))
{'fraction_non_alphanumeric': 0.12381203801478352, 'fraction_numerical': 0.006071805702217529, 'mean_word_length': 6.286538461538462, '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': '416413', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1141, 'n_words': 190}