(self, )
return {
            'name': name,
            'sequence': self.sequence,
            'product_id': self.product_id.id,
            'product_uom': self.product_uom.id,
            'product_uom_qty': self.product_uom_qty,
            'prescription_order_line_id': self.prescription_order_line_id.id,
            'state': 'sale',
            'price_unit': self.price_unit,
        }
Return a values dictionary to create in real model
Return a values dictionary to create in real model
Return a values dictionary to create in real model
def _to_vals(self, ):
        ''' Return a values dictionary to create in real model '''
        self.ensure_one()
        name = '%s - %s' % (
            self.prescription_order_line_id.prescription_order_id.name,
            self.product_id.display_name,
        )
        return {
            'name': name,
            'sequence': self.sequence,
            'product_id': self.product_id.id,
            'product_uom': self.product_uom.id,
            'product_uom_qty': self.product_uom_qty,
            'prescription_order_line_id': self.prescription_order_line_id.id,
            'state': 'sale',
            'price_unit': self.price_unit,
        }
def _to_vals ( self , ) : self . ensure_one ( ) name = '%s - %s' % ( self . prescription_order_line_id . prescription_order_id . name , self . product_id . display_name , ) return { 'name' : name , 'sequence' : self . sequence , 'product_id' : self . product_id . id , 'product_uom' : self . product_uom . id , 'product_uom_qty' : self . product_uom_qty , 'prescription_order_line_id' : self . prescription_order_line_id . id , 'state' : 'sale' , 'price_unit' : self . price_unit , }